Skip to content

Commit

Permalink
add shortcuts descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
loggerhead committed Apr 12, 2016
1 parent cb797f8 commit 2c7c58d
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,68 @@ A powerful plugin to split window like [tmux](https://github.com/ThomasAdam/tmux

![Example](https://raw.githubusercontent.com/loggerhead/Layout/master/artwork/example.gif)

#Installation
Use [Package Control](https://packagecontrol.io/) :)

#Usage
##What can it do?
* Split, resize, destory pane, and move between panes (Yes, same as tmux!)
* Carry or clone current file to pane
* Undo and redo your layout
* Save current layout
* Load layout from file

#Installation
Use [Package Control](https://packagecontrol.io/) :)

#Usage
##Split pane
| Shortcuts Key | Command |
|--------------------|----------------------|
| `Ctrl+W` `Shift+\` | Split vertically |
| `Ctrl+W` `-` | Split horizontally |
| `Ctrl+W` `3` | Split to 3 panes |
| `Ctrl+W` `4` | Split to 4 panes |
| `Ctrl+W` `1` | Merge to 1 pane |
| `Ctrl+W` `X` | Destory current pane |

##Move between panes
| Shortcuts Key | Command |
|--------------------|--------------------|
| `Ctrl+W` `H` | Move to left pane |
| `Ctrl+W` `L` | Move to right pane |
| `Ctrl+W` `K` | Move to up pane |
| `Ctrl+W` `J` | Move to down pane |
| `Ctrl+W` `Tab` | Move between panes |

##Resize pane
| Shortcuts Key | Command |
|---------------|----------------------------|
| `Alt+H` | Increase pane toward left |
| `Alt+L` | Increase pane toward right |
| `Alt+K` | Increase pane toward up |
| `Alt+J` | Increase pane toward down |

You can hold `Alt` key and press down another key to repeat the command.

##Carry file to pane
| Shortcuts Key | Command |
|--------------------|--------------------------|
| `Ctrl+W` `Shift+H` | Carry file to left pane |
| `Ctrl+W` `Shift+L` | Carry file to right pane |
| `Ctrl+W` `Shift+K` | Carry file to up pane |
| `Ctrl+W` `Shift+J` | Carry file to down pane |
| `Ctrl+W` `Ctrl+H` | Clone file to left pane |
| `Ctrl+W` `Ctrl+L` | Clone file to right pane |
| `Ctrl+W` `Ctrl+K` | Clone file to up pane |
| `Ctrl+W` `Ctrl+J` | Clone file to down pane |

##Advance commands
| Shortcuts Key | Command |
|--------------------|--------------------------------------|
| `Ctrl+W` `S` | Save current layout to default file |
| `Ctrl+W` `O` | Load layout from default file |
| `Ctrl+W` `Shift+S` | Save current layout to specific file |
| `Ctrl+W` `Shift+R` | Redo layout |
| `Ctrl+W` `Shift+Z` | Undo layout |


#License
```
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Expand Down

0 comments on commit 2c7c58d

Please sign in to comment.