summaryrefslogtreecommitdiffstats
path: root/src/verb/verb_invocation.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-05-18 21:49:43 +0200
committerCanop <cano.petrole@gmail.com>2020-05-18 21:49:43 +0200
commit8a3665ee935e440408eac61be7a0b2ac23d0c140 (patch)
tree9603115a79d50513b7a09740da1f16358052dcad /src/verb/verb_invocation.rs
parent636019348a0fab8f6b273ff07950c5ba9f3d6e03 (diff)
Special paths defined in conf.toml
It's possible to define in configuration the paths for which we want a special behavior: * "not-enter": don't list the content - useful for slow devices * "enter": list the content even if it's a link (to a dir) * "hide": don't show the file or directory Exemple configuration: ``` [special-paths] "/media/slow-backup-disk" = "no-enter" "/home/dys/**/useless" = "hide" "/home/dys/my-link-I-want-to-explore" = "enter" ``` Fix #205 Fix #208
Diffstat (limited to 'src/verb/verb_invocation.rs')
-rw-r--r--src/verb/verb_invocation.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/verb/verb_invocation.rs b/src/verb/verb_invocation.rs
index cf82833..c8f0e70 100644
--- a/src/verb/verb_invocation.rs
+++ b/src/verb/verb_invocation.rs
@@ -1,4 +1,6 @@
-use {regex::Regex, std::fmt};
+use {
+ std::fmt,
+};
/// the verb and its arguments, making the invocation.
/// When coming from parsing, the args is Some as soon