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

Origami

by SublimeText ST2/ST3

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

Details

  • 2016.11.19.21.46.59
  • github.​com
  • github.​com
  • 5 months ago
  • 56 minutes ago
  • 5 years ago

Installs

  • Total 76K
  • Win 27K
  • OS X 34K
  • Linux 15K
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 Mar 12 Mar 11 Mar 10 Mar 9
Windows 13 18 32 30 20 29 27 17 20 14 34 35 27 28 16 12 40 29 25 29 31 12 11 36 30 26 30 24 15 23 31 27 32 33 32 14 17 39 37 25 28 41 19 18 27 26
OS X 14 12 20 37 42 21 19 14 17 34 23 35 25 22 9 18 34 13 36 22 26 24 22 30 33 33 31 31 12 15 33 35 31 21 27 17 20 25 33 38 36 32 24 19 30 28
Linux 6 9 9 13 18 15 14 10 19 17 16 17 21 20 6 17 11 15 14 19 16 6 17 17 20 14 14 22 9 12 9 22 21 18 22 6 11 17 19 25 17 14 11 11 25 18

Readme

Source
raw.​githubusercontent.​com

Origami

Origami is a new way of thinking about panes in Sublime Text 2 and 3: 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

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:

  • no modifiers: travel to an adjacent pane
  • shift: carry the current file to the destination
  • alt (option): clone the current file to the destination
  • command: create an adjacent pane
  • command+shift: destroy an adjacent pane

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

Additionally, Origami allows one to zoom the current pane, making it take up a large portion of the window. As above, first press command+k, then press:

  • command+z: Zoom the current pane so it takes up 90% of the screen (the fraction is changeable in the keybindings)
  • shift+command+z: Unzoom: equally space all panes

It is also possible to edit the pane sizes. After command+k press: * command+r: Adjust the top and bottom separator * 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

(Note: Windows and Linux use ctrl instead of command.)

Automation

You can have Origami automatically zoom the active pane by setting origami_auto_zoom_on_focus in your 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 origami_auto_close_empty_panes to true in your user preferences.

Install

Search for Origami on Package Control!