rofi-snippets: make the filtering case insensitive, and improve ellipsis placement come 1.7.6
This commit is contained in:
parent
ab7c4d7410
commit
976b8ae45e
|
@ -4,7 +4,11 @@
|
||||||
# "bookmarking"/snippets inspired by Luke Smith:
|
# "bookmarking"/snippets inspired by Luke Smith:
|
||||||
# - <https://www.youtube.com/watch?v=d_11QaTlf1I>
|
# - <https://www.youtube.com/watch?v=d_11QaTlf1I>
|
||||||
|
|
||||||
|
# rofi flags (see: `man rofi-dmenu`):
|
||||||
|
# `-i`: case insensitive filtering
|
||||||
|
# `-sync -ellipsize-mode middle`: for lengthy entries, replace the *middle* with an ellipsis instead of the end
|
||||||
|
# requires rofi 1.7.6, and `-sync`, wich must come *before* the `-dmenu` flag
|
||||||
cat ~/.config/rofi-snippets/public.txt ~/.config/rofi-snippets/private.txt | \
|
cat ~/.config/rofi-snippets/public.txt ~/.config/rofi-snippets/private.txt | \
|
||||||
rofi -dmenu | \
|
rofi -sync -ellipsize-mode middle -dmenu -i | \
|
||||||
sed -z -e 's/ *#.*$//' -e 's/\n$//' | \
|
sed -z -e 's/ *#.*$//' -e 's/\n$//' | \
|
||||||
wtype -
|
wtype -
|
||||||
|
|
Loading…
Reference in New Issue
Block a user