« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--todo.txt6
m---------tui-lib0
-rw-r--r--ui.js2
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],