textmate2 is pretty good also

97 views
Skip to first unread message

Stephen Bannasch

unread,
Feb 28, 2012, 2:17:24 AM2/28/12
to educ...@googlegroups.com
I've been using textmate2 recently (a free upgrade from TM1) and it has some nice improvements.

TextMate Blog: http://blog.macromates.com/

You can get the alpha version from December here and then turn on auto-updating in the Preferences.

http://blog.macromates.com/2011/textmate-2-0-alpha/

TM1 and TM2 seem to coexist fine. If you have TM1 and the TM1 'mate' program installed renamed 'mate' to 'mate1' before installing the mate program for TM2.

The Find in Project command is much faster and more powerful -- you can easily add file-pattern filters to limit the files/folder paths searched.

There's a whole bunch of interesting features based on being able to create multiple carets. This works with and is a powerful extensions of rectangular selection (now done with option-drag).

Check out this blog post: http://blog.macromates.com/2011/multiple-carets/

Here's a short screencast (3:26) I created showing a number of uses of multiple cursors: http://www.youtube.com/watch?v=e68pqDgwkMw

You can manage/update bundles in the TM2 Preferences now.

There's an rmate app you can stick on a remote server and use it to remotely open TM2 on your computer (via SSH) to edit the file on the server: http://blog.macromates.com/2011/mate-and-rmate/

TM2 no longer has project files -- but the collection of files in the sidebar now was more functionality and is integrated moredeeply into the Finder: http://blog.macromates.com/2011/git-style-configuration/

Command completion is more powerful: http://blog.macromates.com/2012/clever-completion/

TM2 FAQ: http://wiki.macromates.com/FAQ/TextMate2

Replacing tabs-with-spaces and the reverse are now in the Source bundle.

Missing features from TM2 that I use
-------------------------------------------

Using command-option-F to Replace and Find Next doesn't work yet.

At 1:16 PM +0100 12/27/11, Allan Odgaard wrote:
>On 25 Dec 2011, at 22:11, joeyinbox wrote:
>
>> Is it possible to bring back "Replace & Find" and "Replace" buttons in the
>> search window of TextMate 2.0? [Š]
>
>There will be a Replace action at some point.
>
>For now you can put the replace string on the regular clipboard and alternate between commnd-G (Find Next) and command-Y (replace match) - only caveat is that it won't work when the replace string is a format strings.


----------------

A list of files piped to mate don't open as a searchable collection.

Example: I've got a big project and want to either easily browse just a subset of files or I'm doing some complicated refactoring with regexes etc and dealing with just a subset would make my work much less error prone.

I use the grep replacement ack to find files meeting some criteria and pipe this list with xargs to the mate command. The filesappear in mate in the project drawer and are easily browsable and searchable as a set.

In TM1 the files appear in the project drawer and the project search for cursor gives me all the locations in this collection of files.

However in TM2 the files do NOT appear in the project drawer (they are instead all opened as separate tabbed windows) and are not searchable as a collection.

See Allan Odgaard's response here: http://lists.macromates.com/textmate/2012-February/034566.html

Turadg Aleahmad

unread,
Feb 29, 2012, 1:59:12 PM2/29/12
to educ...@googlegroups.com
I've been using TM2 as my goto editor a couple months. It's got some alpha kinks, but also some great features and it's reliable enough for regular use.

Favorite new features:
1) Project preferences in a human-editable .tm_properties file in any directory.
2) Project preferences to ignore certain files or extensions.
3) Find in Project no longer blocks.


My two quibbles:
1) Find-replace doesn't update the replace string with the Replace field of the dialog until you close the dialog.
2) There's still no way to automatically reveal the currently focused file in the project browser.





--
You received this message because you are subscribed to the Google Groups "Educoder" group.
To post to this group, send email to educ...@googlegroups.com.
To unsubscribe from this group, send email to educoder+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/educoder?hl=en.


Matt Zukowski

unread,
Feb 29, 2012, 2:01:45 PM2/29/12
to educ...@googlegroups.com
Gotta give it a try but I gotta say my love affair with Sublime is getting serious... Just figured out the other day that it can use tmbundles as plugins.

Stian Håklev

unread,
Feb 29, 2012, 2:16:32 PM2/29/12
to educ...@googlegroups.com
Yeah, Sublime is great, love the update frequency, and the split screens. Even fun playing with vim mode ;) Wish it was scriptable in Ruby though (I should just learn Python, I know, but I'm lazy)... 

There are some awesome plugins, like the reveal in GitHub - select a few lines in a git tracked project, hit Cmd+\, and it opens that file in the github website, with the same lines selected! Magic... Or the integrated build system, or even just the fact that all the system commands are exposed through a fuzzy find thing - I always found TextMate too mouse-focused. (I know everything has shortcuts, but it's much easier to hit Shift+Cmd+P, type git, and see a list of git actions, than remember ten new shortcuts just for git...

Stian
-- 
http://reganmian.net/blog -- Random Stuff that Matters

Noah Paessel

unread,
Feb 29, 2012, 2:21:03 PM2/29/12
to educ...@googlegroups.com
On Wed, Feb 29, 2012 at 2:01 PM, Matt Zukowski <ma...@roughest.net> wrote:
>
> Gotta give it a try but I gotta say my love affair with Sublime is getting serious... Just figured out the other day that it can use tmbundles as plugins.

Ditto.  I haven't cracked open vim in about a week.  People should
give it a shot.
http://www.sublimetext.com/blog/articles/sublime-text-2-build-2181

At first I thought the minimap was a silly gimmick, but I have grown
to love it. But my favorite features are highlight everywhere, and
"goto anything" (⌘p), and "build on save". This means 'coffee -c' on
⌘s.  Cursor jumps to errors with a minor tweek to the build script:
http://bit.ly/w7MWsl

- noah

Matt Zukowski

unread,
Feb 29, 2012, 2:21:19 PM2/29/12
to educ...@googlegroups.com
And don't forget fact that I can use it on my Linux and Windows machines too! This is pretty big for us at ENCORE, since not everyone is on a Mac. Nice to all be on the same dev editor.

Colin McCann

unread,
Feb 29, 2012, 2:24:10 PM2/29/12
to educ...@googlegroups.com
"select a few lines in a git tracked project, hit Cmd+\, and it opens that file in the github website, with the same lines selected!"
V cool Stian, thanks
--
Colin

Armin Krauss

unread,
Feb 29, 2012, 2:54:56 PM2/29/12
to educ...@googlegroups.com
Yeah the cross platform is a big seller and we will buy some Sublime licenses here
at OISE soon.

Only feature I miss from TextMate is the ability to set "stars" on lines and jump between
these 'bookmarks' by hitting F2. But the mini map helps to not miss this feature too much.

Armin

Stian Håklev

unread,
Feb 29, 2012, 2:59:00 PM2/29/12
to educ...@googlegroups.com
Try Cmd+F2 to set star, and F2 to jump :) It's in the latest dev preview :)

Stian

Armin Krauss

unread,
Feb 29, 2012, 3:03:59 PM2/29/12
to educ...@googlegroups.com
YEEEEESSSSSSS!!!!

Stian rulez and I am super happy. Have all I need here (except maybe direct editing via SFTP,
but can do that via SSH tunnel or TextWrangler)

Thanks a bunch 

Armin

gbby

unread,
Mar 1, 2012, 12:01:58 AM3/1/12
to educ...@googlegroups.com
Armin,

I looked for an SFTP plugin after we had that conversation today. There are two, it turns out:
https://github.com/SublimeText/Mote
http://wbond.net/sublime_packages/sftp
Reply all
Reply to author
Forward
0 new messages