Re: Discovery re auto-titling and status-line formatting

2010-04-13 Thread Micah Cowan
For posterity/anyone coming across this in archives, the latest version of this script is always at http://micah.cowan.name/hg/wtitle/file/tip/wtitle Micah Cowan wrote: > Micah Cowan wrote: >> So, I recently discovered that if automatic window-renaming is on >> (default), it's possible for a progr

Re: Discovery re auto-titling and status-line formatting

2010-01-28 Thread Nicholas Marriott
I considered at one point being able to set rules for running commands based on the window title, although this would be a another case where it would be nice to have hooks and an if command. On Wed, Jan 27, 2010 at 10:48:03PM -0800, Micah Cowan wrote: > Micah Cowan wrote: > > So, I recently dis

Re: Discovery re auto-titling and status-line formatting

2010-01-27 Thread Micah Cowan
Micah Cowan wrote: > So, I recently discovered that if automatic window-renaming is on > (default), it's possible for a program's name to influence how the > window is rendered in the status bar[...] Here's a slightly more easily-extensible version of that program, written in Python (2.6 or higher

Re: Discovery re auto-titling and status-line formatting

2010-01-26 Thread Micah Cowan
Micah Cowan wrote: > However, I realized I could know whip up a program like: (Note: the wtitle.c source I posted has the flaw that it will not do anything when invoked as "wtitle vim" (no further arguments). I meant to add code to handle when (c == 2), but forgot to. -mjc --

Discovery re auto-titling and status-line formatting

2010-01-26 Thread Micah Cowan
So, I recently discovered that if automatic window-renaming is on (default), it's possible for a program's name to influence how the window is rendered in the status bar, since '#[...]'-style formatting instructions are handled in a second sweep (in status_write_cnputs), _after_ the window's title