browsh-org / browsh

A fully-modern text-based browser, rendering to TTY and browsers
https://www.brow.sh
GNU Lesser General Public License v2.1
17.05k stars 416 forks source link

Feature request: link hinting #85

Open sgtpep opened 6 years ago

sgtpep commented 6 years ago

This project is really awesome, thanks for it!

I wanted to leave a feature request for the future: link hinting. I think it could be useful for heavy CLI users or for using browsh from terminals without mouse support (like native linux console). It allows to follow link using the keyboard only: you press some shortcut to activate the hinting mode, see the numbers or letters near clickable elements, press the required combination and clicking occurs (some modifiers allows to open a link in a new tab, etc.)

Resources: https://addons.mozilla.org/en-US/firefox/addon/vimfx/ https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb https://surf.suckless.org/files/link_hints/

tobimensch commented 6 years ago

I agree.

I think this is going to be implemented as part of the vim mode that is planned: https://github.com/browsh-org/browsh/issues/31

tombh commented 6 years ago

Totally agree about this

tombh commented 6 years ago

Just a little update: I noticed that @gotbletu has had some success with the Vim Vixen extension in getting keyboard navigation to work: https://www.youtube.com/watch?v=HZq86XfBoRo&feature=youtu.be&t=514

tobimensch commented 6 years ago

Good news. I'm currently implementing vim mode for issue #31. Link hinting will be in my upcoming pull request. My solution is using vimium's code for finding the position's of links and other clickable elements. Along with other features of the vim like navigation, this one is making me particularly excited.

tobimensch commented 6 years ago

@sgtpep You can try the new vim-mode-experimental branch. You can activate link hinting with f (or F for opening in a new page).