From 3e138ceaaf28cd9e2bccf314dbb57be22438708a Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 14 Apr 2018 17:30:14 -0300 Subject: Man page and aliases for --add-status-line --- man/http-music-play.1 | 13 ++++++++++++- src/play.js | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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,8 +77,19 @@ 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. @@ -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 (alias: --title) // Sets the text to be displayed in the title of the terminal window. -- cgit 1.3.0-6-gf8a5