-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Keyboard shortcuts for opening links, copying file paths or hashes. #1078
Comments
Hi @ferdinandyb |
Checklist for implementing this could look like:
I did have a look at how kitty is annotating the currently visible links on the screen. Somehow I do not find that actually nice to look at. We could certainly do something like this, too, but since I am not certain yet, we could implement that on top of the above any time later (I'm open to that). |
Would this mean, that users will need to define which type of thing they want to follow with
Me neither really :) Although it is pretty practical.
I'm obviously quite fine with whatever you decide, the vim mode seems very in-line with contour (and has an added advantage that it can also find URLs that are currently not visible, but were shown earlier, if I understand correctly). |
by default that'll be URIs (and file paths I think). but that aught to be configurable.
yes, you do. and this functionality can later be extended to support regex searches as well. (one feature at a time. our current prio currently should lie on the qml pr though, but this one here makes sense to have as well, of course). |
Abstract
Add a new feature that allows for quick action on URL-s, file paths, hashes or other user defined regexes.
Possible solutions:
n
and for example usinggx
to open the url in default browser or if it's a path or a hash than pasting it with an appropriate key.Motivation
Currently, the fastest way to open a link seems to be ctrl + mouse click. Using only the keyboard one would need to enter vi mode, navigate manually to the URL, yank it (yiW if lucky, more complicated if not), switch to a browser, and manually input the copied URL. Which is rather cumbersome. Although vi mode is great for selecting arbitrary text, I think opening URLs and copying file paths and (git commit) hashes to the currently typed command are very common operations, that could benefit from extra speed.
The text was updated successfully, but these errors were encountered: