Coder Social home page Coder Social logo

vintageous-origami's Introduction

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:

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

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

vintageous-origami's People

Contributors

rodcloutier avatar thelogicdump avatar albertogg avatar

Watchers

Henry Poydar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.