ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pane Navigation

by borist ST2

Increased keyboard functionality for navigation between tabs and split panes in Sublime Text editor

Details

  • 2013.05.27.18.22.41
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 638
  • Win 257
  • Mac 249
  • Linux 132
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimePaneNavigation

“SublimePaneNavigation” is a plugin for the Sublime Text 2 editor that provides increased keyboard navigation between tabs and split panes (when using multiple split panes in a window). This plugin primarly does 3 things:

  1. Tab Navigation: Changes the ctrl+tab and ctrl+shift+tab key bindings to cycle through the tabs in the active pane in the order that they appear in the pane (as opposed to in order of recency, as is the default); note that this is unlike the built in behavior for cmd+shift+] and cmd+shift+[ for a mac (alt+shift+] and alt+shift+] for Windows or Linux), which cycle through the tabs in the active window, across all split pane.
  2. Split Pane Navigation: Adds key bindings for ctrl+] and ctrl+[ to cycle through the multiple split panes open in a window (if there are multiple split panes).
  3. Sending Tabs To Other Panes: Adds key bindings for ctrl+shift+left and ctrl+shift+right to send tabs from their current pane to the next/previous panes (if there are multiple split panes in a window).

Installation

SublimePaneNavigation is available for installed through Package Control for Sublime Text 2. The advantage of using this method is that Package Control will automatically keep SublimePaneNavigation up to date with the latest version. To install it with Package Control:

  • Make sure you have Package Control installed, instructions available at http://wbond.net/sublime_packages/package_control/installation
  • Once you install Package Control, restart Sublime Text 2 and bring up the Command Palette with cmd+shift+P (on Mac OS X) or ctrl+shift+P (on Windows or Linux).
  • Select “Package Control: Install Package” and wait while Package Control fetches the latest package list.
  • Then, start typing “Pane Navigation” and select it from the list when it appears (restarting Sublime Text 2 is not necessary).

Otherwise, you can install SublimePaneNavigation with or without git. With git: Clone the repository in your Sublime Text “Packages” directory (git clone https://github.com/borist/SublimePaneNavigation.git). Without git: Download the latest source from GitHub and copy the folder folder to your Sublime Text “Packages” directory.

The “Packages” directory is located at:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/
    
  • Linux:

    ~/.config/sublime-text-2/Packages/
    
  • Windows:

    %APPDATA%/Sublime Text 2/Packages/
    

Usage

There are four key bindings associated with this plugin (note that in the descriptions, “next” and “previous” refer to the order in which the tabs/panes appear in the window, not based on recency as is the default in Sublime Text 2):

  • ctrl+tab: cycle to the next tab in the active pane
  • ctrl+shift+tab: cycle to the previous tab in the active pane
  • ctrl+]: cycle to the next pane in the active window
  • ctrl+[: cycle to the previous pane in the active window
  • ctrl+shift+left: send the current tab to the next pane in the active window
  • ctrl+shift+right: send the current tab to the previous pane in the active window

Configuring

If you would like part of the available functionality (for example, if you only want the split pane navigation), simply comment out the key bindings for the unwanted functionality. Additionally, if you would like to change the key bindings, simply edit the “Key Bindings” file available in the preferences menu: Preferences->Package Settings->Pane Navigation->Key Bindings - Default.