Not sure if that's possible... but you could always do something like:
on ^*:input:@:{
if ($istok($1-,@,32)) {
haltdef
msg $active $reptok($1-,@,$window($active),32)
return
}
}
Then, just put @ by itself wherever you want to see the window name.
Examples (@window title is @test):
Type: This @window is called @
Result: This @window is called @test
Type: @
Result: @test
Type: @ works.
Result: @test works.
Note that @ just has to be by itself (nothing touching it). so, don't put @. or @? or @! at the end of a sentence.
Not quite what you wanted, but it's something, anyhow.