-
Notifications
You must be signed in to change notification settings - Fork 5
/
keybindings.conf
281 lines (199 loc) · 6.17 KB
/
keybindings.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# These are the default keybindings for tmux-modal. This file will be used
# (sourced) by the main script `tmux-modal.tmux` when tmux loads. Users can
# however load their own custom keybindings file by copying this file, make any
# changes and then tell tmux-modal to load the custom file instead with tmux
# option `modal-keybindings-conf`. For example, put this is in your
# `.tmux.conf`:
#
# set -g @modal-keybindings-conf /path/to/my-tmux-modal-keybindings.conf
#
# The syntax is the same as for tmux keybindings:
#
# KBD_CMD_EXIT=Escape
# KBD_WIN_RESIZE_UP=S-Up
# KBD_GOTO_WIN_NEXT=C-n
# KBD_GOTO_SESS_PREV=M-p
#
# This binds `Esc`, `Shift-Up`, `Ctrl-n` and `Alt-p`, to `KBD_CMD_EXIT` (exit
# modal command mode), `KBD_WIN_RESIZE_UP` (window resize up),
# `KBD_GOTO_WIN_NEXT` (go to next window) and `KBD_GOTO_SESS_PREV` (go to
# previous session), respectively.
#
# Each keybinding variable below has an accompanying comment line. Comment lines
# that starts with a single '#' are "root" commands. Two '#'s means that this is
# a "sub-command" to the previous root command. Three '#'s means that it is a
# sub-command to the previous sub-command, and so on. If a 'q' is followed by a
# '#' in the comment line, it indicates that this command is "sticky", i.e. it
# needs to be exited explicitly (with `KBD_QUIT`).
#
# For example, `KBD_WIN_GOTO_1` is a sub-command to `KBD_WIN` and is used with
# `w 1`. `KBD_PASTE` can be used directly after entering the modal mode, i.e.
# `M-m y`. While `KBD_WIN_RESIZE_RIGHT` is used with `w r l` and is a sticky
# command (since `KBD_WIN_RESIZE`'s comment line is `##q`) and must be exited
# with 'q' (see the `README` for more details).
# Enter modal command mode.
KBD_CMD=M-m
# Exit modal command mode.
KBD_CMD_EXIT=M-m
# Quit command. This is used to exit command modes that don't require prefix
# (e.g. "w r" used for resizing panes).
KBD_QUIT=q
# Enter copy mode.
KBD_COPY_MODE=c
# Paste buffer (e.g. from copy mode).
KBD_PASTE=y
# Open the tmux command prompt.
KBD_CMD_PROMPT=:
# Window command prefix.
KBD_WIN=w
## Select window 0 (window command alias for KBD_GOTO_WIN_0).
KBD_WIN_GOTO_0=0
## Select window 1 (window command alias for KBD_GOTO_WIN_1).
KBD_WIN_GOTO_1=1
## Select window 2 (window command alias for KBD_GOTO_WIN_2).
KBD_WIN_GOTO_2=2
## Select window 3 (window command alias for KBD_GOTO_WIN_3).
KBD_WIN_GOTO_3=3
## Select window 4 (window command alias for KBD_GOTO_WIN_4).
KBD_WIN_GOTO_4=4
## Select window 5 (window command alias for KBD_GOTO_WIN_5).
KBD_WIN_GOTO_5=5
## Select window 6 (window command alias for KBD_GOTO_WIN_6).
KBD_WIN_GOTO_6=6
## Select window 7 (window command alias for KBD_GOTO_WIN_7).
KBD_WIN_GOTO_7=7
## Select window 8 (window command alias for KBD_GOTO_WIN_8).
KBD_WIN_GOTO_8=8
## Select window 9 (window command alias for KBD_GOTO_WIN_9).
KBD_WIN_GOTO_9=9
## Select window with tree view (window command alias for KBD_GOTO_WIN_TREE).
KBD_WIN_GOTO_TREE=t
## Select window with index (window command alias for KBD_GOTO_WIN_INDEX).
KBD_WIN_GOTO_INDEX=i
## Select left pane.
KBD_WIN_PANE_LEFT=h
## Select right pane.
KBD_WIN_PANE_RIGHT=l
## Select above pane.
KBD_WIN_PANE_UP=k
## Select below pane.
KBD_WIN_PANE_DOWN=j
## Delete window pane.
KBD_WIN_PANE_DEL=d
## Select previous window (window command alias for KBD_GOTO_WIN_PREV).
KBD_WIN_PREV=H
## Select next window (window command alias for KBD_GOTO_WIN_NEXT).
KBD_WIN_NEXT=L
## Delete window.
KBD_WIN_DEL=D
## Create new window.
KBD_WIN_CREATE=c
## Select last window (window command alias for KBD_GOTO_WIN_LAST).
KBD_WIN_LAST=o
## Zoom pane.
KBD_WIN_ZOOM=z
## Break pane.
KBD_WIN_BREAK=b
## Display pane numbers.
KBD_WIN_NR=n
## Rename window.
KBD_WIN_RENAME=,
##q Pane command prefix (same bindings as KBD_WIN but without the prefix).
KBD_WIN_PANE=w
## Split command prefix.
KBD_WIN_SPLIT=s
### Split window pane right.
KBD_WIN_SPLIT_RIGHT=l
### Split window pane down.
KBD_WIN_SPLIT_DOWN=j
## Move command prefix.
KBD_WIN_MOVE=m
### Move window pane up.
KBD_WIN_MOVE_UP=k
### Move window pane down.
KBD_WIN_MOVE_DOWN=j
## Arrange command prefix.
KBD_WIN_ARRANGE=a
### Arrange window layout 1 ("even-horizontal").
KBD_WIN_ARRANGE_1=1
### Arrange window layout 2 ("even-vertical").
KBD_WIN_ARRANGE_2=2
### Arrange window layout 3 ("main-horizontal").
KBD_WIN_ARRANGE_3=3
### Arrange window layout 4 ("main-vertical").
KBD_WIN_ARRANGE_4=4
##q Resize command prefix.
KBD_WIN_RESIZE=r
### Resize pane left one step.
KBD_WIN_RESIZE_LEFT=h
### Resize pane right one step.
KBD_WIN_RESIZE_RIGHT=l
### Resize pane down one step.
KBD_WIN_RESIZE_DOWN=j
### Resize pane up one step.
KBD_WIN_RESIZE_UP=k
### Resize pane left multiple steps.
KBD_WIN_RESIZE_MULTI_LEFT=H
### Resize pane right multiple steps.
KBD_WIN_RESIZE_MULTI_RIGHT=L
### Resize pane down multiple steps.
KBD_WIN_RESIZE_MULTI_DOWN=J
### Resize pane up multiple steps.
KBD_WIN_RESIZE_MULTI_UP=K
# Session command prefix.
KBD_SESS=s
## Detach session.
KBD_SESS_DETACH=d
## Select previous session (session command alias for KBD_GOTO_SESS_PREV).
KBD_SESS_PREV=h
## Select next session (session command alias for KBD_GOTO_SESS_NEXT).
KBD_SESS_NEXT=l
## Select session with a tree view (session command alias for
## KBD_GOTO_SESS_TREE).
KBD_SESS_TREE=t
## Delete session.
KBD_SESS_DEL=D
## Rename session.
KBD_SESS_RENAME=,
# "Go to" command prefix.
KBD_GOTO=g
## Go to window command prefix.
KBD_GOTO_WIN=w
### Go to window 0.
KBD_GOTO_WIN_0=0
### Go to window 1.
KBD_GOTO_WIN_1=1
### Go to window 2.
KBD_GOTO_WIN_2=2
### Go to window 3.
KBD_GOTO_WIN_3=3
### Go to window 4.
KBD_GOTO_WIN_4=4
### Go to window 5.
KBD_GOTO_WIN_5=5
### Go to window 6.
KBD_GOTO_WIN_6=6
### Go to window 7.
KBD_GOTO_WIN_7=7
### Go to window 8.
KBD_GOTO_WIN_8=8
### Go to window 9.
KBD_GOTO_WIN_9=9
### Go to window with tree view.
KBD_GOTO_WIN_TREE=t
### Go to window with index.
KBD_GOTO_WIN_INDEX=i
### Go to previous window.
KBD_GOTO_WIN_PREV=h
### Go to next window.
KBD_GOTO_WIN_NEXT=l
### Go to last window.
KBD_GOTO_WIN_LAST=o
## Go to session command prefix.
KBD_GOTO_SESS=s
### Go to previous session.
KBD_GOTO_SESS_PREV=h
### Go to next session.
KBD_GOTO_SESS_NEXT=l
### Go to session with tree view.
KBD_GOTO_SESS_TREE=t