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

Origami

by SublimeText ALL

Split the window however you like! Create new panes, delete panes, move and clone views from pane to pane.

Details

  • 2.2.0
    1.0.0
  • github.​com
  • github.​com
  • 2 months ago
  • 1 hour ago
  • 9 years ago

Installs

  • Total 123K
  • Win 46K
  • Mac 50K
  • Linux 27K
May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 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
Windows 1 6 8 12 22 17 11 13 12 12 6 11 4 13 4 8 13 13 10 11 14 8 6 8 7 10 14 11 12 6 6 13 7 7 14 13 8 8 13 16 11 10 8 6 10 10
Mac 0 1 3 6 10 3 7 3 1 10 4 4 6 7 2 4 11 3 9 6 3 6 8 6 8 9 9 9 6 4 9 8 12 8 13 7 8 5 8 7 10 7 4 4 6 10
Linux 0 4 6 5 9 9 4 2 6 8 8 9 10 8 1 2 5 5 2 5 8 6 4 7 1 6 4 8 5 8 7 6 6 7 10 6 1 11 7 5 3 6 7 3 3 6

Readme

Source
raw.​githubusercontent.​com

Origami

Origami is a new way of thinking about panes in Sublime Text: you tell Sublime Text where you want a new pane, and it makes one for you. It works seamlessly alongside the built-in layout commands.

Ordinarily one uses the commands under View>Layout, or if one is quite intrepid a custom keyboard shortcut can be made to give a specific layout, but both of these solutions were unsatisfactory to me. Perhaps they were to you too! That's what this plugin is for.

Try it out! I think you'll like it.

Keyboard shortcuts

NOTE: Windows and Linux use ctrl instead of command.

Origami is driven by keyboard shortcuts. By default, these keyboard shortcuts are all two-stage, and are hidden behind command+k. First press command+k, then press the arrow keys with modifiers:

First Then Action
command+k ▲►▼◄ travel to an adjacent pane
command+k shift+▲►▼◄ carry the current file to the destination
command+k alt (option)+▲►▼◄ clone the current file to the destination
command+k command+▲►▼◄ create an adjacent pane
command+k command+shift+▲►▼◄ destroy an adjacent pane

These keyboard shortcuts are designed to make it really easy to modify the layout of your editor.

NOTE: The following keyboard shortcuts for zooming and editing pane sizes are not enabled by default due to a conflict with built-in ST features. Open the Preferences: Origami Key Bindings from the Command Palette to enable or edit them, or just use the Command Palette to trigger those commands.

Additionally, Origami allows one to zoom the current pane, making it take up a large portion of the window:

First Then Action
command+k command+z Zoom the current pane so it takes up 90% of the screen (the fraction is changeable in the keybindings)
command+k shift+command+z Un-zoom: equally space all panes

It is also possible to edit the pane sizes:

First Then Action
command+k command+r Adjust the top and bottom separator
command+k command+c Adjust the left and right separator

In the keybindings you can change a mode which specifies which separation lines you want to edit. * ALL means all horizontal (or vertical) separators * RELEVANT means all horizontal (or vertical) separators which intersect the column (row) of the selected row. * NEAREST means top and bottom (or left and right) separators. This is the default mode. * BEFORE means top (or left) separator * AFTER means bottom (or right) separator

Automation

You can have Origami automatically zoom the active pane by setting auto_zoom_on_focus in your Origami user preferences. Set it to true for the default zoom, or set it to a user-definable fraction of the screen, such as 0.75.

Origami can also automatically close a pane for you once you've closed the last file in it. Just set auto_close_empty_panes to true in the Origami preferences.

Installation

Using package control

  1. Open up the command palette: ctrl+shift+p (Linux, Windows) / cmd+shift+p (macOS)
  2. Search for Package Control: Install Package
  3. Search for Origami
  4. Hit enter :wink:

Using the command line

If you want to contribute to this package, first thanks, and second, you should download this using git so that you can propose your changes.

cd "%APPDATA%\Sublime Text 3\Packages"             # on Windows
cd ~/Library/Application\ Support/Sublime\ Text\ 3 # on Mac
cd ~/.config/sublime-text-3                        # on Linux

git clone "https://github.com/SublimeText/Origami.git"