From c9ad701e638dbb4fb2cff14c7bce120f4ab3d564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20AKY=C3=9CZ?= Date: Sun, 19 Nov 2023 01:10:01 +0300 Subject: [PATCH] Do not open random entries if not on the query --- .local/bin/bookmark_manager.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/bookmark_manager.sh b/.local/bin/bookmark_manager.sh index 00529483..bee69e25 100644 --- a/.local/bin/bookmark_manager.sh +++ b/.local/bin/bookmark_manager.sh @@ -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")