Split the window however you like! Create new panes, delete panes, move and clone views from pane to pane.
- Total 136K
- Win 52K
- Mac 54K
- Linux 30K
|Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8||Sep 7||Sep 6||Sep 5||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|
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.
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:
NOTE: Windows and Linux use
||▲►▼◄||travel to an adjacent pane|
||carry the current file to the destination|
||clone the current file to the destination|
||create an adjacent pane|
||destroy an adjacent pane|
||create an adjacent pane and carry the current file to the destination|
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 Bindingsfrom 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:
||Zoom the current pane so it takes up 90% of the screen (the fraction is changeable in the keybindings)|
||Un-zoom: equally space all panes|
It is also possible to edit the pane sizes:
||Adjust the top and bottom separator|
||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
BEFORE means top (or left) separator
AFTER means bottom (or right) separator
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.5, 0.6] for horizontal and vertical correspondingly.
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.
Using package control
- Open up the command palette: ctrl+shift+p (Linux, Windows) / cmd+shift+p (macOS)
- Search for
Package Control: Install Package
- Search for
- 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"