A simple plugin for Sublime Text that allows old tabs to be closed with a configurable keystroke (ctrl-alt-w by default).
- Total 2K
- Win 704
- OS X 689
- Linux 311
|Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21|
Tidy Tabs for Sublime Text
Note: Sublime Text 3 beta now supported!
Ever get to the end (middle?) of a day of coding only to find your window littered with tabs that are nearly impossible to search through visually? Find yourself rage-quitting all your tabs in disgust and starting over? No? Just me? Ok.
With this plugin, a simple keystroke
ctrl + alt + w will close all tabs whose file has not been modified in the last 30 minutes (to change this interval, see Preferences > Packages > TidyTabs > Settings). It will only close tabs in the background – so files that are open and active in your window won't be closed. Likewise, it will not close files with unsaved changes.
You can change the key binding in Preferences > Package Settings > TidyTabs > Key Bindings.
You can also configure the plugin to automatically close old tabs each time you save a file. To enable this, go to Preferences > Package Settings > TidyTabs > Settings and set
// Automatically run tidytabs after a file is saved "tidytabs_run_on_post_save": true,
Another configuration option is the threshold. Setting this to a number greater than 0 will ensure that TidyTabs only runs when the number of tabs in that view is greater than the threshold.
// If this is set and greater than 0, tidytabs will only run if // the number of tabs is greater than the threshold setting. "tidytabs_threshold": 5
Installation with Package Manager (Recommended)
The easiest way to install is via the excellent Sublime Package Manager. Once Package Manager is installed, bring up the commands menu (
Command + Shift + P on Mac,
Control + Shift + P on Windows or Linux), then type “Package Control” to filter the commands list. Select the “Package Control: Install Package” command, then find and install the TidyTabs plugin.
Installation without Package Manager
Clone or download this repo to your Packages folder.
Licensed under the MIT license.
Copyright © Brad Daily
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.