Created
August 21, 2014 23:28
-
-
Save jamesmacfie/5d984aa2c45694ae142e to your computer and use it in GitHub Desktop.
A small bit of code that adds the ability to close all open tabs in your Atom editor. Put this in your init.coffee file (then reload Atom) and then 'Close All Tabs' will be an available option in the Command Palette
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
atom.workspaceView.command 'pane:close-all-tabs', -> | |
panes = atom.workspace.getPanes() | |
for pane in panes | |
pane.destroy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment