TextMate

From 43FoldersWiki

Jump to: navigation, search
TextMate
Platform: OS X
License: Shareware
Cost: €39
Download Size: 1.4MB
Site: http://macromates.com

Contents

[edit] Description

[edit] Testimonials

TextMate is a editor for MacOS, and according to the author it's the Missing Editor. I'm not sure I totally agree with that, since I've never lost Emacs, but it's a pretty good editor. --User:bsag

[edit] TextMate and GTD

For me TextMate combines some of the best bits of power command line editors like Emacs and Vim, but with the GUI convenience, elegance and integration of a Cocoa application. In particular, it has a number of features which make it a powerful tool for running your GTD workflow. --User:bsag

[edit] Hacks

[edit] Projects

You can open a group of files by selecting all of them in the Finder and dragging the group on to the TextMate icon in the Dock. Projects can be temporary and ad hoc, or you can save a Project file for later reuse. So if you do GTD with text files, you can save your actions, projects, tickler and scratch files in a project and open them in one go. Within projects, files are opened in tabs, which makes it easy to switch between your files with a keyboard shortcut. --User:bsag

[edit] Snippets

These are like auto-complete items on steroids. In the Snippets editor, you enter the text you want to autocomplete, which can include tab place-holders of the form '$1'. This means that you can enter the static skeleton for your snippet and put placeholders in where you'll need to enter variable text (you can even set a default value which is selected ready to be replaced). You then enter a shortcut for the Snippet, such as '@o'. Let's say that you want to make a snippet to do the grunt work of entering a next action for '@office'. The snippet entry would be as follows:

@office: [ ] `date "+%Y-%m-%d %H:%M"` ${1:action} [${2:project}]

Now, in your text file, you type '@o' then type a tab and the text is automatically expanded like this:

@office: [ ] 2005-02-15 action [project]

Today's date is automatically entered, and the word 'action' is selected ready for you to replace it with the description of your next action. Once you've typed that, you hit tab again, and the word 'project' is selected for you to fill in the project name. It's quick and easy once you've set it up, and helps you to enter your next actions in a consistent and structured way. --User:bsag

See also: http://wiki.macromates.com/Howtos --RB 06:31, 30 Mar 2005 (EST)

[edit] Commands

Commands are even more powerful than Snippets, and can be written in any of the shell scripting languages (like bash, Perl, Python or Ruby) and can be triggered from a menu or with a keyboard shortcut. There are also variables representing things like the path of your file, so you can do some fairly sophisticated things. For example, Daniel Von Fange wrote a nice command to mark the currently selected next action as done, and move it to a file containing completed items, together with a completion date. I then wrote another script which collects uncompleted next actions from an actions file and a projects file, sorts them by context and allows them to be displayed by GeekTool on the desktop. --User:bsag

[edit] See Also

Personal tools