From a547f9f2d40e8d7809e00e78b287ee77e3ab763b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Sep 2013 03:43:46 +0000 Subject: player (protocol): rename "tl previous" to "tl prev" 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") -- cgit v1.2.3-24-ge0c7