mirror of
https://github.com/GRFreire/scripts.git
synced 2026-01-08 04:19:39 +00:00
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:
parent
18f3261665
commit
ea41b37b04
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user