summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-02-02 23:40:48 -0500
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-02-02 23:40:48 -0500
commit0b2aba9037e0e7ba05c7f0c366f45f3f4b0dcbf9 (patch)
treea96b9fe5ddb2be34eb829e65ca78a78cf5f6b96a /src/commands
parent8d6a3b4d58c2380613cfc0896520b8e0523533ea (diff)
remove clipboard feature
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/key_command.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/commands/key_command.rs b/src/commands/key_command.rs
index 9ead610..257da49 100644
--- a/src/commands/key_command.rs
+++ b/src/commands/key_command.rs
@@ -22,7 +22,6 @@ pub enum KeyCommand {
CutFiles,
CopyFiles,
PasteFiles(IOWorkerOptions),
- #[cfg(feature = "clipboard")]
CopyFileName,
CursorMoveUp(usize),
@@ -54,10 +53,7 @@ pub enum KeyCommand {
SearchNext,
SearchPrev,
- SelectFiles {
- toggle: bool,
- all: bool,
- },
+ SelectFiles { toggle: bool, all: bool },
SetMode,
ShellCommand(Vec<String>),
ShowWorkers,
@@ -152,7 +148,6 @@ impl KeyCommand {
},
"close_tab" => Ok(Self::CloseTab),
"copy_files" => Ok(Self::CopyFiles),
- #[cfg(feature = "clipboard")]
"copy_filename" => Ok(Self::CopyFileName),
"console" => Ok(Self::CommandLine(arg.to_owned(), "".to_owned())),
"cursor_move_home" => Ok(Self::CursorMoveHome),
@@ -325,7 +320,6 @@ impl JoshutoRunnable for KeyCommand {
Self::CutFiles => file_ops::cut(context),
Self::CopyFiles => file_ops::copy(context),
Self::PasteFiles(options) => file_ops::paste(context, options.clone()),
- #[cfg(feature = "clipboard")]
Self::CopyFileName => file_ops::copy_filename(context),
Self::CursorMoveUp(u) => cursor_move::up(context, *u),