Hi,

On Mon, Dec 10, 2012 at 08:29:07AM +0000, Nicholas Marriott wrote:
> Can you send the patch as a unified diff to the mailing list please?
> 
> osdep_get_cwd does return a static char[].
> 
> I'm not sure about adding a new option, it might be better to make
> automatic-rename a tristate option (on/off/cwd), but that breaks
> toggling. Hmm.

I don't like this patch, and I wouldn't like breaking the toggling aspect of
automatic-rename; it's one of those commands that's used surprisingly often
by people and breaking that would make users suffer for no real benefit.

The actual problem this is solving isn't so much about getting the CWD as
the title of the window, but *when* it is appropriate to update the title
with some value.

We already provide #{pane_current_path} in formats, and we could extend this
if it's to be some other derived CWD (such as from the window's active FD
instead), rather than making this some assumption to be hard-coded.  Then it
allows users to use any free-from string they like, without breaking
automatic-rename.

Guess what will solve this?  Hook support...

-- Thomas Adam

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to