fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.34k stars 99 forks source link

f use characters instead of numbers to index links #674

Open ghost opened 3 years ago

ghost commented 3 years ago

In vimb, when I press f to show links, it indexes links with numbers. To go to a link, I have to move my fingers from the home row to the numbers row, which is very inconvenient ( not to mention that the numbers are hard to read).

(Screenshot from vimb, version 3.6.0 on Linux) f_vimb

Is there any way for f to index links using characters instead, like this?

(Screenshot from Firefox 89 with Vimium extension on Linux) f_firefox

fanglingsu commented 3 years ago

@DorisCarson To change the labels for the hints you can set the characters to use via :set hint-keys=asdfhjkl. But if you use this, can't filter down the hinted elements by their text content, at least not for those home row chars. If you use chars as hint label it could be worth to also enable :hset int-keys-same-length=on to ensure all the labels use the same word length. To change the size of the hints you could add some css to the .config/vimb/styles.css file like this to overrule the default styling

span[vimbhint^='label'] {
    font-size: 18px !important;
}

You can see an example for possible changes at https://fanglingsu.github.io/vimb/howto.html#dark-theme.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days.