diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-09-25 23:20:09 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-09-25 23:20:09 -0400 |
commit | b4a62fcbddb870d11dcf72964c048ee6e195be40 (patch) | |
tree | 85a850ad2ef4e01d27a85a386e4396f5bb545a2e | |
parent | 22455225f39c7a4846a440d64b75bd40c5eadea3 (diff) |
fix CopyDirPath enum to reflect name
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | src/commands/key_command.rs | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -512,7 +512,7 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "joshuto" -version = "0.9.0" +version = "0.9.1" dependencies = [ "alphanumeric-sort", "chrono", diff --git a/src/commands/key_command.rs b/src/commands/key_command.rs index 3ad2a79..bd6c45c 100644 --- a/src/commands/key_command.rs +++ b/src/commands/key_command.rs @@ -28,7 +28,7 @@ pub enum KeyCommand { CopyFileName, CopyFileNameWithoutExtension, CopyFilePath, - CopyDirName, + CopyDirPath, CursorMoveUp(usize), CursorMoveDown(usize), @@ -93,7 +93,7 @@ impl KeyCommand { Self::CopyFileName => "copy_filename", Self::CopyFileNameWithoutExtension => "copy_filename_without_extension", Self::CopyFilePath => "copy_filepath", - Self::CopyDirName => "copy_dirpath", + Self::CopyDirPath => "copy_dirpath", Self::CursorMoveUp(_) => "cursor_move_up", Self::CursorMoveDown(_) => "cursor_move_down", @@ -176,7 +176,7 @@ impl std::str::FromStr for KeyCommand { "copy_filename" => Ok(Self::CopyFileName), "copy_filename_without_extension" => Ok(Self::CopyFileNameWithoutExtension), "copy_filepath" => Ok(Self::CopyFilePath), - "copy_dirpath" => Ok(Self::CopyDirName), + "copy_dirpath" => Ok(Self::CopyDirPath), "cursor_move_home" => Ok(Self::CursorMoveHome), "cursor_move_end" => Ok(Self::CursorMoveEnd), "cursor_move_page_up" => Ok(Self::CursorMovePageUp), @@ -398,7 +398,7 @@ impl AppExecute for KeyCommand { file_ops::copy_filename_without_extension(context) } Self::CopyFilePath => file_ops::copy_filepath(context), - Self::CopyDirName => file_ops::copy_dirpath(context), + Self::CopyDirPath => file_ops::copy_dirpath(context), Self::CursorMoveUp(u) => cursor_move::up(context, *u), Self::CursorMoveDown(u) => cursor_move::down(context, *u), |