Being in love with Sublime Text 2

For years I was a heavy user of Coda, the web development IDE by Panic. I did all my HTML, CSS and JavaScript work with it and was very happy.

Then I suffered from performance issues with big CSS files and some other minor things bugged me. I knew that Panic was working on Coda 2, but there was no public release schedule. So I tried Espresso – again. But it couldn’t win me over – again. Then Sublime Text 2 entered my field of view. I tried it for a few weeks I guess and then Coda 2 came out. I liked ST2 but I jumped ship to the new version of my beloved Coda. Until a week or so I used it and liked it – but didn’t love it like I loved Coda years ago. So I once again turned to Sublime Text 2. And here I am – in love with this text editor. So let me tell you why.

After using Coda for so long I noticed that I don’t use most of the features if offers. Especially the new Coda 2. It can be great, but it’s not the right approach for me anymore.

I like simple apps. I like it if they do what they’re supposed to do very well, even if it’s not much. Sublime Text 2 has very basic functionality when you install it. It’s just a text editor, not a complete IDE like Coda or Espresso or Dreamweaver. This is new to me, but it seems to suit me very well.

Like I said, ST2 is very simple. You can create projects which basically are a bunch of folders that you can open at once and it saves the currently open files. That’s basically it. No FTP client, no MySQL client, no git, no SVN, and so on.

What is great about ST2 is, that you can expand it in almost every direction you want to. There are a ton of addons that you can install and somehow build the text editor that suits you best.

At the moment I only installed the package manager, LESS and SCSS Syntax Highlighting and the Soda Theme.
With ST2 you are not only able to choose your favorite Syntax Highlighting, you can also install your own UI theme. That’s really great. I have a combo for a light ST2 and one for a dark ST2, between which I switch regularly.

There are basically three things that I love and use the hell out of them every day:

First

You can create tab groups. So you can view several files at once. I mostly use two tab groups besides each other. In the left one I almost always have my main CSS file open and on the right I can edit the corresponding HTML. You can also open one file in both groups, this comes in handy from time to time.
If you need more than two tab groups, go ahead, create more. It’s completely up to you.

Second

I love Alfred, the application launcher that can also do so much more. I’m kind of a heavy keyboard user, so I love it to just hit CMD + SPACE and start typing – a name of an app I want to open or switch to, start a goole search or whatever. It’s a workflow I’m used to and which I really love.
Sublime Text 2 offers exactly that. Just hit CMD + P and open up a little input field. Just start typing a file name, hit enter and open it. It’s so simple and fast. I just love it. It made me hide the sidebar which normally shows all of your project files. I simply don’t need it anymore and thus gain much more space for my actual coding.

You can also hit CMD + SHIFT + P to open up the command palette which offers you a bunch of commands. (Thanks Captain Obvious!)

Third

The search is very fast and very powerful. It took me a day to getting used to it’s behavior because it’s different from what I knew, but it’s really really great.

I’m sure there are a lot more great features of which I don’t know at the moment and I’m looking forward to discover them in the future.

What was a little bit odd for me at first was that there is no real preference pane. You can adjust some things through the menu bar, but if you really want to set something as a standard, you’ve to do it in a simple JSON file. Now I’m used to it and think it’s great. There are a lot of possible options and a lot of people who share there preferences. It’s fun to look at how others have customized their editor and to get inspired. You can find my current preferences here as a gist. I always update it when I change something.

I’m a little sad that I’ve to turn my back on Coda and Panic, but I think I’ll use their FTP client Transmit a lot more in the future. So that should be fine.

For now I’ve found the perfect text editor for me and it’s Sublime Text 2.

Mac Text Editors and Navigation

Brent Simmons:

