diff options
author | Tim Oram <dev@mitmaro.ca> | 2022-04-24 22:29:18 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2022-04-25 09:55:34 -0230 |
commit | 8a69955d501d91cf1e000a554fabc4a972b5d103 (patch) | |
tree | 953d20fca3ace141ac8637b9b506c03eb4917370 | |
parent | 80c385a1744635e40066cb180d537854e38d2884 (diff) |
Add missing keybinding help to show commit
-rw-r--r-- | src/core/src/modules/show_commit/tests.rs | 2 | ||||
-rw-r--r-- | src/core/src/modules/show_commit/util.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/src/modules/show_commit/tests.rs b/src/core/src/modules/show_commit/tests.rs index db3f238..619c0c9 100644 --- a/src/core/src/modules/show_commit/tests.rs +++ b/src/core/src/modules/show_commit/tests.rs @@ -1184,6 +1184,8 @@ fn render_help() { "{IndicatorColor} Down {Normal,Dimmed}|{Normal}Scroll down", "{IndicatorColor} PageUp {Normal,Dimmed}|{Normal}Scroll up half a page", "{IndicatorColor} PageDown{Normal,Dimmed}|{Normal}Scroll down half a page", + "{IndicatorColor} Home {Normal,Dimmed}|{Normal}Scroll to the top", + "{IndicatorColor} End {Normal,Dimmed}|{Normal}Scroll to the bottom", "{IndicatorColor} Right {Normal,Dimmed}|{Normal}Scroll right", "{IndicatorColor} Left {Normal,Dimmed}|{Normal}Scroll left", "{IndicatorColor} d {Normal,Dimmed}|{Normal}Show full diff", diff --git a/src/core/src/modules/show_commit/util.rs b/src/core/src/modules/show_commit/util.rs index f45b375..96e152e 100644 --- a/src/core/src/modules/show_commit/util.rs +++ b/src/core/src/modules/show_commit/util.rs @@ -22,6 +22,8 @@ pub(super) fn get_show_commit_help_lines(key_bindings: &KeyBindings) -> Vec<(Vec key_bindings.scroll_step_down.clone(), String::from("Scroll down half a page"), ), + (key_bindings.scroll_home.clone(), String::from("Scroll to the top")), + (key_bindings.scroll_end.clone(), String::from("Scroll to the bottom")), (key_bindings.scroll_right.clone(), String::from("Scroll right")), (key_bindings.scroll_left.clone(), String::from("Scroll left")), (key_bindings.show_diff.clone(), String::from("Show full diff")), |