Describe the bug
On macOS, when you copy a file in Finder (Cmd+C) and paste into OTTY (Cmd+V), the terminal pastes the file icon path or other non-file-path string instead of the full POSIX file path.
To Reproduce
- Open Finder, select any file
- Press Cmd+C to copy the file
- Switch to OTTY
- Press Cmd+V to paste
- The pasted string is something like the icon path rather than
/Users/.../file.txt
Expected behavior
Cmd+V should paste the full POSIX file path, matching Terminal.app, iTerm2, Warp, and Ghostty.
Actual behavior
An icon path or other pasteboard representation gets pasted instead of the file path.
Environment
- macOS (Apple Silicon / Intel)
- OTTY version: 0.1.0
Root cause (likely)
macOS Finder puts multiple representations on NSPasteboard when copying a file:
public.file-url — the actual file URL (should be converted to POSIX path)
public.utf8-plain-text — the file name only
- icon / image data
OTTY appears to pick the wrong pasteboard type. The fix should prioritize public.file-url and resolve it to a POSIX path string before pasting.
Describe the bug
On macOS, when you copy a file in Finder (Cmd+C) and paste into OTTY (Cmd+V), the terminal pastes the file icon path or other non-file-path string instead of the full POSIX file path.
To Reproduce
/Users/.../file.txtExpected behavior
Cmd+V should paste the full POSIX file path, matching Terminal.app, iTerm2, Warp, and Ghostty.
Actual behavior
An icon path or other pasteboard representation gets pasted instead of the file path.
Environment
Root cause (likely)
macOS Finder puts multiple representations on NSPasteboard when copying a file:
public.file-url— the actual file URL (should be converted to POSIX path)public.utf8-plain-text— the file name onlyOTTY appears to pick the wrong pasteboard type. The fix should prioritize
public.file-urland resolve it to a POSIX path string before pasting.