set-hook after-join-pane issue, tmux 2.9a

14 views
Skip to first unread message

Vladimir Bauer

unread,
Jun 16, 2019, 6:03:27 AM6/16/19
to tmux-...@googlegroups.com
I have
set-hook -g after-join-pane "select-layout even-horizontal"
set in my config.
After I join pane nothing happens, i.e. hook didn't trigger.
Exact command I use to join panes: "join-pane -s !"
Do I miss something?

--
Kind Regards,
Vladimir Bauer

Nicholas Marriott

unread,
Jun 17, 2019, 4:23:16 AM6/17/19
to Vladimir Bauer, tmux-...@googlegroups.com
Hi

join-pane doesn't have an after hook at the moment, although I think
there is no reason it couldn't have the default one (which uses -t). Try
this please:

Index: cmd-join-pane.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/cmd-join-pane.c,v
retrieving revision 1.34
diff -u -p -r1.34 cmd-join-pane.c
--- cmd-join-pane.c 17 Apr 2019 14:37:48 -0000 1.34
+++ cmd-join-pane.c 17 Jun 2019 08:22:47 -0000
@@ -55,7 +55,7 @@ const struct cmd_entry cmd_move_pane_ent
.source = { 's', CMD_FIND_PANE, 0 },
.target = { 't', CMD_FIND_PANE, 0 },

- .flags = 0,
+ .flags = CMD_AFTERHOOK,
.exec = cmd_join_pane_exec
};
> --
> 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 post to this group, send email to tmux-...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/CADkDknbOM5k-HpDHaRXN4bO0ojH3SQCqPtjknjN6xwCWJLQ_yg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages