[PATCH 1/1] Hook support: Proof-of-concept

2012-11-03 Thread Thomas Adam
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

[PATCH 0/1] Hook support: proof-of-concept

2012-11-03 Thread Thomas Adam
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

Re: Python Scripting

2012-11-03 Thread Philip Herron
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

Re: Python Scripting

2012-11-03 Thread Nicholas Marriott
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