Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commands matching tab contextual menu (right-click on a tab) #61

Closed
douglascamata opened this issue Jun 17, 2014 · 11 comments
Closed

Commands matching tab contextual menu (right-click on a tab) #61

douglascamata opened this issue Jun 17, 2014 · 11 comments

Comments

@douglascamata
Copy link

I'm missing a lot commands for the tab contextual menu actions, like "Close all", "Close unmodiffied", "Close saved", etc and I guess many other users are missing them too.

@leny
Copy link
Contributor

leny commented Oct 21, 2014

+1 here. Should be great to be able to map the "close all" to a keybinding.

@mjrk
Copy link

mjrk commented Jan 10, 2015

+1 here, too.

@halcarleton
Copy link

+1 - I was surprised to find no default key binding for close all tabs.

@ghost
Copy link

ghost commented Jun 11, 2015

+1 Would also like the keybinding for closing all tabs without closing the window

@rubencaro
Copy link

+1. closing all tabs without closing the window a must.

@lee-dohm
Copy link
Contributor

There is a command for closing all tabs. And as far as I know, there are commands for all the other items in the context menu too:

screen shot 2015-07-12 at 8 58 36 pm

Closing this as fixed. If there are specific commands that are still missing, please open a single issue for each.

@mryellow
Copy link

Debian KDE - Atom 0.2
atom_close_menu

@rubencaro
Copy link

Sorry, what we meant was to be able to define keybindings for these commands. At least that's what I meant.

@lee-dohm
Copy link
Contributor

You should be able to define key bindings for virtually any command in the command palette. The command name is a simple transformation from the label in the command palette. In this case:

  • tabs:close-other-tabs
  • tabs:close-saved-tabs
  • etc

See the code here:

@subscriptions.add atom.commands.add atom.views.getView(@pane),
'tabs:keep-preview-tab': => @clearPreviewTabs()
'tabs:close-tab': => @closeTab(@getActiveTab())
'tabs:close-other-tabs': => @closeOtherTabs(@getActiveTab())
'tabs:close-tabs-to-right': => @closeTabsToRight(@getActiveTab())
'tabs:close-saved-tabs': => @closeSavedTabs()
'tabs:close-all-tabs': => @closeAllTabs()

@rubencaro
Copy link

Nice! Thanks!

@mryellow
Copy link

Your competition all have a "Close All Tabs" button on the file menu. This is an expected UX paradigm. Missing this button leaves new users not able to find basic functionality.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants