Suggested patch on how to implement before/after hook support.
---
Makefile.am | 3 ++
cmd-set-hook.c | 90 +++
cmd-show-hooks.c | 62 ++
cmd.c| 70 +-
hooks.c | 114
Hi,
I'm attaching one patch for now -- an idea for how hook support in tmux
might work. There's no documentation yet as I envisage things still in a
state of flux.
All commands that tmux recognise have the ability to have hooks attached to
them. These hooks in turn can run other tmux commands
Hey
Yeah i didn't think it would be included in tmux proper since i end up
reworking the cmd_table a lot and get rid of the const in it all and
allocate it memory so i can change it at runtime etc. Probably not
really in the spirit of tmux in some ways. But yeah i am not that
great when it comes t
Hi
This looks nice on a quick look but I'm not sure I want to include it in
tmux proper, I like Python but even an optional dependency on it is a
big deal.
It might be easier for people to plau with if you could send it as one
patch, or split up as a logical set of changes rather than, for exampl