Add Alt-Left and Alt-Right for history navigation

Common shortcuts.
This commit is contained in:
Josh Megnauth 2024-02-06 03:14:12 -05:00 committed by Jeremy Soller
parent 6378d54f7b
commit 843997a0d8
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,8 @@ pub struct Flags {
pub enum Action {
Copy,
Cut,
HistoryNext,
HistoryPrevious,
MoveToTrash,
NewFile,
NewFolder,
@ -67,6 +69,8 @@ impl Action {
match self {
Action::Copy => Message::Copy(entity_opt),
Action::Cut => Message::Cut(entity_opt),
Action::HistoryNext => Message::TabMessage(None, tab::Message::GoNext),
Action::HistoryPrevious => Message::TabMessage(None, tab::Message::GoPrevious),
Action::MoveToTrash => Message::MoveToTrash(entity_opt),
Action::NewFile => Message::NewFile(entity_opt),
Action::NewFolder => Message::NewFolder(entity_opt),