From d568556a4a1a211056efab10ca55a5a6631412b7 Mon Sep 17 00:00:00 2001 From: qkzk Date: Tue, 4 Apr 2023 23:49:33 +0200 Subject: basic shell execution with ! --- src/mode.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mode.rs') 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 :") } -- cgit v1.2.3