Simplify search pattern for file finder script

This commit is contained in:
coolneng 2024-01-18 22:14:46 +01:00
parent 1129dcabb0
commit 666ba4e5d9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,5 @@
search_directory=~/Documents
xdg-open "$(rg --no-messages --no-ignore --files $search_directory -g "{*.pdf}" -g "{*.doc[x]}" -g "{*.xls[x]}" -g "{*.ppt[x]}" |
xdg-open "$(rg --no-messages --no-ignore --files $search_directory -g "*.{pdf,docx,doc,xlsx,xls,pptx,ppt}" |
rofi -threads 0 -dmenu -sort -sorting-method fzf -i -p "find")"