[TxMt] center document?

Allan Odgaard throw-away-1 at macromates.com
Sat Nov 25 12:20:53 UTC 2006


On 23. Nov 2006, at 23:49, Xavier Noria wrote:

> I would like to write a command to center the document content in  
> the editor window. Think a boxed title in Keynote. Is there a way  
> to know the window height in lines? I dumped the environment and  
> saw no relevant variable.

There’s currently no such variable. TM_COLUMNS is btw the wrap  
margin, or in case of a column selection, the number of columns  
selected. So the width of the window is technically also missing.

I won’t add this right away, but it might not be bad to have them.




More information about the textmate mailing list