-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow "hyperlink" matching for arbitrary patterns and adding custom handlers #8849
Comments
How would that work though? Do editors have any sort of unified way of requesting "please open this file, to this row/column"? Because I'm pretty sure they don't. VsCode might have one way, emacs another, vim a third - but I'm not sure there's any way for the terminal to know which program is the user's editor for a given filetype. Plus like, if we I think VSCode's integrated terminal gets away with this because they know the editor is VsCode, and they know exactly how to tell themself how to open a file to a given row/column. If there's a way of doing this that's supposed to be standard across editors, I'm happy to throw our weight behind it. But I'm not sure how feasible this request is without some sort of standard way of doing this. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Nano, vim, emacs (or emacsclient), and less support |
As a vscode user
As a vi user
|
This is just a specific case of #8902 (which somebody just filed!). We should consolidate. |
Okay, I'll work on consolidating this with 8902, and comments we've mentioned elsewhere. |
Thanks! |
So lets say we wanted to solve both these cases. What we need is a way to specify:
So we couldn't just do this automatically for all editors in one unified fashion, unfortunately. But we could allow users to add config for their specific editor. |
This could also be an extension point. /cc @zadjii-msft triaged into backlog. |
Could have a look at how ConEmu does it: supply a bunch of 'macros' which are fed into a custom command and replaced there. Activated with Ctrl key but that's minor. See https://conemu.github.io/en/SettingsHighlight.html. This is the only reason I'm still not on Terminal fulltime: it's not interesting to have to manually copy/paste file/line from the terminal to the editor. |
Any updates on this? Not baing able to click on file paths in output like in ConEmu is a huge deal breaker, I do this all the time while working with tests and TypeScript. |
Nothing since I posted the spec draft in #15700. Alas, been too busy with other priorities to loop back on that one. From that spec:
|
I'd also like a simple pattern to translate the SSH azure devops links to HTTP equivalents. e.g. |
Description of the new feature/enhancement
A lot of developer tools print errors in:
format. For example:
Terminal should make these clickable.
Proposed technical implementation details (optional)
Leverage any relevant bits about how http links work in the current version of Terminal.
The text was updated successfully, but these errors were encountered: