2 files changed,
5 insertions(+),
7 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-06-03 17:23:50 +0300
Authored at:
2026-06-03 17:23:24 +0300
Change ID:
pnnlvzlwymnwrmsypyowwkkuswtzpvun
Parent:
aebb6c8
jump to
| M | scripts/helpers.sh |
| M | scripts/pick.sh |
M
scripts/helpers.sh
··· 39 39 echo "$dir" 40 40 } 41 41 42 -# === spiner 43 -# TODO: use one of those briael fonts 42 +# === spinner 44 43 new_spinner() { 45 44 local current=0 46 - local -r chars="/-\|" 45 + local -r chars="⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏" 47 46 while true; do 48 47 tmux display-message -- "${chars:$current:1} $1" 49 - current=$(((current + 1) % 4)) 48 + current=$(((current + 1) % 10)) 50 49 sleep 0.1 51 50 done 52 51 } ··· 58 57 59 58 stop_spinner() { 60 59 kill "$SPINNER_PID" 61 - tmux display-message " $1" 60 + tmux display-message " $1" 62 61 }
M
scripts/pick.sh
··· 40 40 } 41 41 42 42 pick() { 43 - local selected=$(get_all_sessions | fzf \ 44 - --footer="C-x: unload/kill | C-r: rename | C-o: new" \ 43 + local selected=$(get_all_sessions | fzf --reverse \ 45 44 --bind "ctrl-x:execute($0 unload {})+reload($0 list)" \ 46 45 --bind "ctrl-r:execute($0 rename {})+reload($0 list)" \ 47 46 --bind "ctrl-o:execute($0 new)+reload($0 list)" \