I think either you or me are miss the point :-).
There is no point adding something to pipe-pane or something that does the same
as pipe-pane. People who want to log individual panes can already do it with
pipe-pane as it is now.
My idea is that we make it easier for people who want to log everything, so
they don't need to go through and do pipe-pane for each pane. My idea is that a
window option would let you log all panes (to different files if you put eg
#{pane_id} in the path). It'd only be global or per window but I have plans for
options that might change that later.
Of course an option would need some magic to detect when to stop and start
logging. Perhaps it might be better to have flags on some command, I'm not sure.
But the idea is that this is something new, not just a replacement for
pipe-pane "exec cat > foo". I also think it should be separate from pipe-pane
so you can use the two independently.
-------- Original message --------
From: J Raynor <jxray...@gmail.com>
Date: 18/08/2013 04:41 (GMT+00:00)
To: Nicholas Marriott <nicholas.marri...@gmail.com>
Cc: tmux-users@lists.sourceforge.net
Subject: Re: patch allowing pipe-pane to write directly to a file
Combining the logging with pipe-pane seemed to be the easier option
since I'm familiar with both bits of code, so I gave that a shot and
I've attached a new patch.
The code for the logging and for having pipe-pane write to a file are
a bit simpler than previous patches. There's no need for a separate
fd or filename for the logging, and there's no need for a separate
file-writing socketpair for pipe-pane. So, struct window_pane doesn't
change.
Passing -f to pipe-pane makes it interpret argv[0] as a filename
instead of a command. Passing -f without a string or with an empty
string causes it to use the default logname.
Is this better than having a separate command for the logging? Would
you still prefer to just have a window option?
------------------------------------------------------------------------------
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