ghostty
ghostty copied to clipboard
relative and multiline local paths are not handles correctly when hold Command to click
Discussed in https://github.com/ghostty-org/ghostty/discussions/9550
Originally posted by wsxarcher November 10, 2025
Issue Description
When holding Command to click on local paths, they are not parsed correctly in 3 occasions.
- When the path starts with a hidden dot path (which by itself are ignored but not when there are more components)
- When the path goes on the next line and there is at least a / in the next line
- When a path is relative only the path after the first / is considered
Expected Behavior
Links should work for all situations as it does in iTerm2
Also when clicking on a relative path it should open the relative path (concatenating the cwd)
Actual Behavior
When clicking it fails to open because the paths are not correct
Reproduction Steps
du -h .hiddenpathwithlongsubdirs
Hold Command on a path
Ghostty Logs
N/A
Ghostty Version
Ghostty 1.2.3
Version
- version: 1.2.3
- channel: stable
Build Config
- Zig version : 0.14.1
- build mode : builtin.OptimizeMode.ReleaseFast
- app runtime : apprt.Runtime.none
- font engine : font.main.Backend.coretext
- renderer : renderer.generic.Renderer(renderer.Metal)
- libxev : kqueue
OS Version Information
macOS 26.1
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
N/A
Additional Relevant Configuration
No response
I acknowledge that:
- [X] I have reviewed the FAQ and confirm that my issue is NOT among them.
- [X] I have searched the Ghostty repository (both open and closed Discussions and Issues) and confirm this is not a duplicate of an existing issue or discussion.
- [X] I have checked the "Preview" tab on all text fields to ensure that everything looks right, and have wrapped all configuration and code in code blocks with a group of three backticks (
```) on separate lines.