This is much better than seeing that I can't save, copy the whole file to the clipboard, reopen it with 'sudo vim' and then pasting it (no. Not even 'sudo subl' works)
One of the main reasons I use an editor like TM or S2 for is system administration which often requires root. For development I'm usually using the JetBrains IDE with the respective plugins.
http://stackoverflow.com/questions/95072/what-are-your-favor...
* http://www.emacswiki.org/emacs/SudoSave
* http://stackoverflow.com/questions/95631/open-a-file-with-su...
(I jest. Vim is an awesome editor and I recommend it to all my friends using Eclipse, Visual Studio, and XCode. But true enlightenment lies in Emacs, where vim is only another mode called evil: http://emacswiki.org/emacs/Evil)
C-x C-f /sudo:root@localhost:/etc/config_file
Other than vim off course ;-)
Besides, I knew about the vi trick you referenced, but it often screws up something with the terminal, causing all sorts of issues. Admittedly I didn't try it again since moving to iTerm (I'm suspecting a terminal.app issue), mainly because I have a working solution (TextMate).
It's just that weren't it not for this sudo-feature, I would really prefer sublime (I bought both, by the way, in order to support their respective authors)
"Those who fail to understand Emacs/vi are condemned to reinvent it"
Sublime Text guy, if you're reading, please fix it. I will do a little dance in front of my desk the day I see that in the changelog.
Oh yeah and the duplicate saving of renamed files thing.
Having said that, it is my editor of choice, but I'm not happy about those two points.
Further evidence for my theory that complaining is the root of all human progress: Jon pushed a new beta today that fixes this. (Build 2147)
If my post came over as bitchy, I apologize. I really just wanted to tell the world that there's one missing feature preventing me from using Sublime more - also in the hope of maybe getting a good hint on how to solve it.
I'm glad you did bring it up in public, and glad the issue was fixed, since I use ST a lot but this was a rather glaring omission for a Mac text editor.
*OSX: Prompting for elevated privileges when saving protected files*Actually, I always found Textmate the best editor for reading and small edits. When I do huge work on a file, I switch to Vim by habit.
Having tried Textmate 2, I will continue to do so - its still very snappy, especially now that it can handle remote folders fine.
Cure for ST2 ugliness: https://github.com/buymeasoda/soda-theme
Initial impression with ST2 is like playing jigsaw puzzles, it's a mix of mouse clicks and some weird text editing until you're comfortable with Cmd+Shift+P. I remembered my experience trying to adjust font size went on like this: Open preferences, hey wait what is default global settings? user file settings? Hm, let's try this one... wait I have to edit settings file? I better use Emacs then! Where I can find all available configuration options? Google search? Oops, that's for Sublime Text 1. ARGH!
Even though I do enjoy using it now, it still feel like playing jigsaw puzzles but with majority of pieces in its place. (Like recently: wait, ST2 can do split screens? Hmm, Cmd+Shift+P split... nothing? Let's try Google... none tell me how to enable it. 20 minutes later Ah, it's in the View/Layout!) I can see the whole picture now, just missing a little bits here and there.
Another issue with ST2 is that, like you mentioned, for whatever reason, it's very hard to find answers to your questions via Google. You always either end up at some release notes that tell you the feature you want exists, but not how to use it, or at some forum posting from 200 years ago that's wildly out of date, and full of the usual wildly-stupid comments one finds in most internet forums. There are number of features that I now use daily that I only found out about through word-of-mouth. (To be fair, this last part is probably true for many people with many editors: "Oh, you can do $x in $EDITOR? Show me how.")
Personally I'm getting a bit tired of reading about how people think that TextMate is done and how we should move on. TextMate 1.5 is still my text editor of choice, it simply fit how I work. Honestly I would be happy if TextMate 1.5 is just maintained as is.
There's a lot of complaining about TextMate which I simply don't understand. Split screen editing, really, you care about that? I just open two windows. More frequent update? Why? Do you really need a new feature in your text editor every week? "The new icon is ugly"... No, it's cute, but also not important.
The main thing that Allan did wrong was starting to talk about TextMate 2 to early. It would have been much better to have said nothing and just release an alpha or beta when he was ready. People a fascinated by new versions for some reason, they apparently want version two, just because two is higher than one. Perhaps if Allan hadn't said anything people wouldn't feel to entitled to a new version (wrongly entitled in my opinion).
Also, let's try to remember that it is actually a pretty complex piece of software that a lot of us will be getting for free.
As for Sublime Text, as a replacement for TextMate, yeah, I pick Vim a head of Sublime any day. Then again I would pick Idle a head of Sublime Text.
For example opening multiple windows works alright until I want to Find in Project at which point I have to switch to the project window. A minor annoyance but day in day out that gets old fast.
Hell yes I care.
"""More frequent update? Why? Do you really need a new feature in your text editor every week?"""
No, I just need tons of features 1.5.x lacks. I could care less if they are delivered all in one release of a couple of them in frequent updates, but as we've seen "infrequent releases" doesn't work for Alan.
Seriously though, I agree that some incremental fixes to Textmate 1.5 might have been a saner option than a full rewrite. I for one did not wait and moved on in the meantime.
I repeat, what's the complaint?
TextMate2 is a bit rough, yes, but I don't expect better from a prerelease. As it is, it's more than enough to offer me hope that it'll be finished and that it'll be a good product.
Also, my Textmate regularly crashed whenever I tried to open something larger than a meg or two.
That said its not perfect and I do miss the old vim from time to time.
The reason Python is used for the API is because the editor is cross-platform, and Python is the best choice for such a situation. If you want to run other scripts or programs, you can use the python subprocess module.
If there is something you are looking to tweak, http://sublimetext.info/docs/en/ has a lot of good info, and the forum (http://www.sublimetext.com/forum/) tends to be a pretty good place to ask questions.
Probably a multi-ms delay due to regexes for syntax highlighting.
And TextMate is not designed like a standard OS X app, either.
I always liked the file browser column in TM better.
> I've yet to figure out how to open a project directory from the GUI, too.
What's wrong with File -> Open Folder or Project -> Open Project?
And it's not like "feels like a Mac app" should be a top requirement for a programmer's editor --else we wouldn't use Emacs, Vim and the like.
The only missing thing would be Eclipse backed autocomplete and navigation. The first editor that get it seamless will be the one I'll use the most.
I know there is eclim project, but it feels slow and cumbersome to use.