dotfiles/scripts/.local/share/scripts/finder

7 lines
239 B
Bash
Executable File

#!/bin/sh
search_directory=~/Documents
xdg-open "$(rg --no-messages --no-ignore --files $search_directory -g "{*.pdf}" -g "{*.doc[x]}" -g "{*.xls[x]}" -g "{*.ppt[x]}" |
rofi -threads 0 -dmenu -sort -sorting-method fzf -i -p "find")"