Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Favourite Textmate Commands, Snippets, Bundles, etc

Tags:

textmate

This isn't specifically a general programming question but a lot of textmate users I know end up building a textmate command to do something they often do but as it's on it's own never really release it. Mines Below:

Objective-C Build and Run

For when I'm just quickly writing a small Objective-C command line program, place this in a new command; set input to entire document, output as HTML and set the activation as you want it (I use [apple] + [shift] + R).

gcc "$TM_FILEPATH" -o "$TM_DIRECTORY"tmpTextMateRunObjectiveC -l objc
"$TM_DIRECTORY"tmpTextMateRunObjectiveC
rm "$TM_DIRECTORY"tmpTextMateRunObjectiveC
like image 463
stuartloxton Avatar asked Oct 18 '25 04:10

stuartloxton


2 Answers

The only real TextMate enhancement I use (other than language bundles) the ProjectPlus plug-in. It replaces the annoying project drawer with a project panel, adds support for SVN, Git, Mercurial, Bazaar and Svk, and adds lots of other small stuff.

Here's the feature list from the project page:

  • SCM status badges:

    • Support for SVN, Git, Mercurial, Bazaar and Svk
    • Displayed in the project file list and the window proxy icon
  • Swapping the project drawer for a panel

    • Support for ⌃⌥⌘D and ⌃⌘R is kept
    • The sidebar can be placed on either side of the window
    • Since I created this someone has updated the MissingDrawer plug-in with these features, if you wish to use this plug-in instead then you can disable the feature
  • Finder colour labels

    • Labelled files are displayed in the project drawer
    • Label can be set through the context menu
  • Project-tree state can be preserved when re-opening the project
  • QuickLook preview of files in the project file list through the context menu (or ⌥␣ when the file list is focused)
  • Sorting options through the project file list context menu
  • Display folders on top
  • Sort by file extension
  • “Open With” option
like image 96
dlfnation Avatar answered Oct 20 '25 11:10

dlfnation


A nice blog post on how Alex Payne uses TextMate. I highly recommend using the GetBundles bundle, to manage, and update your bundles in TextMate. Very nice for browsing for new bundles, and updates to existing ones.

like image 31
program247365 Avatar answered Oct 20 '25 11:10

program247365



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!