Created
February 8, 2010 08:40
-
-
Save anekos/297986 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
let ( | |
back = mappings.getDefault(modes.NORMAL, '<C-o>').action, | |
remove = mappings.getDefault(modes.NORMAL, 'd').action | |
) | |
mappings.addUserMap( | |
[modes.NORMAL], | |
['<C-o>'], | |
'http://d.hatena.ne.jp/nyama/20100208/1265617681', | |
function () (gBrowser.sessionHistory.index > 0 ? back : remove)(-1) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment