summaryrefslogtreecommitdiffstats
path: root/src/mode.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
committerqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
commitd568556a4a1a211056efab10ca55a5a6631412b7 (patch)
tree2ec0dd9f84f1f08a1887e2574ed2e3f72c7d98d0 /src/mode.rs
parentd04825d36f294560d7a1db01680042a9ea506260 (diff)
basic shell execution with !
Diffstat (limited to 'src/mode.rs')
-rw-r--r--src/mode.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mode.rs b/src/mode.rs
index abd485a..f50243d 100644
--- a/src/mode.rs
+++ b/src/mode.rs
@@ -79,6 +79,8 @@ pub enum InputSimple {
SetNvimAddr,
/// Input a password (chars a replaced by *)
Password(PasswordKind, BlockDeviceAction, PasswordUsage),
+ /// Shell command execute as is
+ Shell,
}
/// Different modes in which we display a bunch of possible destinations.
@@ -141,6 +143,7 @@ impl fmt::Display for Mode {
Mode::InputSimple(InputSimple::Newdir) => write!(f, "Newdir: "),
Mode::InputSimple(InputSimple::RegexMatch) => write!(f, "Regex: "),
Mode::InputSimple(InputSimple::SetNvimAddr) => write!(f, "Neovim: "),
+ Mode::InputSimple(InputSimple::Shell) => write!(f, "Shell: "),
Mode::InputSimple(InputSimple::Sort) => {
write!(f, "Sort: Kind Name Modif Size Ext Rev :")
}