-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Open URL under cursor #1472
Comments
I think we should support the hyperlink spec which makes terminal links clickable: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda crossterm doesn't seem to support this, but termwiz does (I've been hoping to switch over since it also supports bracketed paste and better render diffing): https://docs.rs/termwiz/latest/termwiz/hyperlink/index.html Command-wise, we already support opening the file under cursor via So something like |
Imho better than using |
Note that the protocol might not be specified and would imply |
As it stands this issue is about two subtly-different things, both of which seem worth doing:
Since 2 depends on moving to / deciding about termwiz, and given 1 would make 2 much easier, maybe we should do an internal implementation first? These are especially important now that virtual text/soft wrapping has landed, which will break terminal-based regex URL detection when enabled. |
Both implementations could benefit from LSP features such as Document Link. |
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
There seems to be couple of PRs in flight for this with almost most of the required work already done. Is there anything pending that is required or waiting for (If so, would love to help/contribute) the PR to be merged? |
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398
* feat(commands): open urls with goto_file command Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398 * open files inside helix * address code review * bump deps * fix based on code review comments
* feat(commands): open urls with goto_file command Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398 * open files inside helix * address code review * bump deps * fix based on code review comments
* feat(commands): open urls with goto_file command Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398 * open files inside helix * address code review * bump deps * fix based on code review comments
* feat(commands): open urls with goto_file command Add capability for `goto_file` command to open an URL under cursor. Fixes: helix-editor#1472 Superseds: helix-editor#4398 * open files inside helix * address code review * bump deps * fix based on code review comments
Not sure if I'm doing something wrong, but "gf" only seems to work right locally. Trying it on an ssh connection seems to get Helix into a very weird and non-reactive state where I have to kill the process. Tested on Alacritty with Helix 24.7. |
Describe your feature request
Add functionality similar to vim's
gx
that opens URL under cursor. I am still unsure whether this should be included with Helix or better left for a plugin (cc @archseer)?This can be further extended to open files, commits, etc.
The text was updated successfully, but these errors were encountered: