diff options
author | Florrie <towerofnix@gmail.com> | 2019-09-15 18:38:48 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-09-15 18:39:58 -0300 |
commit | 332a40a1980a7f246fd67e0a91cdbf104f46bf41 (patch) | |
tree | 496e1712fa1e0bd2b247d7be889db791a0a31b50 | |
parent | acb6e7bd48e11105b8e57ed703fd75782a2933cc (diff) |
Add Home/End support to scroll to top/bottom
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | todo.txt | 6 | ||||
m--------- | tui-lib | 0 | ||||
-rw-r--r-- | ui.js | 2 |
4 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md index 282452a..6d01683 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You're also welcome to share any ideas, suggestions, and questions through there * <kbd><kbd>Ctrl</kbd>+<kbd>C</kbd></kbd> - exit * <kbd>Up</kbd> and <kbd>Down</kbd> - select previous or next item in a listing * <kbd>Tab</kbd> and <kbd><kbd>Shift</kbd>+<kbd>Tab</kbd></kbd> - switch between UI elements -* <kbd>g</kbd> and <kbd>G</kbd> (shift+G) - move to the first and last item in a listing +* <kbd>g</kbd> and <kbd>G</kbd> (shift+G) or <kbd>Home</kbd> and <kbd>End</kbd> - move to the first and last item in a listing * <kbd>[</kbd> - focus the main track/group listing * <kbd>]</kbd> - focus the queue listing * <kbd>Enter</kbd> - play the selected track diff --git a/todo.txt b/todo.txt index 2163271..45cee2f 100644 --- a/todo.txt +++ b/todo.txt @@ -353,8 +353,10 @@ TODO: g/G should work for navigation in context menus! And probably all TODO: PageUp/PageDown support is complicated to implement (I've tried) and should come eventually, but for now just make Home/End work as aliases - for g/G. This means making it possible for the keybinding system to let - a single input function return true for multiple different keys! + for g/G. ~~This means making it possible for the keybinding system to let + a single input function return true for multiple different keys!~~ + Actually, we already had that part implemented. :P + (Done!) TODO: Work out the BIGGER framerate shenanigans. Specifically: down with the render interval! Or, more literally, get rid of it altogether. Only diff --git a/tui-lib b/tui-lib -Subproject f3974627bddb9f62132bf54bde3a66c87dbf7b2 +Subproject 3b94a56ecad81980448cb1f7f78acd8e58ab0c6 diff --git a/ui.js b/ui.js index bdc4258..b1eb7c4 100644 --- a/ui.js +++ b/ui.js @@ -60,6 +60,8 @@ const keyBindings = [ ['isMenu', 'f'], ['isScrollToStart', 'g', {caseless: false}], ['isScrollToEnd', 'G', {caseless: false}], + ['isScrollToStart', telc.isHome], + ['isScrollToEnd', telc.isEnd], ['isTogglePause', telc.isSpace], ['isToggleLoop', 'l', {caseless: false}], ['isStop', telc.isEscape], |