Created
March 9, 2016 03:22
-
-
Save greduan/2a4bbd57954dd1898958 to your computer and use it in GitHub Desktop.
Atom: Destroy other items in pane when we open a new item
This file contains hidden or 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
// We don't need empty panes | |
if (atom.config.get('core.destroyEmptyPanes')) { | |
atom.config.set('core.destroyEmptyPanes', true) | |
} | |
atom.workspace.onDidOpen(function (event) { | |
/** | |
* event = { item, pane, index } | |
*/ | |
event.pane.destroyInactiveItems() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment