Add HoK keys
This commit is contained in:
parent
645914688d
commit
0658e1b2dc
1 changed files with 32 additions and 0 deletions
|
@ -501,3 +501,35 @@ key.setCaretKey('M-n', function (ev) {
|
||||||
command.walkInputElement(command.elementsRetrieverButton, false, true);
|
command.walkInputElement(command.elementsRetrieverButton, false, true);
|
||||||
}, 'Focus to the previous button', false);
|
}, 'Focus to the previous button', false);
|
||||||
|
|
||||||
|
|
||||||
|
//////////////
|
||||||
|
// HoK Keys //
|
||||||
|
//////////////
|
||||||
|
|
||||||
|
key.setViewKey(['[', '['], (ev, arg) => {
|
||||||
|
ext.exec('hok-follow-prev-link', arg);
|
||||||
|
}, 'Follow a link to the previous page.');
|
||||||
|
|
||||||
|
key.setViewKey([']', ']'], (ev, arg) => {
|
||||||
|
ext.exec('hok-follow-next-link', arg);
|
||||||
|
}, 'Follow a link to the next page.');
|
||||||
|
|
||||||
|
key.setViewKey('f', (ev, args) => {
|
||||||
|
ext.exec('hok-start-foreground-mode', args);
|
||||||
|
}, 'Show hints to follow a link.');
|
||||||
|
|
||||||
|
key.setViewKey('F', (ev, args) => {
|
||||||
|
ext.exec('hok-start-background-mode', args);
|
||||||
|
}, 'Show hints to open a link in a background tab.');
|
||||||
|
|
||||||
|
key.setViewKey(';', (ev, args) => {
|
||||||
|
ext.exec('hok-start-extended-mode', args);
|
||||||
|
}, 'Start the extended HoK command mode.');
|
||||||
|
|
||||||
|
key.setViewKey(['C-c', 'f'], (ev, args) => {
|
||||||
|
ext.exec('hok-start-continuous-mode', args);
|
||||||
|
}, 'Start HoK coninuous mode.');
|
||||||
|
|
||||||
|
key.setViewKey(['C-c', 'M-w'], (ev, args) => {
|
||||||
|
ext.exec('hok-yank-foreground-mode', args);
|
||||||
|
}, 'Show hints to yank the url of a link.');
|
||||||
|
|
Loading…
Reference in a new issue