summaryrefslogtreecommitdiffstats
path: root/src/verb/mod.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-09-24 22:25:23 +0200
committerCanop <cano.petrole@gmail.com>2020-09-24 22:25:23 +0200
commit6c376ca883a70aa4b646ebcedfea6a87ac52b2d7 (patch)
tree6f92b01cb3d9abe37ac2254997a2ee4356c07616 /src/verb/mod.rs
parent60b742fceda175bd1b357280535b27ba5e915d94 (diff)
allow cmd sequences in verb execution
The syntax changed. Instead of `execution` (which is still allowed), `internal`, `external` and `cmd` are now prefered. The syntax of the `cmd` property is the same than the `--cmd` launch argument, with the added possibility to have dynamic parts. Two examples of sequence based verbs: [[verbs]] name = "myplaces" key = "ctrl-g" cmd = ":focus ~;:!focus /" [[verbs]] name = "backup" invocation = "bu {name}" cmd = ":cp {file}-back_{name};:!focus {file}-back_{name}" apply_to = "directory" Fix #277
Diffstat (limited to 'src/verb/mod.rs')
-rw-r--r--src/verb/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/verb/mod.rs b/src/verb/mod.rs
index 07ff505..d4155c4 100644
--- a/src/verb/mod.rs
+++ b/src/verb/mod.rs
@@ -6,6 +6,7 @@ mod internal;
mod internal_execution;
pub mod internal_focus;
mod invocation_parser;
+mod sequence_execution;
mod verb;
mod verb_conf;
mod verb_description;
@@ -20,8 +21,9 @@ pub use {
internal::Internal,
internal_execution::InternalExecution,
invocation_parser::InvocationParser,
+ sequence_execution::SequenceExecution,
verb::Verb,
- verb_conf::VerbConf,
+ verb_conf::{VerbConf, VerbExecutionType},
verb_description::VerbDescription,
verb_execution::VerbExecution,
verb_invocation::VerbInvocation,