« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--man/http-music-play.113
-rwxr-xr-xsrc/play.js5
2 files changed, 17 insertions, 1 deletions
diff --git a/man/http-music-play.1 b/man/http-music-play.1
index a1b6eb6..98cdd4c 100644
--- a/man/http-music-play.1
+++ b/man/http-music-play.1
@@ -77,9 +77,20 @@ Skips past the track that's currently playing.
 Shows information about the track that's currently playing.
 (Use \fBi\fR to also see previous and upcoming tracks.)
 
+.TP
+.BR > ", " <
+(Shift-"." and "," on most keyboards.)
+Switches to the next or previous status line.
+Practically, this means displaying the remaining amount of time instead of the duration, but you can customize it with \fB--add-status-line\fR.
+
 
 .SH OPTIONS
 .TP
+.BR \-\-add\-status\-line
+Works basically the same as \fB--status-line\fR, but adds a status line that can be switched to using the "<" and ">" keys.
+The most-recently-added status line is the one that's selected by default.
+
+.TP
 .BR \-c ", " \-\-clear
 Clears the active playlist.
 This does not effect the source playlist, so specific groups can be selected using \fB\-\-keep\fR.
@@ -188,7 +199,7 @@ A: togglePause will also show up higher in the list than A: showTrackInfo, so th
 Sets how the playback status line should appear.
 See the \fBSTATUS LINES\fR section for information on how to format this string.
 (As a brief example: \fB--status-line '%name (-%timeLeft%)'\fR will make the status line show up as something along the lines of \fB02 United Colors of Scrapyard (-02:58)\fR.)
-See also \fB--title-line\fR.
+See also \fB--title-line\fR and \fB--add-status-line\fR.
 
 .TP
 .BR \-\-sort\-mode ", " \-\-sort
diff --git a/src/play.js b/src/play.js
index 619cf55..ce3a6f7 100755
--- a/src/play.js
+++ b/src/play.js
@@ -420,6 +420,11 @@ async function main(args) {
       console.log('Adding a quick-switch status line:', line)
     },
 
+    '-add-playback-status': util => util.alias('-add-status-line'),
+    '-add-playback-status-line': util => util.alias('-add-status-line'),
+    '-add-playback-line': util => util.alias('-add-status-line'),
+    '-add-status': util => util.alias('-add-status-line'),
+
     '-title-status-line': function(util) {
       // --title-status-line <string> (alias: --title)
       // Sets the text to be displayed in the title of the terminal window.