20
20
-- modifier to some of the F-key bindings.
21
21
22
22
defbindings (" WScreen" , {
23
- bdoc (" Switch to n:th object (workspace, full screen client window) " ..
24
- " within current screen." ),
23
+ bdoc (" Switch to object 0 (workspace, full screen client window) " ..
24
+ " within current screen." , " ws 0 " ),
25
25
kpress (META .. " 1" , " WScreen.switch_nth(_, 0)" ),
26
+ bdoc (" Switch to object 1 (workspace, full screen client window) " ..
27
+ " within current screen." , " ws 1" ),
26
28
kpress (META .. " 2" , " WScreen.switch_nth(_, 1)" ),
29
+ bdoc (" Switch to object 2 (workspace, full screen client window) " ..
30
+ " within current screen." , " ws 2" ),
27
31
kpress (META .. " 3" , " WScreen.switch_nth(_, 2)" ),
32
+ bdoc (" Switch to object 3 (workspace, full screen client window) " ..
33
+ " within current screen." , " ws 3" ),
28
34
kpress (META .. " 4" , " WScreen.switch_nth(_, 3)" ),
35
+ bdoc (" Switch to object 4 (workspace, full screen client window) " ..
36
+ " within current screen." , " ws 4" ),
29
37
kpress (META .. " 5" , " WScreen.switch_nth(_, 4)" ),
38
+ bdoc (" Switch to object 5 (workspace, full screen client window) " ..
39
+ " within current screen." , " ws 5" ),
30
40
kpress (META .. " 6" , " WScreen.switch_nth(_, 5)" ),
41
+ bdoc (" Switch to object 6 (workspace, full screen client window) " ..
42
+ " within current screen." , " ws 6" ),
31
43
kpress (META .. " 7" , " WScreen.switch_nth(_, 6)" ),
44
+ bdoc (" Switch to object 7 (workspace, full screen client window) " ..
45
+ " within current screen." , " ws 7" ),
32
46
kpress (META .. " 8" , " WScreen.switch_nth(_, 7)" ),
47
+ bdoc (" Switch to object 8 (workspace, full screen client window) " ..
48
+ " within current screen." , " ws 8" ),
33
49
kpress (META .. " 9" , " WScreen.switch_nth(_, 8)" ),
50
+ bdoc (" Switch to object 9 (workspace, full screen client window) " ..
51
+ " within current screen." , " ws 9" ),
34
52
kpress (META .. " 0" , " WScreen.switch_nth(_, 9)" ),
35
53
36
- bdoc (" Switch to next/previous object within current screen." ),
54
+ bdoc (" Switch to next object (workspace, full screen client window) " ..
55
+ " within current screen." , " ->ws" ),
37
56
kpress (META .. " grave" , " WScreen.switch_next(_)" ),
57
+ bdoc (" Switch to previous object (workspace, full screen client window) " ..
58
+ " within current screen." , " <-ws" ),
38
59
kpress (ALTMETA .. " asciitilde" , " WScreen.switch_prev(_)" ),
39
60
40
61
submap (META .. " O" , {
@@ -51,18 +72,22 @@ defbindings("WScreen", {
51
72
52
73
}),
53
74
54
- bdoc (" Go to n:th screen on multihead setup." ),
55
- kpress (META .. " Shift+ 1" , " ioncore.goto_nth_screen(0)" ),
75
+ bdoc (" Go to screen 0 on multihead setup." , " scr 0 " ),
76
+ kpress (ALTMETA .. " 1" , " ioncore.goto_nth_screen(0)" ),
56
77
kpress (META .. " F1" , " ioncore.goto_nth_screen(0)" ),
57
- kpress (META .. " Shift+2" , " ioncore.goto_nth_screen(1)" ),
78
+ bdoc (" Go to screen 1 on multihead setup." , " scr 1" ),
79
+ kpress (ALTMETA .. " 2" , " ioncore.goto_nth_screen(1)" ),
58
80
kpress (META .. " F2" , " ioncore.goto_nth_screen(1)" ),
59
- kpress (META .. " Shift+3" , " ioncore.goto_nth_screen(2)" ),
81
+ bdoc (" Go to screen 2 on multihead setup." , " scr 2" ),
82
+ kpress (ALTMETA .. " 3" , " ioncore.goto_nth_screen(2)" ),
60
83
kpress (META .. " F3" , " ioncore.goto_nth_screen(2)" ),
61
- kpress (META .. " Shift+4" , " ioncore.goto_nth_screen(3)" ),
84
+ bdoc (" Go to screen 3 on multihead setup." , " scr 3" ),
85
+ kpress (ALTMETA .. " 4" , " ioncore.goto_nth_screen(3)" ),
62
86
-- kpress(META.."F4", "ioncore.goto_nth_screen(3)"),
63
87
64
- bdoc (" Go to next/ previous screen on multihead setup." ),
88
+ bdoc (" Go to previous screen on multihead setup." , " <-scr " ),
65
89
kpress (ALTMETA .. " Escape" , " ioncore.goto_prev_screen()" ),
90
+ bdoc (" Go to next screen on multihead setup." , " ->scr" ),
66
91
kpress (META .. " Escape" , " ioncore.goto_next_screen()" ),
67
92
68
93
bdoc (" Create a new workspace of chosen default type." ),
@@ -76,7 +101,7 @@ defbindings("WScreen", {
76
101
bdoc (" Display the window list menu." ),
77
102
mpress (" Button2" , " mod_menu.pmenu(_, _sub, 'windowlist')" ),
78
103
79
- bdoc (" Forward-circulate focus." ),
104
+ bdoc (" Forward-circulate focus." , " ->frame " ),
80
105
-- '_chld' used here stands to for an actual child window that may not
81
106
-- be managed by the screen itself, unlike '_sub', that is likely to be
82
107
-- the managing group of that window. The right/left directions are
@@ -85,11 +110,11 @@ defbindings("WScreen", {
85
110
kpress (META .. " Tab" , " ioncore.goto_next(_chld, 'right')" ,
86
111
" _chld:non-nil" ),
87
112
88
- bdoc (" Backward-circulate focus." ),
113
+ bdoc (" Backward-circulate focus." , " <-frame " ),
89
114
kpress (ALTMETA .. " Tab" , " ioncore.goto_next(_chld, 'left')" ,
90
115
" _chld:non-nil" ),
91
116
92
- bdoc (" Raise focused object, if possible." ),
117
+ bdoc (" Raise focused object, if possible." , " raise " ),
93
118
kpress (ALTMETA .. " R" , " WRegion.rqorder(_chld, 'front')" ,
94
119
" _chld:non-nil" ),
95
120
})
@@ -101,22 +126,22 @@ defbindings("WScreen", {
101
126
102
127
defbindings (" WClientWin" , {
103
128
bdoc (" Nudge the client window. This might help with some " ..
104
- " programs' resizing problems." ),
129
+ " programs' resizing problems." , " nudge " ),
105
130
kpress_wait (ALTMETA .. " L" , " WClientWin.nudge(_)" ),
106
131
107
- bdoc (" Kill client owning the client window." ),
132
+ bdoc (" Kill client owning the client window." , " kill " ),
108
133
kpress (ALTMETA .. " C" , " WClientWin.kill(_)" ),
109
134
110
135
bdoc (" Send next key press to the client window. " ..
111
- " Some programs may not allow this by default." ),
136
+ " Some programs may not allow this by default." , " quote " ),
112
137
kpress (ALTMETA .. " Q" , " WClientWin.quote_next(_)" ),
113
138
})
114
139
115
140
116
141
-- Client window group bindings
117
142
118
143
defbindings (" WGroupCW" , {
119
- bdoc (" Toggle client window group full-screen mode" ),
144
+ bdoc (" Toggle client window group full-screen mode" , " fullscr " ),
120
145
kpress_wait (META .. " Q" , " WGroup.set_fullscreen(_, 'toggle')" ),
121
146
})
122
147
@@ -127,10 +152,10 @@ defbindings("WGroupCW", {
127
152
-- contexts/objects always gets to handle the key press.
128
153
129
154
defbindings (" WMPlex" , {
130
- bdoc (" Close current object." ),
155
+ bdoc (" Close current object." , " close " ),
131
156
kpress_wait (META .. " C" , " WRegion.rqclose_propagate(_, _sub)" ),
132
157
133
- bdoc (" Detach (float) or reattach an object to its previous location." ),
158
+ bdoc (" Detach (float) or reattach an object to its previous location." , " detach " ),
134
159
-- By using _chld instead of _sub, we can detach/reattach queries
135
160
-- attached to a group. The detach code checks if the parameter
136
161
-- (_chld) is a group 'bottom' and detaches the whole group in that
@@ -141,52 +166,56 @@ defbindings("WMPlex", {
141
166
-- Frames for transient windows ignore this bindmap
142
167
143
168
defbindings (" WMPlex.toplevel" , {
144
- bdoc (" Toggle tag of current object." ),
169
+ bdoc (" Toggle tag of current object." , " tag " ),
145
170
kpress (META .. " T" , " WRegion.set_tagged(_sub, 'toggle')" , " _sub:non-nil" ),
146
171
147
- bdoc (" Clear all tags." ),
172
+ bdoc (" Clear all tags." , " -tags " ),
148
173
kpress (ALTMETA .. " T" , " ioncore.clear_tags()" ),
149
174
150
- bdoc (" Lock screen" ),
175
+ bdoc (" Lock screen" , " lock " ),
151
176
kpress (META .. " L" , " notioncore.exec_on(_, notioncore.lookup_script('notion-lock'))" ),
152
177
153
- bdoc (" Run a terminal emulator." ),
178
+ bdoc (" Run a terminal emulator." , " xterm " ),
154
179
kpress (META .. " Return" , " mod_query.exec_on_merr(_, XTERM or 'xterm')" ),
155
180
kpress (" F2" , " mod_query.exec_on_merr(_, XTERM or 'xterm')" ),
156
181
157
- bdoc (" Query for command line to execute." ),
182
+ bdoc (" Query for command line to execute." , " run " ),
158
183
kpress (META .. " J" , " mod_query.query_exec(_)" ),
159
184
160
- bdoc (" Query for Lua code to execute." ),
185
+ bdoc (" Query for Lua code to execute." , " lua " ),
161
186
kpress (ALTMETA .. " J" , " mod_query.query_lua(_)" ),
162
187
163
- bdoc (" Query for host to connect to with SSH." ),
188
+ bdoc (" Query for host to connect to with SSH." , " ssh " ),
164
189
kpress (ALTMETA .. " F4" , " mod_query.query_ssh(_, ':ssh')" ),
165
190
166
- bdoc (" Query for file to edit." ),
191
+ bdoc (" Query for file to edit." , " edit " ),
167
192
kpress (ALTMETA .. " F5" ,
168
193
" mod_query.query_editfile(_, 'run-mailcap --action=edit')" ),
169
194
170
- bdoc (" Query for file to view." ),
195
+ bdoc (" Query for file to view." , " view " ),
171
196
kpress (ALTMETA .. " F6" ,
172
197
" mod_query.query_runfile(_, 'run-mailcap --action=view')" ),
173
198
174
- bdoc (" Query for keybinding." ),
199
+ bdoc (" Query for keybinding." , " qkb " ),
175
200
kpress (META .. " F7" ,
176
201
" mod_query.query_binding(_, _sub)" ),
177
202
178
- bdoc (" Query for workspace to go to or create a new one." ),
203
+ bdoc (" Query for workspace to go to or create a new one." , " +ws " ),
179
204
kpress (ALTMETA .. " F9" , " mod_query.query_workspace(_)" ),
180
205
181
- bdoc (" Query for a client window to go to." ),
206
+ bdoc (" Query for a client window to go to." , " go " ),
182
207
kpress (META .. " G" , " mod_query.query_gotoclient(_)" ),
183
208
184
- bdoc (" Display context menu." ),
185
- kpress (META .. " M" , " mod_menu.menu(_, _sub, 'ctxmenu')" ),
186
- kpress (ALTMETA .. " M" , " mod_query.query_menu(_, _sub, 'ctxmenu', 'Context menu:')" ),
209
+ bdoc (" Display context menu." , " ctx" ),
210
+ kpress (META .. " C" , " mod_menu.menu(_, _sub, 'ctxmenu')" ),
211
+ bdoc (" Query for context menu." , " qctx" ),
212
+ kpress (ALTMETA .. " C" , " mod_query.query_menu(_, _sub, 'ctxmenu', 'Context menu:')" ),
213
+
214
+ bdoc (" Show Notion 'live docs'." , " help" ),
215
+ kpress (META .. " slash" , " show_live_docs()" ),
187
216
188
- bdoc (" Query for manual page to be displayed." ),
189
- kpress (META .. " slash" , " mod_query.query_man(_, ':man')" ),
217
+ bdoc (" Query for manual page to be displayed." , " man " ),
218
+ kpress (ALTMETA .. " slash" , " mod_query.query_man(_, ':man')" ),
190
219
})
191
220
192
221
-- WFrame context bindings
@@ -195,14 +224,15 @@ defbindings("WMPlex.toplevel", {
195
224
-- frame bindings are found in some modules' configuration files.
196
225
197
226
defbindings (" WFrame" , {
198
- bdoc (" Maximize the frame horizontally/vertically. " ),
227
+ bdoc (" Maximize the frame horizontally. " , " hmax " ),
199
228
kpress (ALTMETA .. " H" , " WFrame.maximize_horiz(_)" ),
229
+ bdoc (" Maximize the frame vertically." , " vmax" ),
200
230
kpress (ALTMETA .. " V" , " WFrame.maximize_vert(_)" ),
201
231
202
232
bdoc (" Display context menu." ),
203
233
mpress (" Button3" , " mod_menu.pmenu(_, _sub, 'ctxmenu')" ),
204
234
205
- bdoc (" Begin move/resize mode." ),
235
+ bdoc (" Begin move/resize mode." , " resize " ),
206
236
kpress (META .. " R" , " WFrame.begin_kbresize(_)" ),
207
237
208
238
bdoc (" Switch the frame to display the object indicated by the tab." ),
@@ -220,34 +250,42 @@ defbindings("WFrame", {
220
250
mdrag (" Button1@tab" , " WFrame.p_tabdrag(_)" ),
221
251
mdrag (" Button2@tab" , " WFrame.p_tabdrag(_)" ),
222
252
223
- bdoc (" Switch to next/previous object within the frame." ),
253
+ bdoc (" Switch to next object within the frame." , " ->tab " ),
224
254
-- See docs on how to disable capslock caps behaviour
225
255
kpress (META .. " Caps_Lock" , " WFrame.switch_next(_)" ),
226
256
mclick (META .. " Button4" , " WFrame.switch_next(_)" ),
257
+
258
+ bdoc (" Switch to previous object within the frame." , " <-tab" ),
259
+ kpress (ALTMETA .. " Caps_Lock" , " WFrame.switch_prev(_)" ),
227
260
mclick (META .. " Button5" , " WFrame.switch_prev(_)" ),
228
261
})
229
262
230
263
-- Frames for transient windows ignore this bindmap
231
264
232
265
defbindings (" WFrame.toplevel" , {
233
- bdoc (" Query for a client window to attach ('nick')." ),
266
+ bdoc (" Query for a client window to attach ('nick')." , " nick " ),
234
267
kpress (META .. " N" , " mod_query.query_attachclient(_)" ),
235
268
269
+ bdoc (" Switch to tab 0 in this frame." , " tab 0" ),
236
270
kpress (META .. " A" , " WFrame.switch_nth(_, 0)" ),
271
+ bdoc (" Switch to tab 1 in this frame." , " tab 1" ),
237
272
kpress (META .. " S" , " WFrame.switch_nth(_, 1)" ),
273
+ bdoc (" Switch to tab 2 in this frame." , " tab 2" ),
238
274
kpress (META .. " D" , " WFrame.switch_nth(_, 2)" ),
275
+ bdoc (" Switch to tab 3 in this frame." , " tab 3" ),
239
276
kpress (META .. " F" , " WFrame.switch_nth(_, 3)" ),
240
277
241
- bdoc (" Move current object within the frame left/right. " ),
278
+ bdoc (" Move current tab to the right within the frame. " , " tab-> " ),
242
279
kpress (ALTMETA .. " comma" , " WFrame.dec_index(_, _sub)" , " _sub:non-nil" ),
280
+ bdoc (" Move current tab to the left within the frame." , " tab<-" ),
243
281
kpress (ALTMETA .. " period" , " WFrame.inc_index(_, _sub)" , " _sub:non-nil" ),
244
282
245
283
bdoc (" Maximize the frame horizontally/vertically." ),
246
284
kpress (ALTMETA .. " H" , " WFrame.maximize_horiz(_)" ),
247
285
kpress (ALTMETA .. " V" , " WFrame.maximize_vert(_)" ),
248
286
249
287
bdoc (" Attach tagged objects to this frame." ),
250
- kpress (META .. " Y " , " ioncore.tagged_attach(_)" ),
288
+ kpress (META .. " N " , " ioncore.tagged_attach(_)" ),
251
289
})
252
290
253
291
-- Bindings for floating frames
0 commit comments