output from popup ?

25 views
Skip to first unread message

M Kelly

unread,
Apr 6, 2020, 1:36:18 PM4/6/20
to tmux-users
Hi,

Hope everyone is ok/safe out there ...

Does anyone know of a way to get the output result from something in a popup ?
I was thinking of running fzf in a tmux popup - but need to capture the selected item ...

thx,
-m

M Kelly

unread,
Apr 6, 2020, 1:42:01 PM4/6/20
to tmux-users
Hi,

ok, I think I can redirect the command output to a file ...

tmux popup -K -E -R "fzf > fzf.selection.txt"

thx,
-m

Nicholas Marriott

unread,
Apr 6, 2020, 1:44:12 PM4/6/20
to M Kelly, tmux-users
Look at how this script does it - seems like it uses a fifo?

https://github.com/kevinhwang91/fzf-tmux-script/tree/master/popup

Although I'd probably use a temporary file myself.
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/a7f58113-c65a-4aa8-b5a2-1a5507c80646%40googlegroups.com.

M Kelly

unread,
Apr 6, 2020, 3:49:54 PM4/6/20
to tmux-users
Hi,

thx
I think it is to accept stdin input, so you can pipe to it ....
I found there is a fzf-tmux wrapper which is almost identical to this.
Adding a -p arg causes that to use a tmux popup instead of window.

take care,
-m

Reply all
Reply to author
Forward
0 new messages