diff options
author | Canop <cano.petrole@gmail.com> | 2021-03-09 20:23:04 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-03-09 20:23:04 +0100 |
commit | 3026dd3be18e497770e5dd2bdff72e4cea59c4ea (patch) | |
tree | 61c0c4dec1e393e38427a4c094f6fc0017f99ab1 /website/docs | |
parent | 4d44b1585cde2b95e4742ca8615bd9c0b2772072 (diff) |
allow definition of several key shortcuts for one verb
Using the 'keys' verb attribute, for example
{
keys: [
f2
ctrl-b
]
external: xdg-open https://dystroy.org/broot
leave_broot: false
}
Fix #358
Diffstat (limited to 'website/docs')
-rw-r--r-- | website/docs/conf_verbs.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/website/docs/conf_verbs.md b/website/docs/conf_verbs.md index c4aee64..d4227f4 100644 --- a/website/docs/conf_verbs.md +++ b/website/docs/conf_verbs.md @@ -34,6 +34,7 @@ internal | | execution, when your verb is based on a predefined broot verb external | | execution, when your verb is based on an external command cmd | | a semicolon sequence to execute, similar to an argument you pass to `--cmd` key | | a keyboard key triggering execution +keys | | several keyboard shortcuts triggering execution (if you want to have the choice) shortcut | | an alternate way to call the verb (without the arguments part) leave_broot | `true` | whether to quit broot on execution from_shell | `false` | whether the verb must be executed from the parent shell (needs `br`). As this is executed after broot closed, this isn't compatible with `leave_broot = false` @@ -136,17 +137,20 @@ verbs: [ } { invocation: "bottom" - key: "F7" + key: F7 internal: ":select_last" } { invocation: "open" - key: "crtl-O" + key: crtl-O internal: ":open_stay" } { invocation: "edit" - key: "F2" + keys: [ // several possible shortcuts here + F2 + ctrl-e + ] shortcut: "e" external: "$EDITOR +{line} {file}" from_shell: true @@ -185,7 +189,7 @@ internal = ":open_stay" [[verbs]] invocation = "edit" -key = "F2" +key = [ "F2", "ctrl-e" ] shortcut = "e" external = "$EDITOR +{line} {file}" from_shell = true |