Created
July 30, 2015 19:20
-
-
Save troyp/70faaec7d97f67477e86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Pentadactyl ex file: add to .pentadactylrc or source with :source command | |
" Defines commands to open new tab to right of current tab | |
" Example keybinding: xt | |
map -g user -ex xt :newtabright | |
command! newtabright | |
\ -description "Open new tab to right of current tab" | |
\ -nargs=1 | |
\ -js <<EOF | |
var origOrd = gBrowser.selectedTab.dactylOrdinal; | |
var numTabs = tabs.count; | |
dactyl.open(args[0], dactyl.NEW_TAB) | |
var newTab = tabs.getTab(); | |
tabs.move(newTab, origOrd+1); | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment