File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
documentation/mdbook_asciio/src/config/user_bindings Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ Bindings can be grouped so you can use multiple key presses (vim-like) to reach
66``` perl
77
88' group name' =>
9- {
10- SHORTCUTS => ' C00-x' ,
11-
12- ' sub group name ' =>
13- {
14- SHORTCUTS => ' C00-x ' ,
15-
16- ' binding in sub group ' => [ ' C00-x ' , sub { print " you're in x/x/x \n " ; } ],
17- } ,
18-
19- ' binding 1 ' => [ ' 000-1 ' , sub { print " you're in x/1 \n " ; } ],
20- ' binding 2 ' => [' 000-2 ' , sub { print " you're in x/2 \n " ; } ],
21- } ,
9+ {
10+ SHORTCUTS => ' C00-x' ,
11+
12+ ' binding group' => [ ' C00-x ' , ACTION_GROUP( ' next_level ' ) ] ,
13+ ' binding 1 ' => [ ' 000-1 ' , sub { print " you're in x/1 \n " ; } ],
14+ } ,
15+
16+ ' group_next_level ' => # need to be prefixed with 'group_'
17+ {
18+ SHORTCUTS => ' C00-y ' , # can be accessed directly
19+
20+ ' binding in sub group ' => [' C00-x ' , sub { print " you're in x/x/x \n " ; } ],
21+ } ,
2222
2323```
2424
You can’t perform that action at this time.
0 commit comments