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
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
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
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
--
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