From 5b45e917582aaf8a8a3451f01bee152d041a24d4 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 23 Apr 2016 12:26:51 +0200 Subject: add -regex in default config. This advances the filtering for albums --- clerk | 2 +- config.clerk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clerk b/clerk index 25d2fd0..3569723 100755 --- a/clerk +++ b/clerk @@ -424,7 +424,7 @@ currentMenu () { if [[ $menu == "1 [ Browse Albums ]>" ]]; then filter=$(mpc current -f '%artist%') firstsong=$(mpc -f '%album% %album%' search artist "$(mpc current -f '%artist%')" album "$(mpc current -f '%album%')" | head -1) - album_entry="$firstsong" filter="$filter" addAlbum alphabet + album_entry="$firstsong" filter="^$filter " addAlbum alphabet elif [[ $menu == "2 [ Browse Tracks ]>" ]]; then filter=$(mpc current -f '%artist%') diff --git a/config.clerk b/config.clerk index 6363093..6f847f3 100644 --- a/config.clerk +++ b/config.clerk @@ -1,6 +1,6 @@ # rofi command. Make sure to have "$@" as last argument _rofi () { - rofi -dmenu -i -lines 30 -width 1500 -no-levenshtein-sort "$@" + rofi -regex -i -lines 30 -width 1500 -no-levenshtein-sort "$@" } # custom mpd host -- cgit v1.2.3-24-g4f1b