brookhong / Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc
MIT License
5.41k stars 482 forks source link

Global quickmarks with lowercase and new tab and re-use if found? #853

Closed Madd0g closed 4 years ago

Madd0g commented 6 years ago

I'm interested in the following behavior, is it possible to achieve with settings?

Basically I'm not interested in local marks at all and want to avoid pressing Ctrl+' (for new tab) and shift for global marks.

This is the behavior I had configured with vimium and I really like the simplicity.

Madd0g commented 6 years ago

Due to the awesome API SK has, I managed to solve half of the problem myself :)

With this I can use lowercase letters to navigate to global marks in a new tab. Pretty happy. Now if it could also select the tab instead of opening a new one every time...

mapkey("'", '#10Jump to vim-like mark', function(mark) {
    Normal.jumpVIMark(mark.toUpperCase(), true);
});
fiocui commented 6 years ago

@brookhong Open a vim-like mark with one letter and save it to the default settings

vogler commented 4 years ago

How do I open a mark in the current tab?

brookhong commented 4 years ago

Please try Shift-Enter, and read https://github.com/brookhong/Surfingkeys#key-bindings-in-omnibar

vogler commented 4 years ago

I meant opening a mark directly with 'x. Using the omnibar defeats the purpose with om x tab shift-enter (best case, first result).