facelessuser / TabsExtra

Sublime Plugin with sticky tabs, more tab closing options, and additional menu items.
https://facelessuser.github.io/TabsExtra/
MIT License
107 stars 10 forks source link

Key Bindings? #29

Closed elicwhite closed 8 years ago

elicwhite commented 8 years ago

I'd like to add a key binding for reopen last closed tab, but I can't find any information about key bindings for TabsExtra. Is this possible?

facelessuser commented 8 years ago

I haven't gotten around to documenting the guts. The original purpose was just to expose useful stuff on the context menu, so keybindings wasn't even a consideration. With that said, you can always dig through https://github.com/facelessuser/TabsExtra/blob/master/tab_menu.py and see what commands I am calling in the menu.

But as your original question is about "last closed tab", that is actually a built-in sublime command that I just also make available in the tab context menu as I thought it made a lot of sense there:

{ "command": "reopen_last_file", "caption": "Reopen Last Tab" },

Just bind that to a key and it should work fine.

elicwhite commented 8 years ago

Nice, thanks.