Textmate 2 Tips

  • Archive
  • RSS
  • Submit

Launch files from the File Browser with a single click

Open files with a single click

Want to be able to open files in the File Browser with a single click like you used to in TextMate 1? Click the file’s icon! A lot of people are asking about this one.

    • #File browser
  • 1 year ago
  • 8
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

⌘X in the File Browser

Allan pointed out to us yesterday that In addition to ⌘C one can also use ⌘X and ⌘V to move/copy files around (⌘X doesn’t “cut” before ⌘V is used).

    • #File Browser
  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

8949 Released

I was delighted to see a significant update to the alpha released earlier today, with some much anticipated features/settings added. The big items here are the ability to disable text aliasing, the ability to put the file-browser on the right side of the window, and the option for HTML output to have its own window. See below for the complete release notes:

2011–12–16

  • HTML output can open in its own window: defaults write com.macromates.TextMate.preview htmlOutputPlacement window.
  • Anti-alias can be disabled: defaults write com.macromates.TextMate.preview disableAntiAlias -bool YES.
  • File browser can be placed on the right side: defaults write com.macromates.TextMate.preview fileBrowserPlacement right.
  • With multiple carets, ⌘-clicking one of them removes it (i.e. it’s a toggle).
  • Carriage returns (<CR>) on the general clipboard are converted to regular newlines when pasting.
  • Rename help book to “TextMate 2” which fixes issues where Help → TextMate Help showed TextMate 1.5’s help book.
  • TextMate 1.x and 2.0 can now both run at the same time.
  • Setting TM_HG and TM_GIT in Preferences is no longer eclipsed by the default properties (which set them to point at /opt/local/bin).
  • Fix potential crash when deleting bundles on disk (rm -rf).
    • #Update
    • #Features
    • #File browser
    • #Anti-aliasing
    • #HTML Output
  • 1 year ago
  • 11
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

File Browser keyboard shortcuts

A big thanks to macromates for this list of key commands for use when the file browser is in focus:

⌘⇡   Go to Enclosing Folder
⌘⇣ Open
⌘⇠ Go Back
⌘⇢ Go Forward
↩ Rename
␣ QuickLook
⇧⌘N New Folder
⌥⌘N New Tab
⌘D Duplicate
⌘⌫ Delete
⇧⌘C Go to Computer
⇧⌘H Go to Home
⇧⌘D Go to Desktop
⇧⌘G Go to Folder…
⇧⌘F Search Selected Folder
⌘C Copy Path
⌘O Open
⌘[ Go Back
⌘] Go Forward

As well as these mouse commands:

Single-click icon to open (or double click name).

Hold ⌥ when single-clicking a package (e.g. tmBundle) to descend into the package.

Hold ⌥ to “close other” if clicking a regular (text) file.

(Quicklook? Nice.)

    • #Key commands
    • #Shortcuts
    • #File browser
  • 1 year ago
  • 14
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

SmartFolders

You can access a “Smart Folder” from the top bar of the folder drawer by clicking on the purple folder with a gear on it. This folder gives you a view of ‘Uncommitted Changes’ and ‘Untracked Files’ in your project*.

smart folder on textmate

You can select files you want to commit using the Git bundle’s “Commit…” command (makes it easier if assign a shortcut to this menu item — maybe ⌘⌥⌃C — though you can use this tip to find one that doesn’t conflict).

You can also access a diff viewer from here which opens within textmate itself. Not ideal compared to GitX or Github, but for small commits it’s nice to not have to switch away from Textmate.

*This requires that you are using a source control system such as Git, Subversion or Mercurial, and that you have configure the proper path in .tm_properties.

    • #scm
    • #file browser
    • #git
    • #svn
    • #hg
    • #smart folder
    • #submission
  • 1 year ago
  • 20
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Git status in file browser

If you’ve configured your .tm_properties file to point to your installation of git, the file browser will display source control status icons on your files.

You can see this on the index.php and header.php files in the repo above, both of which have not-yet-committed changes, and are displaying small blue circle icons.

    • #SCM
    • #git
    • #File browser
    • #preferences
  • 1 year ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Logo

Textmate 2: The missing manual. Help us out by submitting any tips or tricks you come across!

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Submit
  • Mobile

Brought to you by Ned Schwarz..

Effector Theme by Pixel Union