Compare commits

..

1 Commits

Author SHA1 Message Date
199e17853f
Tweak rofi finder script to only search for files 2020-10-01 11:07:27 +02:00

View File

@ -15,7 +15,10 @@ if [ ! -z "$@" ]; then
exit
fi
elif [[ "$@" == \!\!* ]]; then
echo "Type your search query to find files"
echo "!!-- Type your search query to find files"
echo "!!-- To search again type !<search_query>"
echo "!!-- To search parent directories type ?<search_query>"
echo "!!-- You can print this help by typing !!"
elif [[ "$@" == \?* ]]; then
while read -r line; do
echo "$line" \?\?
@ -24,5 +27,8 @@ if [ ! -z "$@" ]; then
fd -t file "${QUERY#!}" $HOME/Documents 2>&1 | grep -v 'Permission denied\|Input/output error'
fi
else
echo "Type your search query to find files"
echo "!!-- Type your search query to find files"
echo "!!-- To seach again type !<search_query>"
echo "!!-- To seach parent directories type ?<search_query>"
echo "!!-- You can print this help by typing !!"
fi