Skip to content

Commit 2c7c58d

Browse files
committed
add shortcuts descriptions
1 parent cb797f8 commit 2c7c58d

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

README.md

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,68 @@ A powerful plugin to split window like [tmux](https://github.com/ThomasAdam/tmux
33

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

6-
#Installation
7-
Use [Package Control](https://packagecontrol.io/) :)
8-
9-
#Usage
106
##What can it do?
117
* Split, resize, destory pane, and move between panes (Yes, same as tmux!)
128
* Carry or clone current file to pane
139
* Undo and redo your layout
1410
* Save current layout
1511
* Load layout from file
1612

13+
#Installation
14+
Use [Package Control](https://packagecontrol.io/) :)
15+
16+
#Usage
17+
##Split pane
18+
| Shortcuts Key | Command |
19+
|--------------------|----------------------|
20+
| `Ctrl+W` `Shift+\` | Split vertically |
21+
| `Ctrl+W` `-` | Split horizontally |
22+
| `Ctrl+W` `3` | Split to 3 panes |
23+
| `Ctrl+W` `4` | Split to 4 panes |
24+
| `Ctrl+W` `1` | Merge to 1 pane |
25+
| `Ctrl+W` `X` | Destory current pane |
26+
27+
##Move between panes
28+
| Shortcuts Key | Command |
29+
|--------------------|--------------------|
30+
| `Ctrl+W` `H` | Move to left pane |
31+
| `Ctrl+W` `L` | Move to right pane |
32+
| `Ctrl+W` `K` | Move to up pane |
33+
| `Ctrl+W` `J` | Move to down pane |
34+
| `Ctrl+W` `Tab` | Move between panes |
35+
36+
##Resize pane
37+
| Shortcuts Key | Command |
38+
|---------------|----------------------------|
39+
| `Alt+H` | Increase pane toward left |
40+
| `Alt+L` | Increase pane toward right |
41+
| `Alt+K` | Increase pane toward up |
42+
| `Alt+J` | Increase pane toward down |
43+
44+
You can hold `Alt` key and press down another key to repeat the command.
45+
46+
##Carry file to pane
47+
| Shortcuts Key | Command |
48+
|--------------------|--------------------------|
49+
| `Ctrl+W` `Shift+H` | Carry file to left pane |
50+
| `Ctrl+W` `Shift+L` | Carry file to right pane |
51+
| `Ctrl+W` `Shift+K` | Carry file to up pane |
52+
| `Ctrl+W` `Shift+J` | Carry file to down pane |
53+
| `Ctrl+W` `Ctrl+H` | Clone file to left pane |
54+
| `Ctrl+W` `Ctrl+L` | Clone file to right pane |
55+
| `Ctrl+W` `Ctrl+K` | Clone file to up pane |
56+
| `Ctrl+W` `Ctrl+J` | Clone file to down pane |
57+
58+
##Advance commands
59+
| Shortcuts Key | Command |
60+
|--------------------|--------------------------------------|
61+
| `Ctrl+W` `S` | Save current layout to default file |
62+
| `Ctrl+W` `O` | Load layout from default file |
63+
| `Ctrl+W` `Shift+S` | Save current layout to specific file |
64+
| `Ctrl+W` `Shift+R` | Redo layout |
65+
| `Ctrl+W` `Shift+Z` | Undo layout |
66+
67+
1768
#License
1869
```
1970
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

0 commit comments

Comments
 (0)