Replies: 4 comments 1 reply
-
This seems more like a bug than a question? |
Beta Was this translation helpful? Give feedback.
-
This is not a bug. Vim is drawing the URL and is NOT soft-wrapping the line. So it is two lines, not one. Ghostty only unwraps lines that are wrapped. This is the equivalent to typing the following:
Your browser wouldn't highlight that as one URL because its two lines. This is the same thing happening here. The solution for programs (and things like neovim do) is to use OSC8 which is conceptually similar to wrapping something in anchor tags:
Now your browser would highlight the full URL. Terminals are the same (but use OSC8 instead of anchor tags). Ghostty supports OSC8, so I recommend using a vim configuration that also highlights using OSC8. At least in neovim, I find most filetype plugins do this. |
Beta Was this translation helpful? Give feedback.
-
I just test it, and seems vim insert
|
Beta Was this translation helpful? Give feedback.
-
when running with glfw: ghostty-hyperlink-lines-glfw.mp4 |
Beta Was this translation helpful? Give feedback.
-
see this video for details:
ghostty-hyperlink-lines.mp4
Beta Was this translation helpful? Give feedback.
All reactions