microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.64k stars 8.32k forks source link

Feature Request: link generation for files + other data types #2671

Open AshrafMichail opened 5 years ago

AshrafMichail commented 5 years ago

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:

  1. File (optional line number): click action could launch an editor.

  2. Directory: click action can to change to that directory

  3. Git commit: click action can bring up a description of the commit in the appropriate web page or tool

DHowett-MSFT commented 5 years ago

Linking #574, since the infrastructure for detecting URLs/regex-matching files will be the same.

zadjii-msft commented 3 years ago

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.