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

Vintageous​Origami

by rodcloutier ST3

Add Vim like pane management to Vintageous using SublimeText/Origami

Details

Installs

  • Total 5K
  • Win 2K
  • Mac 2K
  • Linux 1K
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 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
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1

Readme

Source
raw.​githubusercontent.​com

Vintageous Origami

Origami is an awesome Sublime Text plugin that lets you conveniently configure your panel layout using shortcut keys.

Vintageous Origami adds pane management shortcut using Origami functionality similar to Vim's window managment. It tries to match as best as possible Vim behaviour. Origami's shortcuts are also available through the familiar Vim ctrl+w shortcut.

Notes

  • These bindings are only available in command mode (not insert mode).

To use this with Vintageous, first press ctrl+w, then press one of following key

  • v ctrl+v: Vertical split
  • s S ctrl+s: Horizontal split
  • c: Close pane
  • n ctrl+n: New horizontal split with empty file
  • o ctrl+o: Make current pane the only one
  • l, <right>: Move to right pane
  • h, <left>: Move to left pane
  • k, <up>: Move to up pane
  • j, <down>: Move to down pane
  • L: Exchange with right pane
  • H: Exchange with left pane
  • K: Exchange with up pane
  • J: Exchange with down pane

Also adds custom bindings:

  • x: Close window
  • X: Close all windows

The following Origami bindings are still available after pressing ctrl+w.

  • no modifiers: travel to an adjacent pane

The following Origami bindings will not work.

  • 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

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

Commands

The following basic commands are implemented: * :sp[lit]: Horizontal split * :vne[w]: Vertical split with new file

By default, the plugin overrides the following command provided by Vintageous to provide a behaviour that is more consistent with Vim's

  • :vs[plit]: Vertical split
  • :new: Horizontal split with new file
  • :on[ly]: Make current pane the only one

Each of the override can be toggle with the appropriate settingfollowing preferences vintageous_origami_override_command_vsplit

Settings

See Vintageous-origami/Preferences.sublime-settings for a comprehensive list of settings.

Install

Make sure you have Origami installed already:

https://github.com/SublimeText/Origami

Make sure you have Vintageous installed already:

https://github.com/guillermooo/Vintageous

Enable Vintageous to use ctrl keys in your preferences

`"vintageous_use_ctrl_keys": true`

This plugin is available through Package Control.

Manual Install

First make sure Origami is already installed:

https://github.com/SublimeText/Origami

Go to your Packages subdirectory under ST3's data directory:

  • Windows: %APPDATA%\Sublime Text 3
  • OS X: ~/Library/Application Support/Sublime Text 3
  • Linux: ~/.config/sublime-text-3
  • Portable Installation: Sublime Text 3/Data

Then clone this repository:

git clone https://github.com/rodcloutier/Vintageous-Origami.git

Todo

  • Add support for arguments to :sp :vs :new :vnew

Inspired by https://github.com/garyc40/Vintage-Origami