« get me outta code hell

Add alphabetic sort - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/play.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-03-14 14:07:03 -0300
committerFlorrie <towerofnix@gmail.com>2018-03-14 14:08:11 -0300
commit033109a6bf959541e6855abe613dc29c4cec4bbc (patch)
tree3ccf0b2bee5a2590719601f46140f6a20e9a83dd /src/play.js
parent6916be5bb754d8e212087dd15fb7af85115862e4 (diff)
Add alphabetic sort
This automatically flattens the playlist, so you don't need to pass
--flatten-tracks if you also pass --sort a-z. Unfortunately this means
there's no particularly convenient way to sort groups alphabetically.
Diffstat (limited to 'src/play.js')
-rwxr-xr-xsrc/play.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/play.js b/src/play.js
index 0b521b4..cccb89e 100755
--- a/src/play.js
+++ b/src/play.js
@@ -115,6 +115,7 @@ async function main(args) {
     [['s'], 'skipAhead'], [['S'], 'skipAhead'],
     [['i'], 'showTrackInfo'], [['I'], 'showTrackInfo'],
     [['t'], 'showTrackInfo', 0, 0], [['T'], 'showTrackInfo', 0, 0],
+    [['%'], 'showTrackInfo', 20, 0],
     [['q'], 'quit'], [['Q'], 'quit']
   ]