exclude all keywords starting with !

the reason for this is because I have a lot of keywords acting as search
engines inside firefox, such as arch packages search and macmillan
search. If I didnt filter those, the prompt would be flooded with
repetitive and nonsense items.
This commit is contained in:
Guilherme Rugai Freire 2022-01-30 02:47:22 -03:00
parent 18f3261665
commit ea41b37b04
No known key found for this signature in database
GPG Key ID: FC05BE5CD322C427

View File

@ -16,7 +16,7 @@ cp ~/.mozilla/firefox/*.default-release/places.sqlite $DB
# SQL
QUERY="SELECT moz_keywords.keyword, moz_places.url FROM moz_keywords left JOIN moz_places ON place_id=moz_places.id WHERE moz_places.url<>'' AND moz_keywords.keyword<>''"
OPTIONS=$(sqlite3 $DB "$QUERY" | awk -F "|" '{print "["$1"] - "$NF}')
OPTIONS=$(sqlite3 $DB "$QUERY" | awk -F "|" '{print "["$1"] - "$NF}' | awk '! /^\[!.*$/')
# Clean tmp
rm $DB