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.
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.
Did you try pressing ⌃L? It should work in any Cocoa Text widget, including TextMate's. ;)
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.