diff options
Diffstat (limited to 'src/key_command/impl_appcommand.rs')
-rw-r--r-- | src/key_command/impl_appcommand.rs | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/key_command/impl_appcommand.rs b/src/key_command/impl_appcommand.rs index 1990bbc..7156f43 100644 --- a/src/key_command/impl_appcommand.rs +++ b/src/key_command/impl_appcommand.rs @@ -13,13 +13,13 @@ impl AppCommand for Command { Self::BulkRename => CMD_BULK_RENAME, - Self::ChangeDirectory(_) => CMD_CHANGE_DIRECTORY, + Self::ChangeDirectory { .. } => CMD_CHANGE_DIRECTORY, Self::ParentDirectory => CMD_PARENT_DIRECTORY, Self::PreviousDirectory => CMD_PREVIOUS_DIRECTORY, Self::NewTab => CMD_NEW_TAB, Self::CloseTab => CMD_CLOSE_TAB, - Self::CommandLine(_, _) => CMD_COMMAND_LINE, + Self::CommandLine { .. } => CMD_COMMAND_LINE, Self::CutFiles => CMD_CUT_FILES, Self::CopyFiles => CMD_COPY_FILES, @@ -27,13 +27,13 @@ impl AppCommand for Command { Self::CopyFileNameWithoutExtension => CMD_COPY_FILENAME_WITHOUT_EXTENSION, Self::CopyFilePath => CMD_COPY_FILEPATH, Self::CopyDirPath => CMD_COPY_DIRECTORY_PATH, - Self::SymlinkFiles => CMD_SYMLINK_FILES, - Self::PasteFiles(_) => CMD_PASTE_FILES, + Self::SymlinkFiles { .. } => CMD_SYMLINK_FILES, + Self::PasteFiles { .. } => CMD_PASTE_FILES, Self::DeleteFiles { .. } => CMD_DELETE_FILES, - Self::CursorMoveUp(_) => CMD_CURSOR_MOVE_UP, - Self::CursorMoveDown(_) => CMD_CURSOR_MOVE_DOWN, + Self::CursorMoveUp { .. } => CMD_CURSOR_MOVE_UP, + Self::CursorMoveDown { .. } => CMD_CURSOR_MOVE_DOWN, Self::CursorMoveHome => CMD_CURSOR_MOVE_HOME, Self::CursorMoveEnd => CMD_CURSOR_MOVE_END, Self::CursorMovePageUp(_) => CMD_CURSOR_MOVE_PAGEUP, @@ -42,46 +42,46 @@ impl AppCommand for Command { Self::CursorMovePageMiddle => CMD_CURSOR_MOVE_PAGEDOWN, Self::CursorMovePageEnd => CMD_CURSOR_MOVE_PAGEDOWN, - Self::ParentCursorMoveUp(_) => CMD_PARENT_CURSOR_MOVE_UP, - Self::ParentCursorMoveDown(_) => CMD_PARENT_CURSOR_MOVE_DOWN, + Self::ParentCursorMoveUp { .. } => CMD_PARENT_CURSOR_MOVE_UP, + Self::ParentCursorMoveDown { .. } => CMD_PARENT_CURSOR_MOVE_DOWN, - Self::PreviewCursorMoveUp(_) => CMD_PREVIEW_CURSOR_MOVE_UP, - Self::PreviewCursorMoveDown(_) => CMD_PREVIEW_CURSOR_MOVE_DOWN, + Self::PreviewCursorMoveUp { .. } => CMD_PREVIEW_CURSOR_MOVE_UP, + Self::PreviewCursorMoveDown { .. } => CMD_PREVIEW_CURSOR_MOVE_DOWN, - Self::NewDirectory(_) => CMD_NEW_DIRECTORY, + Self::NewDirectory { .. } => CMD_NEW_DIRECTORY, Self::OpenFile => CMD_OPEN_FILE, - Self::OpenFileWith(_) => CMD_OPEN_FILE_WITH, + Self::OpenFileWith { .. } => CMD_OPEN_FILE_WITH, Self::ReloadDirList => CMD_RELOAD_DIRECTORY_LIST, - Self::RenameFile(_) => CMD_RENAME_FILE, + Self::RenameFile { .. } => CMD_RENAME_FILE, Self::RenameFileAppend => CMD_RENAME_FILE_APPEND, Self::RenameFilePrepend => CMD_RENAME_FILE_PREPEND, - Self::SearchString(_) => CMD_SEARCH_STRING, - Self::SearchIncremental(_) => CMD_SEARCH_INCREMENTAL, - Self::SearchGlob(_) => CMD_SEARCH_GLOB, + Self::SearchString { .. } => CMD_SEARCH_STRING, + Self::SearchIncremental { .. } => CMD_SEARCH_INCREMENTAL, + Self::SearchGlob { .. } => CMD_SEARCH_GLOB, Self::SearchNext => CMD_SEARCH_NEXT, Self::SearchPrev => CMD_SEARCH_PREV, - Self::SelectFiles(_, _) => CMD_SELECT_FILES, + Self::SelectFiles { .. } => CMD_SELECT_FILES, Self::SetMode => CMD_SET_MODE, Self::ShowTasks => CMD_SHOW_TASKS, - Self::Flat(_) => CMD_FLAT, - Self::NumberedCommand(_) => CMD_NUMBERED_COMMAND, + Self::Flat { .. } => CMD_FLAT, + Self::NumberedCommand { .. } => CMD_NUMBERED_COMMAND, Self::Sort(_) => CMD_SORT, Self::SortReverse => CMD_SORT_REVERSE, - Self::SubProcess(_, false) => CMD_SUBPROCESS_FOREGROUND, - Self::SubProcess(_, true) => CMD_SUBPROCESS_BACKGROUND, + Self::SubProcess { spawn: false, .. } => CMD_SUBPROCESS_FOREGROUND, + Self::SubProcess { spawn: true, .. } => CMD_SUBPROCESS_BACKGROUND, Self::SwitchLineNums(_) => CMD_SWITCH_LINE_NUMBERS, - Self::TabSwitch(_) => CMD_TAB_SWITCH, - Self::TabSwitchIndex(_) => CMD_TAB_SWITCH_INDEX, + Self::TabSwitch { .. } => CMD_TAB_SWITCH, + Self::TabSwitchIndex { .. } => CMD_TAB_SWITCH_INDEX, Self::ToggleHiddenFiles => CMD_TOGGLE_HIDDEN, - Self::TouchFile(_) => CMD_TOUCH_FILE, + Self::TouchFile { .. } => CMD_TOUCH_FILE, Self::SearchFzf => CMD_SEARCH_FZF, Self::SubdirFzf => CMD_SUBDIR_FZF, |