ok, hello there, I used textmate for a while with "found on the internet" licence, but now I decided to really buy it (and I really did), so now I think its OK to post some feature request or questions here :)
first feature request I have is something simmilar to the "Tidy" function in HTML bundle, only with C. There is a program called indent, thats on every Mac OS X distribution in /usr/bin/indent, that does exactly that. This can be used to "tidying up" the C code..
On 15.11.2008, at 01:26, kaja wrote:
ok, hello there, I used textmate for a while with "found on the internet" licence
And you are sure you want to post this on a public mailing list? ;)
first feature request I have is something simmilar to the "Tidy" function in HTML bundle, only with C. There is a program called indent, thats on every Mac OS X distribution in /usr/bin/indent, that does exactly that. This can be used to "tidying up" the C code..
This feature is already available.
Text -> Filter Through Command, "indent" as command, set input to "Document", output to "Replace document". Done.
- Kai Brust
On 15.11.2008, at 01:26, kaja wrote:
ok, hello there, I used textmate for a while with "found on the internet" licence
And you are sure you want to post this on a public mailing list? ;)
I can, since I've legal licence already :)
This feature is already available.
Text -> Filter Through Command, "indent" as command, set input to "Document", output to "Replace document". Done.
- Kai Brust
I didn't know about this feature (filter through command), thanks.
On 15 Nov 2008, at 03:47, kaja wrote:
This feature is already available.
Text -> Filter Through Command, "indent" as command, set input to "Document", output to "Replace document". Done.
I didn't know about this feature (filter through command), thanks.
Of course if you use it a lot you should make it a permanent command: http://manual.macromates.com/en/commands
We don’t have a default command that does /usr/bin/indent because in my experience that shell command is pretty useless, but then, I do Objective-C / C++, and I guess /usr/bin/indent is for ANSI-C (still though, I find it hard to make it output even ANSI-C that matches my preferences).