This commit is contained in:
Barrett Ruth 2026-02-13 20:53:39 -05:00
parent 6e632a87c2
commit 223cad3082
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 9 additions and 12 deletions

View file

@ -173,13 +173,9 @@ cmd)
query=$(printf '%s' "$result" | head -1)
action=$(printf '%s' "$result" | sed -n '2p')
[ $rc -eq 130 ] && exit
if [ -n "$action" ]; then
case "$query" in
"$action "*)
tmux $query
exit
;;
esac
if [ -n "$query" ] && [ "$query" != "$action" ]; then
tmux $query
elif [ -n "$action" ]; then
case "$action" in
switch-client) pick_session ;;
select-window) pick_window ;;
@ -228,8 +224,6 @@ cmd)
;;
*) tmux "$action" ;;
esac
elif [ -n "$query" ]; then
tmux $query
fi
;;
*)