Le 17 févr. 06 à 15:39, Allan Odgaard a écrit :
On 17/2/2006, at 15:22, Alain Matthes wrote:
[...] There are some latex widgets but the code goes in the clipboard and not in textmate . is it possible for a widget ?
It is, yes.
I haven't looked at these widgets, but presumably they use the Widget.system() function to place the text on the clipboard.
One can insert text into TextMate by calling for example:
osascript -e 'tell app "TextMate" to insert "\alpha"'
And from a widget, one can wrap that in Widget.system(…).
It is also possible to add “as snippet yes” to the line, so that the text inserted is treated as a snippet.
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
Snippet are fine but there are with latex a lot of commands and it's difficult to remember all the shortcuts and the commands. if i need to open the window of the snippets, i prefer a palette. I think that a palette with tabs for ordering and with the status bar ( the status bar at the bottom of the window is not very esay to use) will be a extraordinary tool.
They are only suggestions and not bad criticisms because I find that Textmate is the best software than I use on Mac
Alain Matthes
PS : There is a soft that can put text into texmate and it's very great
Irispen II with the pen scanner ( it's possible to have an emulation of the keyboard ) is fine very fine !!