My TextMate page

by Hans-Jörg Bibiko

teaser

Contact

Hans-Jörg Bibiko - bibiko@eva.mpg.de


Free Downloads

Xcode template for TextMate plug-ins (01 Mar 2010)

To install it simply download the Xcode template

decompress it, and copy it e.g. into:

/Developer/Library/Xcode/Project Templates/Application Plug-in

Then launch Xcode, choose "New Project" > Category "Application Plug- in", and enter an unique and adequate name. You can then simply build it and restart TextMate. Hopefully you will find a new menu item "ExamplePluginMenuItem" in TM's Window submenu. If you invoke it, the plugin will reload all bundles, add a bookmark to line 1, and show an alert with some information.

The template creates a basic skeletal structure based of the chosen project name with a NIB containing the menu item definition. In addition you will find in the header file a number of TextMate methods which could be useful as dummy declarations to avoid compiler warnings. After the build process the plug-in will be copied into ~/ Library/Application Support/TextMate/PlugIns. Please note that this template will only work with TextMate 1.x, and it's set up as 32bit universal against SDK 10.5.

TMGoToLastEdit plug-in (29 Oct 2009)

The TMGoToLastEdit plug-in installs a new menu item “Go to Last Edit ⌥⌘J” at the bottom of TextMate's Navigation sub-menu. By using a Undo/Redo or Redo/Undo approach (which will be detected automatically) on the current document this command will place the caret to the last edit position.

To install this plug-in simply download it, decompress it, and double-click at it.

This command is available if at least one Undo or Redo step can be executed. It works in TextMate's documents, in the Bundle Editor, and in all text input fields.

If an Undo operation ends up in displaying a selection the caret will be located at the beginning of the selection if the command was performed in a TextMate document otherwise at the end of a selection due to technical factors.

The command listens to the default key-binding ⌥⌘J. If you want to change that key-binding and/or the menu item title you can open the NIB file GoToLastEditMenuItem.nib with the “Interface Builder” (part of the Developer Kit). This NIB file is located inside of the plug-in (Show Package Contents in Finder):
→ Resources → English.lproj → GoToLastEditMenuItem.nib.

This plug-in is a 32bit Binary Universal and requires Mac OSX >= 10.5 and will only work with TextMate 1.x.

If any issues arise please let them me know.

Hypersearch (15 Dec 2008)

Under Construction

The Hypersearch bundle provides the ability to search for a pattern within the entire project, or within a given selection of files and/or folders, or within the current document based on the Oniguruma syntax. It will list all occurrences within one line of the search pattern as an HTML page with hyperlinks linked to their positions.

The front end is based on the Ruby code written by Henrik Nyh. Instead of using grep as search tool I used onigrep which I wrote as a grep-like command line tool using the regular expression search engine Oniguruma (version 5.8.0) by K. Kosako original.

onigrep can also be used as standalone command tool. (For more details onigrep --help). onigrep is a pure UTF-8 regexp search engine written C which also supports ignore case for all Unicode character like Greek, Cyrillic, etc.

SCRATCH SNIPPET Bundle (24 Oct 2007)

This bundle allows you to generate snippets out of a text document very easily, esp. for temporarily often used snippets. After installation it only contains one command: "Create New Scratch Snippet". This command takes a selection which contains the snippet (last line := tab trigger = name of the new snippet) and installs a new snippet into the "SCRATCH SNIPPETS" bundle (scope is set to the current one automatically, but this can be changed easily). After doing that the new snippet is ready for usage.

A demo movie is here available (1.2MB).

TMTOOLS plug-in (version 0.906 — 13 Nov 2007)

The TMTOOLS plug-in is a conglomeration of system commands which provide the user with advanced functionality to interact with TextMate.

Important Note:

The TMTOOLS plug-in calls undocumented TextMate functions without an appropriate API. It is strongly recommend to use that plug-in for private scripting only!

     The usage of that plug-in is at your own risk!

More details here.


TextMate CSS design