tmux-net-speed icon indicating copy to clipboard operation
tmux-net-speed copied to clipboard

do global interpolation

Open Shuraken007 opened this issue 2 years ago • 0 comments

I wanted to hide zero value "0 B/s", conditions are supported.

readonly show_speed="#{?#{!=:#{download_speed},0 B/s},#{download_speed},}"

Problem is, that do_interpolation() expands only first #{download_speed}

Please do global variable expanding result=${input//$download_interpolation/$download_speed} vs result=${input/$download_interpolation/$download_speed}

Shuraken007 avatar Jul 05 '23 12:07 Shuraken007