Skip to content

Commit

Permalink
[doc] added mode option demo in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenQwQ authored and ajanon committed Dec 13, 2022
1 parent e4a4904 commit a315c78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions docs/swhkd.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ q
mpc {next, prev, toggle, repeat, random, single}
endmode # use endmode if you want to set more key bindings for normal mode
# mode options are declared after the mode name
# swallow: don't emit any event through uinput
# oneoff: automatically escape a mode when a keybinding defined in it is evoked
mode option_demo swallow oneoff
a
echo 0
b
@escape # escaping in a 'oneoff' mode pops two modes out of the mode stack.
endmode
```
# AUTHORS

Expand Down

0 comments on commit a315c78

Please sign in to comment.