aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 22:54:15 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 22:54:15 +0000
commit6e0ab9974ade9e697719107eb7c490efabcac7b3 (patch)
treef461bf823a0cbb6444ec610139cc5c18bc845780
parent5d51b613de66ab2eb312ca4184b8f84e51ecb1fb (diff)
remove -vi flag for st-* scriptsmain
-rwxr-xr-xst-copyout2
-rw-r--r--st-urlhandler4
2 files changed, 3 insertions, 3 deletions
diff --git a/st-copyout b/st-copyout
index 6f5a182..f2370dc 100755
--- a/st-copyout
+++ b/st-copyout
@@ -10,6 +10,6 @@ trap 'rm "$tmpfile"' 0 1 15
sed -n "w $tmpfile"
sed -i 's/\x0//g' "$tmpfile"
ps1="$(grep "\S" "$tmpfile" | tail -n 1 | sed 's/^\s*//' | cut -d' ' -f1)"
-chosen="$(grep -F "$ps1" "$tmpfile" | sed '$ d' | tac | dmenu -vi -p "Copy which command's output?" -i -l 10 | sed 's/[^^]/[&]/g; s/\^/\\^/g')"
+chosen="$(grep -F "$ps1" "$tmpfile" | sed '$ d' | tac | dmenu -p "Copy which command's output?" -i -l 10 | sed 's/[^^]/[&]/g; s/\^/\\^/g')"
eps1="$(echo "$ps1" | sed 's/[^^]/[&]/g; s/\^/\\^/g')"
awk "/^$chosen$/{p=1;print;next} p&&/$eps1/{p=0};p" "$tmpfile" | xclip -selection clipboard
diff --git a/st-urlhandler b/st-urlhandler
index c369fb3..3431694 100644
--- a/st-urlhandler
+++ b/st-urlhandler
@@ -15,8 +15,8 @@ urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sideb
while getopts "hoc" o; do case "${o}" in
h) printf "Optional arguments for custom use:\\n -c: copy\\n -o: ${BROWSER}\\n -h: Show this message\\n" && exit 1 ;;
- o) chosen="$(echo "$urls" | dmenu -vi -i -p 'Follow which url?' -l 10)"
+ o) chosen="$(echo "$urls" | dmenu -i -p 'Follow which url?' -l 10)"
setsid $BROWSER "$chosen" >/dev/null 2>&1 & ;;
- c) echo "$urls" | dmenu -vi -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard ;;
+ c) echo "$urls" | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard ;;
*) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;;
esac done