дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Pasting into the Project view only handled files, so a screenshot on the clipboard did nothing. With no files to paste, Paste now saves the clipboard image in the target folder as img.png (img_1.png, img_2.png ... when taken) and selects it; Paste is enabled while the clipboard holds an image. The image is read natively: public.png, or public.tiff converted, on macOS; the registered PNG format, or CF_DIB (24/32-bit) encoded as PNG, on Windows; GTK on Linux as before. Fixes #3486
23 рядки
882 B
TOML
23 рядки
882 B
TOML
[package]
|
|
name = "ide-clipboard"
|
|
description = "The OS clipboard's file list (Explorer <-> project view) and pasted images: Windows CF_HDROP / PNG / CF_DIB or macOS NSPasteboard, no window or message loop"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2 = { version = "0.6", default-features = false, features = ["std"] }
|
|
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSArray", "NSData", "NSDictionary", "NSEnumerator", "NSObject", "NSString", "NSURL", "NSValue"] }
|
|
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSBitmapImageRep", "NSImageRep", "NSPasteboard"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
png = "0.18"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gtk = "0.18"
|
|
|
|
[dev-dependencies]
|
|
png = "0.18"
|