[TxMt] Replacement command for the C Library Bundle

Joachim Mårtensson joachimm at etek.chalmers.se
Thu Dec 14 07:59:09 UTC 2006


I have written a replacement command for the C Library Bundle and placed
in the C Bundle. Type at least the first letter in the function you want
to autocomplete and hit ctrl-M, this will bring up a menu where you can
choose which function you want to complete.
The completions are stored in the file CLib.txt.gz, add that file to the
Support folder in the C Bundle in. The completions where taken from the
(now removed) C Library Bundle running the following command in the
Snippet folder.

ruby -e "Dir[\"*\"].each do |name| puts
open(name).read.match(/content<\/key>\n\s*<string>(.*)/)[1] end"

if for some reason CLib.txt.gz is to large for the list use that to
generate CLib.txt and gzip it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CLib.txt.gz
Type: application/x-gzip
Size: 12408 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061214/90e434a9/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C Library Completions.tmCommand
Type: application/octet-stream
Size: 3170 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061214/90e434a9/attachment.tmCommand>


More information about the textmate mailing list