why did I hardcode firefox? and fix qutemark

This commit is contained in:
Felix Van der Jeugt 2015-06-04 23:26:41 +02:00
parent ab0cec3ab6
commit 19ceb2fa9d
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
browser firefox
browser xdg-open
keep-articles-days 30
mark-as-read-on-hover yes

View File

@ -11,18 +11,17 @@ case "$command" in
;;
"delete")
to_remove="$(cat -n "$qutemarks" | sed 's/^ *//' | dmenu)"
[ -z "$to_remove" ] || sed -i "${to_remove%% *}d" "$qutemarks"
if [[ "$to_remove" =~ "[0-9]* .*" ]]; then
sed -i "${to_remove%% *}d" "$qutemarks"
fi
;;
"tabopen")
opener="open -t"
;;
"{tab,}open")
"tabopen"|"open")
opener="open"
if [ "$command" = "tabopen" ]; then
opener="open -t"
fi
to_open="$(dmenu < "$qutemarks")"
echo "$command $to_open" >> "$QUTE_FIFO"
echo "$command ${to_open%% *}" >> "$QUTE_FIFO"
;;
*)
;;