Skip to content

Instantly share code, notes, and snippets.

@15cm
Last active December 30, 2015 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 15cm/51e1fc4662986a6d6061 to your computer and use it in GitHub Desktop.
Save 15cm/51e1fc4662986a6d6061 to your computer and use it in GitHub Desktop.
surfingkeyrc
// page browsing
unmap('E'); mapkey('H', 'Go one tab left', 'RUNTIME("previousTab")');
unmap('R'); mapkey('L', 'Go one tab right', 'RUNTIME("nextTab")');
unmap('S'); mapkey('J', 'Go back in history', 'history.go(-1)');
unmap('D'); mapkey('K', 'Go forward in history', 'history.go(1)');
unmap('u'); mapkey('u', 'Scroll a page up', 'Normal.scroll("pageUp")');
unmap('r'); mapkey('R', 'Reload the page', 'RUNTIME("reloadTab", { nocache: false })');
// tab navigation
unmap('t');
settings.tabsThreshold=25;
unmap('B'); mapkey('tp', 'Go one tab history back', 'RUNTIME("historyTab", {backward: true})');
unmap('gF'); mapkey('tn', 'Go one tab history forward', 'RUNTIME("historyTab", {backward: false})');
mapkey('tt', 'Open an URLs', 'Normal.openOmnibar(OpenURLs)');
unmap('b'); mapkey('tb', 'Open a bookmark', 'Normal.openOmnibar(OpenBookmarks)');
// yank
unmap('yl');
unmap('yf');
mapkey('yl', "Copy current page's URL", 'Normal.writeClipboard(window.location.href)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment