diff options
author | Canop <cano.petrole@gmail.com> | 2019-09-15 18:18:23 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2019-09-15 18:18:23 +0200 |
commit | 6140883fd1af29c2adc5869fa888f174acfd23ec (patch) | |
tree | 87de4135248f108d8295e56a1c494563ffbc4a2a /src/help_verbs.rs | |
parent | ca3e3a91acc4a9645a08b811adf5290f63358c2e (diff) |
more commands available for shortcuts & keyboard keys
All verbs also documented in website
Diffstat (limited to 'src/help_verbs.rs')
-rw-r--r-- | src/help_verbs.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/help_verbs.rs b/src/help_verbs.rs index 7ee6030..998e4db 100644 --- a/src/help_verbs.rs +++ b/src/help_verbs.rs @@ -36,7 +36,23 @@ impl VerbExecutor for HelpState { Command::new(), ), ":help" => AppStateCmdResult::Keep, + ":line_down" => { + self.view.try_scroll_lines(1); + AppStateCmdResult::Keep + } + ":line_up" => { + self.view.try_scroll_lines(-1); + AppStateCmdResult::Keep + } ":open" => AppStateCmdResult::from(Launchable::opener(Conf::default_location())), + ":page_down" => { + self.view.try_scroll_pages(1); + AppStateCmdResult::Keep + } + ":page_up" => { + self.view.try_scroll_pages(-1); + AppStateCmdResult::Keep + } ":print_path" => external::print_path(&Conf::default_location(), con)?, ":quit" => AppStateCmdResult::Quit, ":focus_user_home" | ":focus_root" => AppStateCmdResult::PopStateAndReapply, |