« 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.md3
-rw-r--r--ui.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 379db82..6bd33d3 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> - move to the first and last item in a listing
+* <kbd>g</kbd> and <kbd>G</kbd> (shift+G) - move to the first and last item in a listing
 * <kbd>1</kbd> - focus the main track/group listing
 * <kbd>2</kbd> - focus the queue listing
 * <kbd>Enter</kbd> - play the selected track
@@ -52,6 +52,7 @@ You're also welcome to share any ideas, suggestions, and questions through there
   * <kbd>s</kbd> - shuffle the queue
   * <kbd>c</kbd> - clear the queue
   * <kbd>x</kbd> - remove the selected track from the queue
+  * <kbd><kbd>Ctrl</kbd>+<kbd>L</kbd></kbd> - jump to the track that's currently playing
 * **In path displays:** (Path displays are the things that show below the main and queue listings. They show the path of groups to the selected item in the listing.)
   * <kbd>Enter</kbd> or <kbd>Space</kbd> - view the selected item in the main listing
   * <kbd>Left</kbd> and <kbd>Right</kbd> - navigate the path display
diff --git a/ui.js b/ui.js
index 7013ea5..cd2f409 100644
--- a/ui.js
+++ b/ui.js
@@ -943,6 +943,8 @@ class GrouplikeListingElement extends Form {
       this.form.scrollToBeginning()
     } else if (telc.isCharacter(keyBuf, 'G')) {
       this.form.selectAndShow(this.grouplike.items[this.grouplike.items.length - 1])
+    } else if (keyBuf[0] === 12 && this.grouplike.isTheQueue) { // ctrl-L
+      this.form.selectAndShow(this.recordStore.app.playingTrack)
     } else {
       return super.keyPressed(keyBuf)
     }