Here’s how Go to Line should work to make it usable for text navigation: 1. The small window that appears where you type the line number needs to be a window that opens without animation. It can’t be a sheet. It can’t be a big window. It can’t have it’s own custom animation. It has to be super-fast. 2. The insertion point must then be placed at the beginning of the gone-to line. The entire line must not be selected. (That’s a recipe for losing text if you’re an impatient and fast typist. Yes, there’s undo, but first there’s me saying ten hulk-smashes before I’m calm enough to continue.) 3. It should be obvious that it should also display line numbers (optionally, for people who want it). It seems pretty simple.

Brent führt noch einige Texteditoren und ihre Fehler auf. Unter anderem Espresso, das eine Animation nach Eingabe der Zeilennummer hat. Das machte mich auch schon total verrückt weil ich einfach nicht verstehe warum man das machen sollte. Coda (welches ich gerade doch wieder nutze) hingegen hat dort keine Animation, markiert nach Sprung in die Zeile allerdings auch die komplette Zeile.

Ãœber Web-Editoren

Jeder Webentwickler hat ja so seine Lieblingsapps, die er meist bis aufs Messer verteidigt, wenn er erstmal den richtigen Arbeitsbegleiter gefunden hat. Und es ist ja auch wirklich so, dass ein Editor ein Werkzeug ist mit dem wir Tag ein, Tag aus 8 Stunden oder sogar länger arbeiten. Man baut – so blöd es klingt – schon so eine Art Beziehung zu so einer App und deren Entwicklern auf. Man kennt nahezu alle Funktionen, Shortcuts, hat alles nach den eigenen Wünsche angepasst, vielleicht Addons installiert, Snippets angelegt, Sites eingerichtet und was weiß ich nicht noch alles.

Einfach gesagt: Man kann blind mit dem Programm umgehen, es fühlt sich richtig an und die Arbeit damit macht einfach Spaß. Da kann man sich schon mal persönlich angegriffen fühlen, wenn jemand schlecht über eben diese App spricht. Auch wenn das natürlich völliger Quatsch ist.

In meinem Fall habe ich eine solche Beziehung zu Coda aufgebaut. Ich mag die Einfachheit gespickt mit tollen Funktionen wie Sites oder SVN Source Control. Immer wieder entdecke ich kleine Funktionen, die ich noch nicht kannte und die Arbeit vereinfachen. Es ist nicht so aufgeblasen wie Dreamweaver, aber auch auch nicht so eingeschränkt wie Fraise oder Smultron. Es geht sogar soweit, dass ich das Icon gerne im Dock oder im App-Switcher sehe, einfach weil es hübsch ist. Und ganz abgesehen davon fühle ich mich mit den Machern, Panic, irgendwie verbunden. Schon mehrfach habe ich ihnen auf Twitter geschrieben und jedes mal kam sehr zeitnah eine Antwort, die mir geholfen hat. Auch auf Wünsche und Ideen für Coda 2 wurde immer reagiert. Das nenne ich Kundenbindung!

Eine App, die mit Coda in eine Kategorie fällt, ist Espresso. Gerade in Version zwei veröffentlicht, bietet Espresso ähnliche Features. An der einen Ecke mehr, an der anderen etwas weniger. Ich wurde mit Espresso nie so richtig warm, obwohl es eigentlich so ziemlich alles richtig macht. Version 2 sieht jetzt sogar noch besser aus und ist vorallem schneller als Coda 2. Die Geschwindigkeit ist nämich derzeit das größte Problem mit Coda. Es hat mit riesigen CSS-Dateien beim Öffnen manchmal ganz schön zu knapsen.

An Coda 2 wird gearbeitet. Soviel ist sicher. Leider ist noch keinerlei Releasedatum in Sicht. Aber ich hoffe sehr darauf, dass die Jungs von Panic Anfang nächsten Jahres mit der neuen Version um die Ecke kommen und Espresso 2 dann, zumindest für mich, in die Tasche stecken.

Ich habe einige Ideen für Coda 2 und werde die wahrscheinlich in naher Zukunft mal hier niederschreiben. Bis dahin, happy coding!

Vielleicht gebe ich trotz allem Espresso 2 mal für eine Woche die Chance zu zeigen, was es kann… aber pssst.