Skip to content
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

Feature: preview link URL before following it (like link hovering) #320

Closed
tobanw opened this issue Mar 19, 2011 · 12 comments
Closed

Feature: preview link URL before following it (like link hovering) #320

tobanw opened this issue Mar 19, 2011 · 12 comments

Comments

@tobanw
Copy link

tobanw commented Mar 19, 2011

It would be nice to have a way to see the url before following a link. If you manually tab through links, the link hover brings up the status bar url. Maybe it could be implemented with a prefix before f, e.g., s-f then link hint.

Also, 'copy link address' would be a great feature. I'd suggest y-f then link hint.

@philc
Copy link
Owner

philc commented Mar 21, 2011

I've split off the "copy link address" into its own feature request so it doesn't get lost:
#321

Thanks for the idea.

@blaix
Copy link
Contributor

blaix commented Mar 24, 2011

How would the preview work if you then wanted to visit the url? Maybe you can s-f then hit the key combo for the link you want to preview, that shows it in the status bar, then hit enter to actually visit it (or open it in a tab if you did s-F instead), or esc otherwise.

@tobanw
Copy link
Author

tobanw commented Mar 24, 2011

blaix, I think the best way to do this would be for vimium to simply hover the link. Then you could choose to hit enter to open (or ctrl + enter for new tab) just as you would if you tabbed through links without vimium.

@tobanw tobanw closed this as completed Mar 24, 2011
@blaix
Copy link
Contributor

blaix commented Mar 24, 2011

Yep. That would be perfect.

@tobanw tobanw reopened this Aug 1, 2011
@tobanw
Copy link
Author

tobanw commented Aug 1, 2011

Looks like I had accidentally closed this issue before... Anyways, I was thinking again about how useful this would be, as I often like to see the url before activating it, and constantly have to reach for the mouse as a result.

I suggest calling it "Preview link url" and the binding could be pf + link hint. It would focus the link (as though you manually tabbed over it) so that the browser would show the url in the browser status bar, and you could simply press 'Enter' (or Ctrl+Enter for new tab) to activate the link.

@smblott-github
Copy link
Collaborator

There's a lot of interest in this issue. Is there a PR floating around?

@mrmr1993
Copy link
Contributor

#1089 is a good start, but I think we should try and closer mimic chrome's UI, and I don't know that it should be its own command.

@devssh
Copy link

devssh commented Jul 20, 2017

It would actually be really helpful, allowing us to hover over links to simulate the hover or mouse over events. I just spent some time trying to find an alternate way to do this and there isn't an easy one. This is the only thing between me not having to touch the mouse.

@snapfractalpop
Copy link

Is there a way to do this? It seems all the various issues / threads have been closed, but I don't see how it was ever resolved. Yanking is not a solution, as it clobbers the clipboard.

@JJPandari
Copy link

JJPandari commented May 8, 2018

@snapfractalpop Sure yank is not, besides polluting the clipboard, one also has to paste the yanked link to see it.


I wonder what the tag closing-lack-of-interest means, is it that too few people are interested in this feature so it won't be implemented, or no one is making a PR for this even many people have  shown need for this since 2011?

@snapfractalpop
Copy link

snapfractalpop commented May 8, 2018

There's a lot of interest in this issue.

...

closing-lack-of-interest

There was clearly a lot of interest at one point, and several threads about this very topic. There's a bit of a "runaround" with the threads making circular references to one another. Perhaps the lack of progress has been mistaken for a lack of interest. I'm confident there is still a lot of interest in this.

@mcint
Copy link

mcint commented Jan 9, 2024

Unless I misunderstand, a basic version of this is already available, try this:

Add to Custom key mappings

map D LinkHints.activateMode action=focus

Activating this brings the link into focus, showing the URL at the bottom left (/right) of the window. You can follow up with chrome-native Shift-Enter to open in a new tab, or Enter to follow in this tab.

Per #2839 (comment), linking to wiki Tips-and-Tricks#hovering-over-links-using-linkhints and a bit of testing.


I like this a lot, I only wish that vimium could present a little bibliography section of multiple links. Perhaps color gradient differentiated.

I've been wanting to record which links I follow and eventually train vimium to prefer those links, or to prefer half-keyboard following and hint-filtering of links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants