Hi, On 8 August 2013 21:53, Jared Stafford <jspeng...@jspenguin.org> wrote: > A while ago I wrote a patch for tmux to add Lua support. This adds a > bit more flexibility and performance over writing a shell script that > just runs tmux commands; for instance, you can have lua code that runs > when a window or session is created or destroyed:
Can you please look at this and related threads: https://sourceforge.net/mailarchive/message.php?msg_id=30723704 Because using that as a starting point for potentially using a scripting language would be easier than your approach, since it's more generic. I don't disagree with your ideals though, but there's much more thought that needs going in to adding in support for hooks---and unfortunately while your work helps a little, isn't the full story. Note that even if my solution does end up being the one that's used, I am still in two minds whether or not adding native support for a direct scripting language is worthwhile when you always have the ability to just exec some other binary such as lua or python from whichever hook is invoked at the time. Note that on my GitHub account is an example branch of using Lua against the proposed hook support I've outlined, and is significantly less work than the amount of Lua-specific code you've needed to write. With hook support you need to be very very careful not to add code bloat, which is why I'm still leaning towards just using sh(1) as the basis. But it's not my decision to make. -- Thomas Adam ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users