Change matching method in search script to fuzzy

This commit is contained in:
samedamci 2020-06-03 19:25:52 +02:00
parent 1f20641bc7
commit cbf10a8f97
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

View File

@ -4,7 +4,10 @@
bmfile="$HOME/.config/bookmarks"
m() { rofi -dmenu -width 600 -i -p "Search" -l "$(wc -l "$bmfile")" ;}
m() {
rofi -dmenu -width 600 -i -p "Search" -l "$(wc -l "$bmfile")" \
-matching fuzzy
}
chosen="$(
sed 's/http.*\/ //g' "$bmfile" | m