Filename / Filepath Completion for TextMate ScreenCast

by Thomas Aylott Thu, 02 Nov 2006 08:13:49 GMT

Part of the official TextMate Experimental Bundle
(at the moment)

Filename / Filepath completion.

If figures out where your cursor is and if you’re in the middle of typng a filename or path and does an ls. Then pops up a menu to choose the filename you want.

Just watch the screencast

Posted in TextMate, Screencast | no comments | no trackbacks

English Word Completion for TextMate ScreenCast

by Thomas Aylott Tue, 31 Oct 2006 02:41:00 GMT

Download the English Word Completion TextMate Command

Download the entire subtleGradient bundle

English word completion.

Basically just a modified version of Allan’s pastie version from the TextMate release notes.

It’s pretty basic, but it keeps the completed part selected after you insert it so that you can use it a bunch of times in a row with the same results.

Just watch the screencast

Updated: Now the link actually goes to something!

Updated Again!: Now the zipped bundles aren't broken!

Posted in Screencast, Mac OS X, Tip, TextMate | 3 comments | no trackbacks

My TextMate Bundles, Commands, Macros, etc...

by Thomas Aylott Sun, 05 Feb 2006 15:41:00 GMT

Ahhh TextMate, how I love thee.

This is just a quick post to share a couple of handy TextMate commands.

Balance Jr textmate thinggy

Balance Jr Textmate Macro

(?<=(<%@\s|<%#\s|<%=\s))[^%]*(?=\s%>)|(?<=<%\s)[^%]*(?=\s%>)|(?<=</)[^/>]*(?=>)|(?<=<)[^/>]*(?=/>)|(?<=<!--\s)[^->]*(?=\s-->)|\b\w+\b(?=\s*=)|\s\b\w+\b=\"[^\"]*\"|(?<=\\")[^\\"\n]*(?=\\")|(?<=')[^'\n]*(?=')|(?<=\[)[^\[\]]*(?=\])|(?<={)[^{}]*(?=})|(?<=<)[^<>\n]*(?=>)|(?<=[^/]>)[^><]*(?=</)|(?<!\d)\d+(?!=\d)|[@$!]\w+\b|(?<=/\*).*(?=\*/)|(?<=[\(,])[^\(\),]*(?=[\),])

You place your caret inside something and the macro will select everything in between enclosing characters. It’s kinda like the balance command, except it grabs everything INSIDE the characters, but not the characters themselves.

It works with:

[], {}, (), '', "", word="", <>, ><, $word, @word, /* word */, <% word %>, <%= word %>, <%# word %>, <%@ word %>, integers, comma separated values, and probably more, but I forget now.

If you want to select the paragraph text section of the following HTML, place your caret somewhere in the text and hit the macro. It’ll select everything between the > & < characters.


<p class="blah">
     paragraph text 
</p>

Here’s all the crazy stuff!

All these files are .tmbundle packages. I have them in my personal TextMate folder ~/Library/Application Support/TextMate/Bundles/. All my TextMate stuff is now being hosted in SVN at http://textmate.svn.subtlegradient.com/. Enjoy!

Back to a regular folder. Blaaarrgghhh!

These linked files are now ZIPs, yet again. But Safari will auto un-zip them for you to just double click on in your downloads panel.

That’s all. It’s been a pleasure, as always!

Posted in Screencast, Tip, Code, TextMate | 17 comments | no trackbacks