Skip to content

Instantly share code, notes, and snippets.

@anekos
Created February 8, 2010 08:40
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 anekos/297986 to your computer and use it in GitHub Desktop.
Save anekos/297986 to your computer and use it in GitHub Desktop.
タブの履歴を最後まで戻ったらタブを閉じるよ
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