Switch over all tmux commands to make use of prepare.
---
cmd-attach-session.c | 11 +++---
cmd-bind-key.c | 3 ++-
cmd-break-pane.c | 9 +---
cmd-capture-pane.c | 7 +++---
cmd-choose-buffer.c| 9
cmd-choose-client.c| 10 +
cmd-choose-tree.
Hi,
So it's been a while. Here's an updated version of hook support.
For those of you wanting to play along at home, please see:
https://github.com/ThomasAdam/tmux/tree/ta/new-hooks
Some of it might still be rough around the edges; I'm planning on ironing
that out over the next few days.
Sinc
Define a structure for holding hook information, as well as set/show hook
commands.
---
Makefile.am | 3 ++
cmd-set-hook.c | 95 ++
cmd-show-hooks.c | 62 ++
cmd.c| 2 +
hooks.c | 112
Commands now set their running context separately from executing. The
state is used at execution time of commands, and by separating this out, the
command state can be queried for any hooked commands.
---
cmd.c | 32
tmux.h | 32