From 7b4f8a21fc54a824b4dd23f1104730ebc91a16bf Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 11 Dec 2022 13:19:33 -0800 Subject: [PATCH] [Surfingkeys] Add configuration --- surfingkeys/surfingkeys.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 surfingkeys/surfingkeys.js diff --git a/surfingkeys/surfingkeys.js b/surfingkeys/surfingkeys.js new file mode 100644 index 0000000..61a04bb --- /dev/null +++ b/surfingkeys/surfingkeys.js @@ -0,0 +1,27 @@ +api.unmap(':'); + +api.mapkey('', '#7Open commands', function() { + api.Front.openOmnibar({type: "Commands"}); +}); + +api.map('', 'j'); +api.map('', 'k'); +api.map('', 'l'); +api.map('', 'h'); +api.map('l', 'S'); +api.map('r', 'D'); + +api.map('', 'P'); +api.map('', 'U'); +api.map('', 'G'); +api.map('', 'gg'); + +api.Hints.setCharacters('arstdhneio'); +api.hintAlign = "left"; + +settings.aceKeybindings = 'emacs'; +settings.defaultSearchEngine = 'd'; + +// Local Variables: +// js2-additional-externs: ("api" "settings") +// End: