[Vimprobable-users] Preserving hint numbering in different hint modes
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Morgan H. <mt...@gm...> - 2015-01-22 08:55:17
|
Probably not everyone will agree with this patch or whether it is necessary, so consider this as much of an RFC as an actual patch. :) I found it a bit irritating that hints are numbered differently in open mode as compared with yank or show modes, so this patch fixes that issue. For example, you may want to follow a link but you don't trust the source, so you do ";l" and find that it's hint number 72. You see the link and decide it's safe, so you do "f", but now due to the different modes you have to scan through the page again and find that the link has changed to 103. This is somewhat confusing, as you'd expect to be able to just do ";l72", "f72". This issue is especially noticeable on sites like reddit, which contain a lot of both links and clickable javascript. This is obviously a bit of a nitpick, but it seems much more intuitive to me. It does introduce the issue of possibly yanking or showing a link that is undefined, which I handled by just silently ignoring. Feel free to discuss and keep the current behavior if I'm too picky. :) Regards, Morgan |