2023-06-02 09:48:29 +02:00
|
|
|
function orgCapture() {
|
|
|
|
location.href = 'org-protocol://capture?'
|
|
|
|
+ new URLSearchParams({
|
|
|
|
template: 'U',
|
|
|
|
url: window.location.href,
|
|
|
|
title: document.title,
|
|
|
|
body: window.getSelection()});
|
|
|
|
}
|
|
|
|
|
2022-12-11 22:19:33 +01:00
|
|
|
api.unmap(':');
|
|
|
|
|
|
|
|
api.mapkey('<Alt-x>', '#7Open commands', function() {
|
|
|
|
api.Front.openOmnibar({type: "Commands"});
|
|
|
|
});
|
|
|
|
|
2023-06-02 09:48:29 +02:00
|
|
|
api.mapkey('cc', '#13Capture current page', orgCapture);
|
|
|
|
|
2022-12-13 15:37:03 +01:00
|
|
|
api.map('<Ctrl-b>', 'h');
|
2022-12-11 22:19:33 +01:00
|
|
|
api.map('<Ctrl-n>', 'j');
|
|
|
|
api.map('<Ctrl-p>', 'k');
|
|
|
|
api.map('<Ctrl-f>', 'l');
|
2022-12-15 19:35:02 +01:00
|
|
|
api.map('<Ctrl-x>xg', 'r');
|
2022-12-11 22:19:33 +01:00
|
|
|
api.map('l', 'S');
|
|
|
|
api.map('r', 'D');
|
2022-12-11 22:20:28 +01:00
|
|
|
api.map('c0', 'yy');
|
2022-12-13 15:37:03 +01:00
|
|
|
api.map('<Alt-p>', 'E');
|
|
|
|
api.map('<Alt-n>', 'R');
|
2023-06-16 08:10:02 +02:00
|
|
|
api.map('<Ctrl-u>f', 'af');
|
2022-12-11 22:19:33 +01:00
|
|
|
|
2022-12-13 15:39:34 +01:00
|
|
|
api.unmap('h');
|
|
|
|
api.unmap('j');
|
|
|
|
api.unmap('k');
|
|
|
|
api.unmap('S');
|
|
|
|
api.unmap('D');
|
|
|
|
api.unmap('yy');
|
|
|
|
api.unmap('E');
|
|
|
|
api.unmap('R');
|
2023-06-16 08:10:02 +02:00
|
|
|
api.unmap('af');
|
2022-12-13 15:39:34 +01:00
|
|
|
|
2022-12-11 22:19:33 +01:00
|
|
|
api.map('<Ctrl-v>', 'P');
|
|
|
|
api.map('<Alt-v>', 'U');
|
2022-12-13 15:37:44 +01:00
|
|
|
api.map('<Alt->>', 'G');
|
|
|
|
api.map('<Alt-<>', 'gg');
|
2022-12-11 22:19:33 +01:00
|
|
|
|
2022-12-13 15:39:34 +01:00
|
|
|
api.unmap('P');
|
|
|
|
api.unmap('U');
|
2022-12-13 15:46:13 +01:00
|
|
|
api.unmap('G');
|
|
|
|
api.unmap('gg');
|
2022-12-13 15:39:34 +01:00
|
|
|
|
2022-12-15 19:33:50 +01:00
|
|
|
api.cmap('<Ctrl-g>', '<Esc>');
|
|
|
|
api.imap('<Ctrl-g>', '<Esc>');
|
|
|
|
|
2022-12-11 22:19:33 +01:00
|
|
|
api.Hints.setCharacters('arstdhneio');
|
|
|
|
api.hintAlign = "left";
|
|
|
|
|
|
|
|
settings.aceKeybindings = 'emacs';
|
|
|
|
settings.defaultSearchEngine = 'd';
|
2022-12-13 15:47:15 +01:00
|
|
|
settings.omnibarPosition = "bottom";
|
2022-12-11 22:19:33 +01:00
|
|
|
|
|
|
|
// Local Variables:
|
|
|
|
// js2-additional-externs: ("api" "settings")
|
|
|
|
// End:
|