Git Product home page Git Product logo

tab-smart-sort's Introduction

tab-smart-sort package

Sorts tabs into logical order as they are added.

Image inserted by Atom editor package auto-host-markdown-image

A simple package to order tabs in a logical fashion as they are added. The order is based on any sort priority of path, extension, and file name. The order can be customized in settings. After you use this for a while you will always know where to look in the tab bar. No more hunting around.

Installation

Enter apm install tab-smart-sort into a command window or use the Atom settings pane.

Usage

Simply install this and every time a new tab is added it will be placed in the location matching the sort specification in settings. If you open a new pane then the tabs in that pane will be sorted the same way.

Note that this extension only sorts tabs when they are added. You may move the tabs around manually and they will stay in that position, even after a reload.

If you'd like to (re)sort on demand, this plugin also has a sort command.

Sort Order Settings

The sorting is based on the file path. There is a setting Case Sensitive that applies to the path.

You specify the priority of the different parts of the path using the Ordering setting. Here are some suggestions ...

  • "dir, ext, base". This is the default. The highest priority is the directory, the next highest is the file extension, and the file name is last.
  • "ext, base, dir". Group all files of the same type together and sort by file name in each group. The directory is pretty much ignored.
  • "base, ext, dir". Simple ordering by file name.

If a tab has no file path, such as the Settings Pane, it is considered a "special" tab and it is placed on the far left or far right based on the setting Place Special Tabs On Right which defaults to the left.

License

MIT license.

tab-smart-sort's People

Contributors

mark-hahn avatar jspiro avatar pauan avatar

Watchers

Michael Meyer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.