On Wed, Jun 16 2021,Nicholas Marriott wrote:
> You probably want the -E flag to display-popup.
>
Right, that worked as intended; now the popup goes away on F4 or on Ctrl-D
{ popup -E -w70% -h70% \
Thanks for this.
[snipped 43 lines]
> bind-key -N "Toggle persistent popup shell" \
> -n F4 if-shell -F '#{==:#{session_name},float}' { detach-client } \
> { popup -w70% -h70% \
> 'tmux attach -t float || tmux new -s float \;\
> display-message "Press PF4 to toggle floating popup or Ctrl-D to kill it"'\
> }
[snipped 32 lines]
sivaram
--