diff --git a/surfingkeys/surfingkeys.js b/surfingkeys/surfingkeys.js index adf707d..960d4c5 100644 --- a/surfingkeys/surfingkeys.js +++ b/surfingkeys/surfingkeys.js @@ -1,9 +1,20 @@ +function orgCapture() { + location.href = 'org-protocol://capture?' + + new URLSearchParams({ + template: 'U', + url: window.location.href, + title: document.title, + body: window.getSelection()}); +} + api.unmap(':'); api.mapkey('', '#7Open commands', function() { api.Front.openOmnibar({type: "Commands"}); }); +api.mapkey('cc', '#13Capture current page', orgCapture); + api.map('', 'h'); api.map('', 'j'); api.map('', 'k');