Skip to content

Commit 985d096

Browse files
committed
ADDED: ACTION_GROUP documentation
1 parent c6e39cd commit 985d096

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

documentation/mdbook_asciio/src/config/user_bindings/group_bindings.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)