diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e50d0c..0e16d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Procedure when bumping the version number: - More readline-esque editor key bindings - Key bindings to move to prev/next sibling - Key binding to center cursor on screen +- More scrolling key bindings - JSON message export - Export output path templating - Support for exporting multiple/all rooms at once diff --git a/src/ui/chat/tree.rs b/src/ui/chat/tree.rs index 67c7ed2..1882c52 100644 --- a/src/ui/chat/tree.rs +++ b/src/ui/chat/tree.rs @@ -75,7 +75,7 @@ impl> InnerTreeViewState { bindings.binding("G, end", "move cursor to bottom"); bindings.binding("ctrl+y/e", "scroll up/down a line"); bindings.binding("ctrl+u/d", "scroll up/down half a screen"); - bindings.binding("ctrl+b/f", "scroll up/down one screen"); + bindings.binding("ctrl+b/f, page up/down", "scroll up/down one screen"); bindings.binding("z", "center cursor on screen"); } @@ -97,8 +97,10 @@ impl> InnerTreeViewState { key!(Ctrl + 'e') => self.scroll_down(1), key!(Ctrl + 'u') => self.scroll_up((chat_height / 2).into()), key!(Ctrl + 'd') => self.scroll_down((chat_height / 2).into()), - key!(Ctrl + 'b') => self.scroll_up(chat_height.saturating_sub(1).into()), - key!(Ctrl + 'f') => self.scroll_down(chat_height.saturating_sub(1).into()), + key!(Ctrl + 'b') | key!(PageUp) => self.scroll_up(chat_height.saturating_sub(1).into()), + key!(Ctrl + 'f') | key!(PageDown) => { + self.scroll_down(chat_height.saturating_sub(1).into()) + } key!('z') => self.center_cursor(), _ => return false, }