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

  • 2015.07.28.11.45.23
  • github.​com
  • github.​com
  • 1 day ago
  • 7 minutes ago
  • 3 years ago

Installs

  • Total 39K
  • Win 13K
  • OS X 19K
  • Linux 7K
Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14
Windows 20 27 31 22 12 34 32 31 29 26 15 13 27 39 27 27 37 15 16 62 53 33 33 39 11 21 37 31 42 30 31 16 18 34 33 20 31 33 26 15 31 31 45 41 25 19
OS X 21 49 48 21 20 25 28 35 36 29 16 18 28 62 38 34 40 17 20 46 37 41 35 33 28 18 33 29 50 41 42 31 31 42 33 39 37 31 25 19 31 53 32 28 33 27
Linux 6 23 11 10 8 9 15 13 9 28 6 9 15 20 14 16 20 10 5 17 23 16 16 15 8 9 27 13 15 15 17 8 9 19 17 17 15 18 11 14 11 16 15 15 15 12

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 * 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!