diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-12-11 21:07:13 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-12-11 21:07:13 -0500 |
commit | 916d72c42cfc7bcb8fc560e17cb3bd75c00757da (patch) | |
tree | a8024fc9bd9a48065cd6b65375109482ac9b7983 /src/commands/key_command.rs | |
parent | bf9c102a4cfb85a9fd910195e6372dcd1d062c16 (diff) |
add a view for showing worker progress
Diffstat (limited to 'src/commands/key_command.rs')
-rw-r--r-- | src/commands/key_command.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/key_command.rs b/src/commands/key_command.rs index e5a2514..1c32470 100644 --- a/src/commands/key_command.rs +++ b/src/commands/key_command.rs @@ -51,6 +51,7 @@ pub enum KeyCommand { SelectFiles { toggle: bool, all: bool }, SetMode, ShellCommand(Vec<String>), + ShowWorkers, ToggleHiddenFiles, @@ -105,6 +106,7 @@ impl KeyCommand { Self::SelectFiles { toggle: _, all: _ } => "select", Self::SetMode => "set_mode", Self::ShellCommand(_) => "shell", + Self::ShowWorkers => "show_workers", Self::ToggleHiddenFiles => "toggle_hidden", @@ -263,6 +265,7 @@ impl KeyCommand { format!("{}: {}", arg, e), )), }, + "show_workers" => Ok(Self::ShowWorkers), "sort" => match arg { "reverse" => Ok(Self::SortReverse), arg => match SortType::parse(arg) { @@ -341,6 +344,7 @@ impl JoshutoRunnable for KeyCommand { Self::SelectFiles { toggle, all } => selection::select_files(context, *toggle, *all), Self::SetMode => set_mode::set_mode(context, backend), Self::ShellCommand(v) => shell::shell(context, backend, v.as_slice()), + Self::ShowWorkers => show_workers::show_workers(context, backend), Self::ToggleHiddenFiles => show_hidden::toggle_hidden(context), |