Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve grep and update manual

  • Loading branch information...
commit 79da727fdcbe29e01b87a480df8f9fe121602757 1 parent 1644f2a
Aldis Berjoza authored
Showing with 19 additions and 2 deletions.
  1. +3 −1 bin/playd.sh
  2. +16 −1 man/man1/playd.1
View
4 bin/playd.sh
@@ -37,7 +37,7 @@
# feedback email: playd@bsdroot.lv
-readonly PLAYD_VERSION='1.22.0'
+readonly PLAYD_VERSION='1.22.1'
# dependancies:
# * mplayer (multimedia/mplayer)
# * tagutil (audio/tagutil) [Optional, needed if you want playd info]
@@ -457,8 +457,10 @@ while [ $# -gt 0 ]; do
'edit' ) playd_edit_playlist "$PLAYD_PLAYLIST" ;;
'edit-favourite' | 'editfav' ) playd_edit_playlist "$PLAYD_PLAYLIST" ;;
'filename' | 'fname' ) playd_current_file ;;
+ 'grep' ) playd_cat_playlist | egrep -i "$2"; shift ;;
'help' | '--help' | '-h' ) $PLAYD_HELP ;;
'info' ) tagutil "`playd_current_file`" ;;
+ 'lgrep' ) playd_longcat_playlist | egrep -i "$2"; shift ;;
'list' ) playd_cat_playlist | $PAGER ;;
'list-favourites' | 'lsfav' ) $PAGER "$PLAYD_FAV_PLAYLIST" ;;
'longcat' | 'lcat' ) playd_longcat_playlist ;;
View
17 man/man1/playd.1
@@ -26,7 +26,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd August 6, 2011
+.Dd August 31, 2011
.Dt playd 1
.Os
.\"#############################################################################
@@ -205,6 +205,13 @@ Adjust gamma by value (relative by default). If
key is specified, gamma will be set to absolute value. Value can be in range
-100 to 100.
.\" }}}
+.\" grep {{{
+.It Cm grep Xo
+.Ar patter
+.Xc
+grep playlist. This is equivalent to
+.Dl playd cat | egrep -i pattern
+.\" }}}
.\" hue {{{
.It Cm hue Xo
.Ar value
@@ -234,6 +241,14 @@ Jump to song_id or
)
position in playlist
.\" }}}
+.\" lgrep {{{
+.It Cm lgrep Xo
+.Ar patter
+.Xc
+grep playlist. This is equivalent to
+.Dl playd lcat | egrep -i pattern
+)
+.\" }}}
.\" list {{{
.It Cm list
Show default playlist.
Please sign in to comment.
Something went wrong with that request. Please try again.