You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some tools (such as linters) emit the position of the failed check as a file path with line and col number.
E.g.
warning: using `map_err` over `inspect_err`
--> toast/src/graphql/mod.rs:506:44
Describe the solution you'd like
Ideally, wezterm would implement something similar. A simple regex solution is not completely suitable because often these links are relative and don't start with a scheme.
Also, it would be nice if this could be context aware, only enabling this when the output is from a certain command (but I am not sure if this is even possible).
Describe alternatives you've considered
Simple regex hyperlink_rules. These lack support for the relative nature and are not suitable for all kinds of scenarios, because we don't have a start token (but you could use --> in the case of clippy).
Is your feature request related to a problem? Please describe.
Some tools (such as linters) emit the position of the failed check as a file path with line and col number.
E.g.
VSCode creates links in the local terminal which will open the file at the appropriate position. They use the following parsing: https://github.com/microsoft/vscode/blob/bb09960d30806b18e432a835b430c21e107f6aad/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.ts
Describe the solution you'd like
Ideally, wezterm would implement something similar. A simple regex solution is not completely suitable because often these links are relative and don't start with a scheme.
Also, it would be nice if this could be context aware, only enabling this when the output is from a certain command (but I am not sure if this is even possible).
Describe alternatives you've considered
Simple regex hyperlink_rules. These lack support for the relative nature and are not suitable for all kinds of scenarios, because we don't have a start token (but you could use
-->
in the case of clippy).Additional context
https://github.com/microsoft/vscode/blob/bb09960d30806b18e432a835b430c21e107f6aad/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.ts
https://github.com/microsoft/vscode/blob/bb09960d30806b18e432a835b430c21e107f6aad/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.ts
The text was updated successfully, but these errors were encountered: