Open AshrafMichail opened 5 years ago
Linking #574, since the infrastructure for detecting URLs/regex-matching files will be the same.
Originally posted by @skyline75489 in #9669:
Inspired by #8166 (comment), we can also make the result of
ls
clickable if the CWD is provided. This is also possible in iTerm2. I'm not sure which sequence or technology it uses to detect the CWD, though. Anyway, with OSC9;9 recently added, this is also possible in WT.Originally posted by @skyline75489 in #7526 (comment)
I think this is what I prefer over #9661. And there is precedent like iTerm2 who handles the file URL detection very well.
2094 Description of the new feature/enhancement
There are a number of scenarios where having a link detected with a meaningful click action would be helpful:
File (optional line number): click action could launch an editor.
Directory: click action can to change to that directory
Git commit: click action can bring up a description of the commit in the appropriate web page or tool