mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-07 00:07:29 +00:00
The OS clipboard's file list was only wired up for Windows (CF_HDROP), so on macOS the project view never saw files copied in Finder: Paste stayed disabled and ⌘V did nothing. Read and write the general NSPasteboard's file URLs instead, so Finder's copies paste into the project view and the project view's copies paste in Finder. Closes #246 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
668 B
TOML
14 lines
668 B
TOML
[package]
|
|
name = "ide-clipboard"
|
|
description = "The OS clipboard's file list (Explorer <-> project view): Windows CF_HDROP or macOS NSPasteboard file URLs, 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", "NSDictionary", "NSEnumerator", "NSObject", "NSString", "NSURL", "NSValue"] }
|
|
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSPasteboard"] }
|