News for hackers. Stuff that matters.
Re:Textmate 2 - Alpha this year by joelmichael on Monday September 26, 2011 @07:25AM (#3038382)
TextMate still has the best find-in-project functionality. Sublime Text 2 doesn't compare if you want to rename something throughout the app.

As for vim, it's nice when you're in a console, but I don't think it's as pleasant to use.

The delay with TextMate has been rather absurd, though. Version 1 goes largely unmaintained (still no full-screen functionality for Lion). The last update was in November of 2010. Before then it was November of 2009.

Re:Textmate 2 - Alpha this year by lobster_johnson on Monday September 26, 2011 @09:03AM (#3038649)
> TextMate still has the best find-in-project functionality

You must not have very big projects. TM's find function totally breaks down (spinning beach ball hell) on anything except really small projects.

Fortunately, the solution is AckMate (https://github.com/protocool/ackmate), which integrates seamlessly with TextMate and has a very clean interface; and it's lightning fast.

AckMate is really the only thing I miss in Sublime.

Re:Textmate 2 - Alpha this year by oinksoft on Monday September 26, 2011 @09:35AM (#3038824)
Similarly, Ack.vim is indispensable, providing errorlist integration with `ack`. Between that and your project plugin of choice, or just a terminal tab per project, you get something much nicer than anything in TextMate (because of errorlist workflow).
Re:Textmate 2 - Alpha this year by mark_story on Monday September 26, 2011 @04:00PM (#3040497)
I found that Ack.vim wasn't as essential as AckMate was. I changed my grepprg and grepformat and was able to get ack working with vim when I called :grep
Re:Textmate 2 - Alpha this year by joelmichael on Monday September 26, 2011 @02:32PM (#3040140)
I used to have that problem until I excluded log files, images, and other extraneous files from my project. Find in project now works relatively quickly.

I don't consider my app "really small", or the prior two I worked on using TextMate.

Re:Textmate 2 - Alpha this year by lobster_johnson on Monday September 26, 2011 @02:49PM (#3040202)
Yes, you have to exclude a whole lot. You also need to exclude binary files (like database dumps and tarballs) that you have lying around in your project directory, because once TM accesses those files it will read everything into memory, and it seems particularly bad at doing that.

Another problem with TM's built-in "find in project" is that it's not incremental. AckMate will list matches as it finds them, whereas TM will only return results once it's read everything.

Re:Textmate 2 - Alpha this year by dave1010uk on Tuesday September 27, 2011 @08:09AM (#3042896)
Please vote for the "Search & replace across projects/directories" feature suggestion for Sublime Text 2 (http://sublimetext.userecho.com/topic/21604-search-replace-a...) if you miss the feature. The developer(s) seem to be implementing lots of new features from while ST2 is in beta and a global replace would be great.
Re:Textmate 2 - Alpha this year by jonknee on Monday September 26, 2011 @09:37AM (#3038831)
I think the OP meant the Command-T functionality of switching between files. I have never heard anyone praise TextMate's project wide search, which as you mention is beach ball city.
Re:Textmate 2 - Alpha this year by wycats on Monday September 26, 2011 @10:12AM (#3038985)
Both PeepOpen and CommandT for vim offer superior file switching functionality (by fixing a problem with Textmate's version whereby it does not take the directory into consideration, which can really help narrow down a search).
Re:Textmate 2 - Alpha this year by lobster_johnson on Monday September 26, 2011 @09:47AM (#3038865)
The OP specifically mentioned find-in-project in the context of renaming files, and I can't see how that's related to the cmd-T command.
Re:Textmate 2 - Alpha this year by bufo on Monday September 26, 2011 @01:58PM (#3040002)
Try peepopen (http://peepcode.com/products/peepopen), it is text editor-agnostic.
Re:Textmate 2 - Alpha this year by lobster_johnson on Monday September 26, 2011 @02:09PM (#3040052)
I bought Peepopen way back when it first came out, but it was incredibly slow even on small projects with just a couple of thousands of files.

Anyway, Peepopen doesn't actually support Sublime. It needs editor support, which means someone has to write a plugin.

Re:Textmate 2 - Alpha this year by knowtheory on Monday September 26, 2011 @10:46AM (#3039170)
My experience with ackmate has entirely not been seamless.

While it is vastly preferable to the default cmd+shift+s (cause it doesn't beachball TM for 30 min), you can only Ack in project when you have a file open, and the result list definitely does not play nice with many of the color schemes available for TM.

Still, a lot better than find in project.

Re:Textmate 2 - Alpha this year by emehrkay on Monday September 26, 2011 @09:27AM (#3038779)
I love AckMate, but when I moved away from DreamWeaver, I lost the ability to search the whole project OR limit it to a directory in the project. That was damn handy
Re:Textmate 2 - Alpha this year by bjornsteffanson on Monday September 26, 2011 @12:06PM (#3039515)
You can limit a search to a directory with AckMate. Just select the directory in the Project Drawer and press Command while searching. You should see the Search button text change to 'In Selection'.
Re:Textmate 2 - Alpha this year by emehrkay on Monday September 26, 2011 @01:10PM (#3039793)
You just changed my life
Re:Textmate 2 - Alpha this year by breck on Monday September 26, 2011 @11:31AM (#3039368)
Thank you so much! I've got 2 big projects I've been working on in TM and had to switch to the command line to do fast find in projects. Much better.
Re:Textmate 2 - Alpha this year by biturd on Monday September 26, 2011 @11:46PM (#3041773)
Have just one JS file of any size, FaceBook, JQ, etc, especially minified on one lines and yo are asking for trouble, and certainly no speed.
Re:Textmate 2 - Alpha this year by gaoshan on Monday September 26, 2011 @06:18PM (#3040971)
ack is a really great search tool in general (and one that I use constantly now that I have "discovered" it)... I had no idea there was an integration of it into TM. I'll def. be taking a look at this, thanks!
Re:Textmate 2 - Alpha this year by podperson on Monday September 26, 2011 @10:16AM (#3039011)
BBEdit's find functionality is _much_ better and doesn't require you to set up annoying project files. (Needless to say, BBedit is also well-supported.)

Textmate was an inspiring piece of software when it first came out, but it barely runs under Lion (I fired it up to verify that find-in-project was as I remember, and it crashed on the way out), and still has one-character-at-a-time undo/redo which is unbearable.

Re:Textmate 2 - Alpha this year by butterfi on Monday September 26, 2011 @11:41AM (#3039401)
BB Edit's multi-file search is awesome, and can also be used to search large (1 GB+) files as well.
Re:Textmate 2 - Alpha this year by patrickg on Monday September 26, 2011 @03:56PM (#3040476)
I don't agree with "but it barely runs under Lion" - I use it daily for several hours and it almost never crashes.
Re:Textmate 2 - Alpha this year by sigzero on Tuesday September 27, 2011 @07:34AM (#3042812)
I use it all the time too (on Lion) and haven't had any crashes either.
Re:Textmate 2 - Alpha this year by kennystone on Monday September 26, 2011 @08:50AM (#3038597)
Learning curve for vim/emacs will always be too steep for most users, regardless of their merits. Big Market for TextMate, and it's pretty darn good at being pretty good.
Re:Textmate 2 - Alpha this year by burgerbrain on Monday September 26, 2011 @04:50PM (#3040685)
Are "general users" using textmate though? Vim and Emacs are both primarily programmers' editors, and my impression is that Textmate is as well.
Re:Textmate 2 - Alpha this year by meatmanek on Monday September 26, 2011 @11:54PM (#3041793)
Still, Textmate (and ST2 and BBEdit) is nice in that you don't have to go google "Quit Textmate" or read a man page or ask someone on IRC to figure out how to quit the damn program. Other features, like Filter Through Command, are easily discoverable via the menu system. Likewise, configuration options are easily discoverable through the Preferences window.

I may be a programmer, but that doesn't mean I want to learn a new language just to use my text editor.

Also, I happen to like my scroll wheel.

Re:Textmate 2 - Alpha this year by burgerbrain on Tuesday September 27, 2011 @12:38AM (#3041906)
Eh, I can't really recall the last time I encountered a programmer outside of college that didn't use either Vim or Emacs (and I'm pretty sure all the Emacs guys know how to use Vim).

"Also, I happen to like my scroll wheel."

Scrollwheels work great in Vim? I have mine set up to do kinetic scrolling even.. Nice to have over ssh.

Edit: Also yeah, gvim has menus.

Re:Textmate 2 - Alpha this year by seanyseanysean on Tuesday September 27, 2011 @06:28AM (#3042683)
Due to the limits of ncurses you can't scroll over a page without moving the cursor though which is really annoying. :(
Re:Textmate 2 - Alpha this year by burgerbrain on Tuesday September 27, 2011 @11:52AM (#3043808)
That doesn't seem to be true at all. I scroll in vim on my thinkpad all the time, the setup of which makes it very simple to scroll (I have that mapped to my entire touchpad) without moving the cursor (which is only done with the clit-mouse).
Re:Textmate 2 - Alpha this year by derleth on Tuesday September 27, 2011 @01:31AM (#3042014)
> Also, I happen to like my scroll wheel.

Use a modern version of emacs.

> I may be a programmer, but that doesn't mean I want to learn a new language just to use my text editor.

You don't need to program emacs to use it to edit source code and interoperate with revision control and so on. A lot of other emacs hackers have done all that for you, in many cases upwards of 20 years ago.

> Likewise, configuration options are easily discoverable through the Preferences window.

Believe it or not, modern emacs has this. It's accessible the menu at the top of the window (or, in Mac-land, screen), even.

> Other features, like Filter Through Command, are easily discoverable via the menu system.

Again, odd as it may seem, emacs has this as well these days.

> you don't have to go google "Quit Textmate"

And emacs can be quit through the menu. You know, the one at the top of the window or screen. Unless you started it in a terminal window or some other text-only context, in which case you damned well got what you asked for.

Re:Textmate 2 - Alpha this year by Groxx on Monday September 26, 2011 @04:17PM (#3040567)
Yeah, the only problem is that it has a nasty habit of devouring your RAM when used. On my job's Rails project, doing a single find-in-project results in 1.6GB RAM bloat. It never goes higher than that, but it's unacceptable. AND it's not performed in a separate thread! Though it's hard to beat its command-T behavior (and yes, Vim plugin - TM has had it for years).

As to unmaintained, there are bugfixes occasionally, but yes, no feature changes for quite a while. But that still makes it by far one of the most solid applications I've ever used - everything but my terminal application crashes more often than TextMate.

All that said, ack/grep all the way. Faster, with/without context, and doesn't leave bloat around.

Re:Textmate 2 - Alpha this year by jinushaun on Monday September 26, 2011 @10:21AM (#3039039)
I still find the search and replace functionality in ST2 awkward, especially across multiple files. It's a solved problem in many other text editors, so I wonder why ST decided to implement it that way. I hope it's just a temporary beta thing.
Re:Textmate 2 - Alpha this year by petenixey on Monday September 26, 2011 @06:26PM (#3040989)
I'm sure you're already doing this but you can massively improve the performance of TextMate's search by filtering out unnecessary files like log files - they really will slow it down
Re:Textmate 2 - Alpha this year by evlapix on Monday September 26, 2011 @11:27AM (#3039356)
One way you could streamline your rename/relocate process in Sublime Text is to install DTerm. It's basically an in program keyboard shortcut that gives you a command line interface for the current directory that your program is accessing.

So.. if I'm working with index.html and need it to be index.php, all I need to do is: cmd+ctrl+return, then: mv index.html index.php

Re:Textmate 2 - Alpha this year by trebor on Monday September 26, 2011 @08:12AM (#3038501)
I think it depends on if you're on "edge"/"nightly" builds. There was an update ~3 months ago, I don't remember what for.
Re:Textmate 2 - Alpha this year by Oompa on Monday September 26, 2011 @11:51AM (#3039440)
What? TextMate has great file finding functionality, but the find in project is certainly a weak point… It grinds to a hault on HDDs with large projects. It's alright with an SSD, but I wouldn't say it any better than using vim's Ack plugin.
Re:Textmate 2 - Alpha this year by acangiano on Monday September 26, 2011 @07:55AM (#3038451)
I'm not sure if I installed a plugin for it at some point, but I do have full screen support in Lion.
Re:Textmate 2 - Alpha this year by sudont on Monday September 26, 2011 @08:01AM (#3038468)
Re:Textmate 2 - Alpha this year by augustl on Monday September 26, 2011 @10:20AM (#3039034)
I use grep in a terminal and love it. My individual projects tend to be pretty small though.