about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-30 03:43:46 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-30 03:43:46 +0000
commita547f9f2d40e8d7809e00e78b287ee77e3ab763b (patch)
treedd8ab3e39f369ab47f0b528b6029aeef14e9b9dd
parent571d07e99bc0051ad51e1f5947a0ad28eefb557f (diff)
downloaddtas-a547f9f2d40e8d7809e00e78b287ee77e3ab763b.tar.gz
This gives us consistency with the "cue prev" command,
is easier-to-type, and is consistent in length with "tl next".

We'll just map "previous" -> "tl prev" when we implement the
MPRIS bridge.
-rw-r--r--Documentation/dtas-tl.txt4
-rw-r--r--lib/dtas/player/client_handler.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/dtas-tl.txt b/Documentation/dtas-tl.txt
index f7a3a1a..a1675b0 100644
--- a/Documentation/dtas-tl.txt
+++ b/Documentation/dtas-tl.txt
@@ -31,7 +31,7 @@ HH:MM:SS.FRAC format.
 * reto REGEXP [POS] - play first track with path matching REGEXP immediately,
 optionally seek to POS.  POS should be a timestamp in HH:MM:SS.FRAC format.
 * next - play the next track in the tracklist
-* previous - play the previous track in the tracklist
+* prev - play the previous track in the tracklist
 * repeat 1 - repeat the current track
 * repeat false - disable repeat
 * repeat true - enable repeat of the whole tracklist
@@ -54,7 +54,7 @@ to skip forward in the tracklist
 
 to skip backwards in the tracklist
 
-        $ dtas-tl previous
+        $ dtas-tl prev
 
 # ENVIRONMENT
 
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index 2f356ab..de52307 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -605,7 +605,7 @@ module DTAS::Player::ClientHandler # :nodoc:
     when "next"
       _tl_skip
       io.emit("OK")
-    when "previous"
+    when "prev"
       @tl.previous!
       _tl_skip
       io.emit("OK")