dotfiles

My configuration files.
Log | Files | Refs | README

commit 0fdbb78537405932f9e17fcd275167f93af4ab57
parent a1f8fa897334697c658bfb6dc3e28ef13ba84562
Author: Sven Möller <sven-moeller@outlook.de>
Date:   Tue, 11 Jan 2022 13:46:34 +0100

Add more link options

Diffstat:
Mbin/.local/bin/bm | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -44,9 +44,14 @@ open () { $LINK_HANDLER "$url" } +more () { + url="$1" + lh "$url" +} + interactive () { list="$1" - actions="open\narchive\nfavorite\nunread\ndelete\necho\n" + actions="open\narchive\nfavorite\nunread\ndelete\nmore\n" line="$(awk '{print NR" "$0}' | $menu | awk '{$1 = ""; print $0}' | sed 's/^ //')" url="$(echo "$line" | awk '{print $1}')" if [ -z "$line" ]; then exit; fi @@ -54,7 +59,7 @@ interactive () { if [ -z "$action" ]; then exit; fi case "$action" in unread|favorite|archive) move "$line" "$action" ;; - open|delete|echo) "$action" "$url" ;; + open|delete|more) "$action" "$url" ;; esac }