Keybindings for tab functions


#1

I can’t seem to find a way to add keybindings for the various tab functions such as “Close All Tabs”, “Close Other Tabs”, and etc. A few like “Reveal in Tree View” and “Close Tab” are present, but I can’t find the rest. It would be great if we could map any function like we can in sublime text.


#2

The code in the package “last-tab” might help haven’t checked it out. At shell to fetch code for you:

apm develop last-tab

#3

Have you tried going into the Keybindings tab in the Settings View and using the clipboard icon to copy the original keyboard definition?

You can then paste the keybinding definition into keymap.cson and edit it.


#4

I tried that already, but it didn’t seem to do anything. Maybe because it’s for panes and not tabs?


#5

Okay. I was able to override it and remove the cmd-k from in front. Not sure why it wasn’t working with it there. However, this only lets me do close-other-items. Is there a command for closing all. I tried “close-all-items” and “close-all” but they didn’t work.


#6

@DavidLGoldberg, Sorry that didn’t help. Looks like the keybinding for last-tab is only for jumping to the last tab. https://github.com/gudleik/last-tab/blob/master/keymaps/last-tab.cson#L10-L11


#7

Alright, yeah was worth a shot :\