GithubHelp home page GithubHelp logo

sublimedocumenttabs's Introduction

Sublime Document Tabs

A Sublime Text 3 plugin for macOS users that provides keyboard shortcuts for navigating macOS document tabs within Sublime Text windows.

If you're unfamiliar, macOS document tabs can be used instead of windows when opening multiple Sublime Text projects:

(To switch from using multiple windows to using document tabs, navigate to the Dock section of your System Preferences and select "Prefer tabs when opening new documents: Always".)

The system-wide keyboard shortcuts for cycling through document tabs are ctrl+tab and ctrl+shift+tab, but these are overridden within Sublime Text. This plugin provides replacement Sublime Text key bindings for these shortcuts.

Accessibility access

Because it uses AppleScript to control the active document tab, this plugin requires Sublime text to be given Accessibility access to control your computer:

  1. In System Preferences, navigate to Security & Privacy ▸ Privacy ▸ Accessibility
  2. Click the plus (+) button under the list of apps allowed to control your computer, and add Sublime Text

Key bindings

Since its preferred key bindings override Sublime Text defaults, this plugin doesn't add any key bindings by default.

To add key bindings, go to Preferences ▸ Package Settings ▸ Document Tabs ▸ Example Key Bindings and copy the suggested key bindings to your personal key bindings file (Preferences ▸ Package Settings ▸ Document Tabs ▸ Key Bindings – User).

Remember that you can replace the suggested ctrl+tab/ctrl+shift+tab with whatever you prefer.

Personally, I prefer the consistency of the system-wide shortcut, so in my own keybindings I've moved Sublime Text's internal key bindings to option+tab/option+shift+tab and am using ctrl+tab/ctrl+shift+tab to cycle document tabs:

[
  { "keys": ["ctrl+tab"], "command": "document_tabs_next" },
  { "keys": ["ctrl+shift+tab"], "command": "document_tabs_prev" },

  { "keys": ["option+tab"], "command": "next_view_in_stack" },
  { "keys": ["option+shift+tab"], "command": "prev_view_in_stack" }
]

Thanks to lunixbochs on the Sublime Text forum for the original suggestion.

sublimedocumenttabs's People

Contributors

redopop avatar

Watchers

 avatar James Cloos avatar  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.