Feature to move up file hierarchy with Alt+Up

From: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Browsers_/_Go_menu

Alt+Up moves up the file hierarchy until it hits root.
So, if "/home/josh" is opened, Alt+Up would move to "/home"
This commit is contained in:
Josh Megnauth 2024-02-06 22:58:29 -05:00 committed by Jeremy Soller
parent 843997a0d8
commit 2814834251
3 changed files with 40 additions and 1 deletions

View file

@ -46,6 +46,7 @@ pub enum Action {
Cut,
HistoryNext,
HistoryPrevious,
LocationUp,
MoveToTrash,
NewFile,
NewFolder,
@ -71,6 +72,7 @@ impl Action {
Action::Cut => Message::Cut(entity_opt),
Action::HistoryNext => Message::TabMessage(None, tab::Message::GoNext),
Action::HistoryPrevious => Message::TabMessage(None, tab::Message::GoPrevious),
Action::LocationUp => Message::TabMessage(None, tab::Message::LocationUp),
Action::MoveToTrash => Message::MoveToTrash(entity_opt),
Action::NewFile => Message::NewFile(entity_opt),
Action::NewFolder => Message::NewFolder(entity_opt),