Do not open random entries if not on the query

This commit is contained in:
Emre AKYÜZ 2023-11-19 01:10:01 +03:00 committed by GitHub
parent f51d7451cb
commit c9ad701e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,7 @@ edit_bookmark() {
open_bookmark() {
URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-)
[ -z "$URL" ] && notify-send "Bookmark not found." && exit 1
case "$URL" in
*"search"*|*"wiki"*)
QUERY=$(DMENU 0 "Search")