Skip to content

Commit a315c78

Browse files
EdenQwQajanon
authored andcommitted
[doc] added mode option demo in doc
1 parent e4a4904 commit a315c78

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swhkd.5.scd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ q
9393
mpc {next, prev, toggle, repeat, random, single}
9494
endmode # use endmode if you want to set more key bindings for normal mode
9595
96+
# mode options are declared after the mode name
97+
# swallow: don't emit any event through uinput
98+
# oneoff: automatically escape a mode when a keybinding defined in it is evoked
99+
mode option_demo swallow oneoff
100+
a
101+
echo 0
102+
b
103+
@escape # escaping in a 'oneoff' mode pops two modes out of the mode stack.
104+
endmode
105+
96106
```
97107
# AUTHORS
98108

0 commit comments

Comments
 (0)