diff options
author | Canop <cano.petrole@gmail.com> | 2022-07-10 22:28:15 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-07-10 22:29:23 +0200 |
commit | 94ef5f6ed4376df0d1b96b2ba38e8f5b2ca70ed9 (patch) | |
tree | d7056f2b4eb07aa4b2d99c0a832b560da90e766e /website/docs | |
parent | d4751c863011bf2583b07942363df3f70db37d97 (diff) |
allow :focus based verbs to take a pattern
This allows verb definitions such as the following ones:
```Hjson
{
invocation: "gos"
execution: ":focus"
}
{
invocation: "go {path}"
execution: ":focus {path}"
}
{
invocation: "goroot"
execution: ":focus /"
}
{
invocation: "gotar {path}"
execution: ":focus {path}/target"
}
```
Fix #389
Diffstat (limited to 'website/docs')
-rw-r--r-- | website/docs/conf_verbs.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/website/docs/conf_verbs.md b/website/docs/conf_verbs.md index 98ed851..4560f64 100644 --- a/website/docs/conf_verbs.md +++ b/website/docs/conf_verbs.md @@ -499,6 +499,14 @@ And you can add your own ones: ```hjson { key: "ctrl-up", internal: ":focus .." } { key: "ctrl-d", internal: ":focus ~/dev" } +{ // make :go an alias of :focus + invocation: "go {path}", + internal: ":focus {path}" +} +{ + invocation: "gotar {path}", + internal: ":focus {path}/target" +} ``` ```toml [[verbs]] |