Improve comments.

This commit is contained in:
Emre AKYÜZ 2023-11-19 19:17:29 +03:00 committed by GitHub
parent 2a5cf35142
commit 56304e551d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,7 @@ URLQUERY_FILE="$HOME/.local/share/urlquery"
CLIPBOARD="xclip -o" CLIPBOARD="xclip -o"
ACTION_MENU='@@' ACTION_MENU='@@'
# For additional search function, add keywords under open_bookmark function's # For additional search function, see information on open_bookmark function below
# case condition next to search and wiki keywords.
DMENU() { DMENU() {
dmenu -i -l $1 -p "$2" dmenu -i -l $1 -p "$2"
@ -86,7 +85,7 @@ open_bookmark() {
URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-) URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-)
[ -z "$URL" ] && notify-send "Bookmark not found." && exit 1 [ -z "$URL" ] && notify-send "Bookmark not found." && exit 1
case "$URL" in case "$URL" in
*"search"*|*"wiki"*|*"packages"*) *"search"*|*"wiki"*|*"packages"*) # Add your additional search keywords here similarly.
QUERY=$(echo "" | DMENU 0 "Search") QUERY=$(echo "" | DMENU 0 "Search")
URL="${URL}${QUERY}" URL="${URL}${QUERY}"
;; ;;