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

Read-it-Later Queue Improvements #711

Closed vtrlx closed 2 years ago

vtrlx commented 2 years ago

I've been finding the Read-it-Later Queue to be very useful and at this point it has almost completely replaced the need to have dozens of tabs. I've made a few changes to help make it easier to use for certain use cases, offering here in the event that the changes are desirable.

First is to allow bookmark completion with the :qpush and :qunshift commands. I use this feature a lot for reading sites that update frequently (mainly Twitter feeds as I don't have an account).

Second is new key combinations to queuing items. 'q' and 'w' which prompt the user to :qpush and :qunshift respectively. 'Q' and 'W' do the same but also include the current URI. I find the latter two keys helpful for when I'm consuming my queue. 'W' can un-pop the last item in case I want to keep it. 'Q' is very helpful in case I ever reach an item I would like to keep queued but don't want to consume just yet.

fanglingsu commented 2 years ago

@VictoriaLacroix Thank you for the patch. The completion for the queue push and unshift ist a nice feature. But I can't see the need for the q,w and Q and W bindings. If I read it right - that are alls things you could also do by remapping keys.

:nnoremap Q :qpush <C-R>%
:nnoremap q :qpush<Space>

The <C-R>% is filled by the register "%" which holds the current url.

fanglingsu commented 2 years ago

@VictoriaLacroix I've merged the first commit into master. But the additional key mappings are not required for me and other users. And could be easily be applied with current code.