dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] player (protocol): rename "tl previous" to "tl prev"


From: Eric Wong
Subject: [PATCH] player (protocol): rename "tl previous" to "tl prev"
Date: Mon, 30 Sep 2013 03:45:47 +0000

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.
---
 Documentation/dtas-tl.txt         | 4 ++--
 lib/dtas/player/client_handler.rb | 2 +-
 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")
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]