aboutsummaryrefslogtreecommitdiffstats
path: root/keysnail
diff options
context:
space:
mode:
authorGravatar Tom Willemse2017-03-30 20:36:45 -0700
committerGravatar Tom Willemse2017-03-30 20:51:11 -0700
commit0658e1b2dc5817b42781caf8417e83e5e4ed4307 (patch)
tree80eaf89416b6e4f18d34c4720472517b37b3a5d5 /keysnail
parent645914688daaa1a66a7f8f3b4f814fe9a32ada78 (diff)
downloadnew-dotfiles-0658e1b2dc5817b42781caf8417e83e5e4ed4307.tar.gz
new-dotfiles-0658e1b2dc5817b42781caf8417e83e5e4ed4307.zip
Add HoK keys
Diffstat (limited to 'keysnail')
-rw-r--r--keysnail/.keysnail.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/keysnail/.keysnail.js b/keysnail/.keysnail.js
index 0e1ba64..8eb39c3 100644
--- a/keysnail/.keysnail.js
+++ b/keysnail/.keysnail.js
@@ -501,3 +501,35 @@ key.setCaretKey('M-n', function (ev) {
command.walkInputElement(command.elementsRetrieverButton, false, true);
}, '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.');