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.05.19.14.39.01
  • github.​com
  • github.​com
  • 6 days ago
  • 24 minutes ago
  • 4 years ago

Installs

  • Total 58K
  • Win 20K
  • OS X 27K
  • Linux 11K
May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 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
Windows 34 30 33 18 21 37 43 44 38 32 26 16 36 45 27 38 36 17 21 28 38 37 35 33 12 16 28 28 39 33 35 19 23 26 33 44 44 49 24 21 35 37 23 35 23 21
OS X 43 45 32 23 10 37 47 36 37 40 23 25 33 19 27 25 33 20 20 24 37 32 37 35 16 15 24 27 20 38 36 11 24 30 41 46 41 41 30 30 33 31 31 31 30 16
Linux 24 12 15 12 9 18 18 12 23 18 13 8 18 22 22 16 21 10 13 22 10 20 14 23 10 19 18 17 10 16 24 10 15 16 21 13 18 17 14 12 9 15 31 20 17 10

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 super+k. First press super+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
  • super: create an adjacent pane
  • super+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 super+k, then press:

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

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

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!