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

Origami

by SublimeText ST2/ST3 Trending

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 month ago
  • 2 hours ago
  • 3 years ago

Installs

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

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!