News for hackers. Stuff that matters.
Re:Textmate2 Goes Open Source by emehrkay on Thursday August 09, 2012 @11:41AM (#4361585)
I've been using Textmate 2 for the past week or so and I still prefer 1 + missing drawer. For me, the only thing Textmate 1 is missing are split views (something 2 is missing as well).

I wonder if there is still enough interest in the app where people will contribute all of the community's desired changes -- I hope there is.

Am I one of the only Textmate users who feel that Sublime isn't the right "upgrade"? I much prefer Chocolat or Vico as they feel more like native OS X applications.

Re:Textmate2 Goes Open Source by EzGraphs on Thursday August 09, 2012 @01:40PM (#4362199)
+1 for using 1 and missing drawer. Never upgraded to 2 because of the bad press, and because 1.5 is good enough. It chokes on large files - and long lines, so I use vi instead for these.

I really like a few features:

* View your whole project from the root directory: mate .

* Open a bunch of files in arbitrary locations at once: find . -name 'something.' | xargs mate

* Write a script and run it using command-R

* Banging out html using tab complete

* Compared to any IDE it is ridiculously fast.

* I wrote a bundle (for Oracle Databases) that I used for awhile.

Kind of cool stuff.... might be available in other editors but I found 'em for the first time in TM 1.5.

Re:Textmate2 Goes Open Source by emehrkay on Thursday August 09, 2012 @01:44PM (#4362222)
Drag a bunch of random/loosely associated files to the icon == new project.

I forgot to mention ackmate and the extension that disable project refreshing when connected to a network share

Re:Textmate2 Goes Open Source by ryanisinallofus on Thursday August 09, 2012 @01:14PM (#4362059)
ST2 is native enough for me and cross-platform should be on the list of every programmer's requirements for a text editor.

I use Vim on OS X right now and I like it but used ST2 just yesterday (odd timing). I agree with others that it is basically the TM2 we were waiting for.

Re:Textmate2 Goes Open Source by zekel on Thursday August 09, 2012 @04:33PM (#4363075)
> ST2 is native enough for me and cross-platform should be on the list of every programmer's requirements for a text editor.

I used to feel this way. I worked really hard to make all my configs and editors act the same across OS X and a few unix platforms. Then one day I woke up and decided I just wanted to work with the best editor on the best platform. (Both personal, subjective opinions, of course.) And that choice has worked out great for me.

When I was first looking at Sublime Text and I saw it as a disadvantage when I noticed they had Windows version. I don't mean to come across as smug, I just mean that I fundamentally feel that OS X is a lot better than Windows. (A personal opinion.) My point is that I need to be philosophically aligned with my editor's developer. And if they have chosen to support Windows, they could have spent that time pushing the OS X app forward, which doesn't align with my position. I want the best editor possible, not the best editor on every platform.

The other way I look at it is to applaud their ambition and results with creating a great cross platform editor. I think cross platform software is incredibly important, but I would paradoxically prefer my editor was not. In other words, I'm glad that ST exists, but I don't it's for me.

Re:Textmate2 Goes Open Source by tterrace on Thursday August 09, 2012 @05:46PM (#4363434)
> My point is that I need to be philosophically aligned with my editor's developer.

This is taking things a bit too far, I think. If you're a one platform kind of person the most important thing should be "How well does it work on (my platform)?".

Re:Textmate2 Goes Open Source by zekel on Thursday August 09, 2012 @08:17PM (#4364125)
You're right, that is absolutely the most important thing. But as we've seen with TM, the way the project is run is really important too. It's a totally self-centered sentiment to say I wish my editor development to be exclusive to my platform, but it would certainly result in a better app for me to use.

Luckily my preferences have nothing to do with the outcome, much like the weather.

Re:Textmate2 Goes Open Source by antihero on Thursday August 09, 2012 @09:09PM (#4364283)
Well, depending on preference and opinion, a Linux desktop can arguably be better than OSX for development. I applaud that they have a Linux version.
Re:Textmate2 Goes Open Source by zekel on Friday August 10, 2012 @10:59AM (#4366440)
I thought about this a little more Considering the amount of attention that specific software licenses get with regards to choosing software, I think it's not so uncommon to want to be philosophically in line with your app of hooves developer.
Re:Textmate2 Goes Open Source by ryanisinallofus on Friday August 10, 2012 @02:38AM (#4365186)
The fact that they have a windows version is nice, but when I say cross platform I mostly mean Mac/Linux. It's one of the main reasons I chose vim in the first place. Mac/Linux/Windows GUI/Terminal. And not to start a flame war: OS X isn't getting any better for developers. It's ok. It's just not their main focus. Lucky for everyone Linux is rad and getting better all the time. Now if only there was a cross platform Fireworks like program I could switch for good...

And while it's unlikely: I may find myself in a position where I have to use Windows. I'll be glad not to need to learn a new editor I don't want to. Or maybe I'm away from my Macbook and I want to code? We aren't all complete masters of our own destiny like DHH. I like to be prepared. :)

Re:Textmate2 Goes Open Source by eblume on Thursday August 09, 2012 @02:50PM (#4362583)
If you haven't heard of it, ST2 has something called "Vintage Mode" which adopts a fairly large subset of the Vi/m commands. It will completely change the command set of ST2 and gets close enough to Vi for most of my needs. Notably absent is the search/replace syntax of vim, but ST2's works well enough I suppose.
Re:Textmate2 Goes Open Source by jjjjjosh on Thursday August 09, 2012 @03:55PM (#4362904)
The VintageEx extension for Sublime includes vim-style search and replace, among many other things.
Re:Textmate2 Goes Open Source by eblume on Thursday August 09, 2012 @04:35PM (#4363088)
Excellent - Thanks!
Re:Textmate2 Goes Open Source by robmil on Thursday August 09, 2012 @04:59PM (#4363199)
Vintage mode is admittedly getting more complete every day, but as a regular Vim user the absences that exist are often a jolting distraction — attempting to use some command that doesn't exist jerks you out of your flow and it feels so inefficient to then have to remember the Sublime way of doing things.

I find it more annoying than the lack of, say, Cmd + T in MacVim, so I've found myself spending more and more time using that — even after a concerted effort to use SublimeText for a while.

Re:Textmate2 Goes Open Source by haldean on Friday August 10, 2012 @10:04AM (#4366188)
This is the biggest problem with learning vim. I was an Emacs user for ages, and I could use other text editors fine. The "Emacs mode" in them usually just meant readline hotkeys: C-p and C-n for previous/next line, C-a and C-e for beginning and end of line, and C-k for delete line. These are the only real movement commands I used in Emacs, and they work in almost anything. Even nano has most of these.

But now my hands are wrecked. My fingers have minds of their own. My muscles have learned a subset of vim that does not seem to be a subset of any vim plugin maintainer's usage. I'll be in Vimperator or Eclipse vi-mode or Vintage and I'll hit cf" and nothing will happen, and I'll realize I'm completely lost. I lose my chain of thought and it takes me a non-negligible amount of time to realize that I'm going to have to hold down shift and use the arrow keys like some sort of Notepad user. I become irrationally angry and wish horrible torture upon the poor soul who wrote the (altogether pretty good) vim plugin I'm using, because who are they to not include EVERY SINGLE VERB AND NOUN that my fingers have painstakingly learned over the past few years. I slam my keyboard against the table, throw the mouse through the monitor, then roundhouse-kick the tower off the desk before I set fire to my desk every time a vim plugin is incomplete.

Vim has reduced me to a pathetic teary wreck every time I have to use a text editor that isn't vim.

I wrote this in vim.

Re:Textmate2 Goes Open Source by eblume on Thursday August 09, 2012 @07:25PM (#4363896)
Just in case you missed it, another replier mentioned an additional package, VintageEx. I just gave it a try and all of a sudden all the things I was still missing from vim are in ST2!

I recommend giving that a shot, but I do completely understand your reluctance. You're right, the absences are jarring!

Re:Textmate2 Goes Open Source by ryanisinallofus on Friday August 10, 2012 @02:41AM (#4365189)
I turned on Vintage mode within the first hour. Pretty nice! Funny how the single thing that turns so many off of vim initially becomes the thing you can't live without when checking out other editors.
Re:Textmate2 Goes Open Source by ketralnis on Friday August 10, 2012 @03:10PM (#4367703)
> cross-platform should be on the list of every programmer's requirements for a text editor

As a member of the set of "every programmer", I have to disagree with this. I develop on the same machine every day. I don't care if my editor is cross-platform. I just want a good editor. It being performant and feeling "nice" for my purposes is way more important to me than being able to use it on machines where I won't ever use it.

Re:Textmate2 Goes Open Source by jolohaga on Thursday August 09, 2012 @08:52PM (#4364224)
Why should a cross-platform editor be important? Any job I do these days allows me to work in my preferred system. The code is just ASCII and it can be shared easily.
Re:Textmate2 Goes Open Source by frou_dh on Thursday August 09, 2012 @12:00PM (#4361685)
I feel ST2 is healthily past "good enough" as a Mac application. For examples of punting on that responsibility completely, look at JetBrains stuff or MonoDevelop.
Re:Textmate2 Goes Open Source by Camillo on Thursday August 09, 2012 @02:16PM (#4362394)
I really want to like ST2, because it seems to have the fastest text engine of the current crop of editors; but as a Mac application, it's just barely better than Emacs.

1) The GUI is incomplete: look at the preferences, for instance. To change a setting, you have to open the defaults settings file, find the setting you want, copy it into a different file (user settings), and change it there. Actually, I take it back: it's worse than Emacs in this regard.

2) What GUI is there often works strangely. For example, if you open a folder you get both a sidebar and a tab bar. You can put files in the tab bar by double-clicking them, or you can browse the directory in the sidebar. But if you select a file in the sidebar which is not open in a tab, you end up with a tab bar with no selected tabs, which is quite jarring, since tab bars in all other applications always have one active tab. If you only have one tab visible, it looks like it's active even if in fact you have selected some other file in the sidebar (the fact that active and inactive tabs look very similar in the default theme does not help).

3) The default theme gives you a window that is a strange mix of light gray and dark gray, with no apparent logic. It looks like parts of two different applications got mashed together. I have yet to find a theme that looks satisfying.

Re:Textmate2 Goes Open Source by homosaur on Thursday August 09, 2012 @03:07PM (#4362673)
The fact that settings are in a text file that I can easily sync is a GOOD thing. I don't have to rely on some godawful third party service to sync settings, I can just export them to Dropbox or throw them on a Git repo. This is one of the many things people love about Vim too, that you can set up your editor in a minute instead of trawling through GUI menus.
Re:Textmate2 Goes Open Source by zekel on Thursday August 09, 2012 @04:39PM (#4363115)
While flat files are a good thing, that doesn't preclude having a good interface in your app that lets you edit them. Furthermore, that is not an unfair expectation for an app that wants to be considered a good Mac citizen.

The last bit is in response to the parent post by frou_dh:

  I feel ST2 is healthily past "good enough" as a Mac application.
Re:Textmate2 Goes Open Source by jasomill on Thursday August 09, 2012 @08:12PM (#4364099)
The difficulty here is to ensure said interface doesn't make trivial changes to the flat files. Emacs has this down. As a counterexample, Visual Studio 2010 stores its settings in an XML file that, after pretty-printing, is quite human-readable. But, formatting aside, VS tends to reorder elements in this file even when you don't change anything, making sensible source control unnecessarily difficult. The somewhat manual workaround is to store important settings in a well-formatted settings file and use this as what VS calls "team" settings, because the IDE doesn't write or rewrite team settings files; this is also a nice solution because you probably don't want to sync things like window sizes and positions between a desktop with a 27" monitor and an 11" MacBook Air, and team settings only override local settings when they're defined.
Re:Textmate2 Goes Open Source by tincholio on Thursday August 09, 2012 @05:10PM (#4363256)
> that doesn't preclude having a good interface in your app that lets you edit them.

I've never ued ST, but it being an text editor, you'd think that they would have _that_ down right, FFS

Re:Textmate2 Goes Open Source by celerity on Thursday August 09, 2012 @11:32PM (#4364748)
I 100% agree with this. I was able to easily sync my settings between Linux, Windows and OS X for ST2, and easily find options because they are all in ONE file (Ctrl+F -what I need-), esp. considering they are very well documented. Still not as good as Netbeans for PHP/HTML (especially since it's not free), but a good settings system.
Re:Textmate2 Goes Open Source by MikeKusold on Thursday August 09, 2012 @02:25PM (#4362438)
I have no issues with the settings. They are well documented and can easily be transferred from computer to computer. This is an editor targeted at developers, and as such I think we are capable of editing a config file.
Re:Textmate2 Goes Open Source by sergiotapia on Saturday August 11, 2012 @11:04AM (#4370222)
Regarding point 1, that's one of my favorite features. TIL Mac users actually want wizards and gizmos everywhere.
Re:Textmate2 Goes Open Source by inexplicable on Thursday August 09, 2012 @02:51PM (#4362585)
I second the other commenter here. I love the way settings are managed in ST2.
Re:Textmate2 Goes Open Source by shurane on Thursday August 09, 2012 @12:25PM (#4361801)
I wonder if there is still enough interest in the app where people will contribute all of the community's desired changes -- I hope there is.

I don't get what you mean by "if there is still enough interest". If you wanted a particular feature or change, couldn't you just fork Textmate and then implement it? That's the advantage of it going open-source. We are not at the mercy of some developers who don't think our requests are worthwhile. If I want something on top of my open-source editor of choice, I can just "get up to speed" [1] with the source and go ahead and implement what I want.

I do think we rely a little too much on other people to do things that we want for ourselves. If you really want a feature and no one else offers to do it, then you will have to pony up and do the legwork yourself. And that's a good thing.

[1] Getting acquainted with the source code doesn't have to be that hard, either. It is a bit of a problem in less-organized projects, but still better than a closed-source base. As a developer, I think this is something more people should be used to. That is, rolling their own solutions when they don't get what they want.

Re:Textmate2 Goes Open Source by emehrkay on Thursday August 09, 2012 @01:33PM (#4362162)
Id have to learn Cocoa/Objective-C, but I agree with you.
Re:Textmate2 Goes Open Source by batista on Thursday August 09, 2012 @12:41PM (#4361874)
>I don't get what you mean by "if there is still enough interest". If you wanted a particular feature or change, couldn't you just fork Textmate and then implement it?

No, I could not.

1) I have other things to do than building my own tools. I work creating _stuff_, not creating tools.

2) You assume I have spare time to delve into the code of a project, understand the whole structure and add a feature --which might need tons of changes all around the engine.

3) You assume I can do it. I might not even code in Obj-C/C/Cocoa. I might just be some HTML/Javascript/Python whatever developer.

Re:Textmate2 Goes Open Source by sblom on Thursday August 09, 2012 @02:12PM (#4362368)
If your effort spent on tools speeds up your time-to-stuff, then the assumptions embodied in 1) are invalid.

Besides, with open source you have more than just the original developer on whom you can use cash to entice him to make your favorite changes.

Re:Textmate2 Goes Open Source by batista on Thursday August 09, 2012 @02:43PM (#4362549)
>If your effort spent on tools speeds up your time-to-stuff, then the assumptions embodied in 1) are invalid.

Effort spent on tools != effort spend on adding some feature I'd like on a programmer's editor. I could just switch to something better.

Plus, you probably overestimate how more productive a tool like a programmer's editor makes you.

The truth is an editor can make editing less repetitive, but it's not like an order of magnitude better. Not even 2x or 3x more productive. Thing is, there are very successful programmers using all kinds of editors, from Emacs and Vim to Eclipse (notch), to Textmate, to Notepad++. And tons of classic unix programs, including C and Unix itself, were written in ed or similar primitive editors.

Re:Textmate2 Goes Open Source by shurane on Thursday August 09, 2012 @06:55PM (#4363772)
I'm going to be a bit pedantic: switching to another editor is also effort spent. Learning how to use Eclipse, IntelliJ, Visual Studio, Vim, Emacs, ed, etc. etc. Some stuff is simple (text input from a keyboard), but they each have their own weird incompatible little worlds.
Re:Textmate2 Goes Open Source by shurane on Thursday August 09, 2012 @06:50PM (#4363746)
Sorry, I didn't mean to attack you or anything. I'm just praising the model and abilities of open-source and how much power it gives to the user.

I'm extending this idea of rolling your own code to anything/everything open-source, not just text editors. If you're playing a game, or using a webapp and there's some feature or pain point you want to add... well now writing it yourself is an option!

Don't get me wrong, I'm not saying you have to write it because you have a thousand other things to focus on or that the reward/effort ratio isn't worthwhile or whatever reason. But you can.

But you can't tell me that having the option to do so isn't so freaking awesome. Would you prefer abandonware instead? Or seeing where Textmate 2 was going (evidently, nowhere) if it wasn't open-sourced?

Re:Textmate2 Goes Open Source by batista on Friday August 10, 2012 @06:25AM (#4365629)
>Sorry, I didn't mean to attack you or anything.

Oh, no problem, I didn't get that impression.

>I'm just praising the model and abilities of open-source and how much power it gives to the user.

Well, what I'm tried to say it that much of this is "potential" power and not actual. It takes a community or at least several interested programmers to actualise it. Else, it's just the same as if the user didn't have the option at all.

>But you can't tell me that having the option to do so isn't so freaking awesome. Would you prefer abandonware instead?

No, sure, Open Source is better than closed source abandon-ware. Only pointing it that open source can be abandon-ware too (tons of abandoned projects on SourceForge and GitHub -- and not all for lack of interested users, mainly for lack of interested programmers).

Re:Textmate2 Goes Open Source by shurane on Friday August 10, 2012 @09:31AM (#4366050)
Personally, I think that everyone should have some form of programming chops. If only so people can program in the features that they want/need into the software they use.

That's why I think programmers as users (that can contribute back!) are so beneficial. Heck, they can even help the lead programmer debug by finding stack traces, culprit lines in code, working on things the author can't make time for, etc. etc.

You're right in that it's "potential" power, but I think it's just a matter of time of getting more people into the open-source and contributing mindset. I don't think enough of my coworkers or previous peers from uni respect the power of open-source. They just see open-source software as something... 'fixed'. It's either good, or not. They don't realize that they can easily change it with some determination.

On a sidenote, have you read about the "Cathedral and the Bazaar" [1], by Eric S. Raymond? I thought it was quite an eye-opener on the merits of open-source vs the closed-source alternative.

[1] http://firstmonday.org/htbin/cgiwrap/bin/ojs/index.php/fm/rt...

Re:Textmate2 Goes Open Source by pydave on Thursday August 09, 2012 @03:52PM (#4362888)
So "enough interest" means someone who's interested enough to overcome those three hurdles.
Re:Textmate2 Goes Open Source by anu_gupta on Thursday August 09, 2012 @03:18PM (#4362725)
Yes, you could, you just choose not to.
Re:Textmate2 Goes Open Source by nocman on Thursday August 09, 2012 @03:42PM (#4362834)
Do you know all about batista's personal life, all his responsibilities, all of his schedule? While it is possible that he could do the work and choses not to, I don't think you have enough information to say that he definitely can do it and choses not to. People have to prioritize their lives, and there is only so much time to go around. I for one have a thousand things I'd like to do, but personal time limits and higher priorities prevent me from doing them. Finite resources cannot be made infinite.
Re:Textmate2 Goes Open Source by anu_gupta on Friday August 10, 2012 @12:19PM (#4366828)
You're getting angry about something that you've imagined I've stated when in fact you agree with me.

> People have to prioritize their lives

Yes, totally agree. Prioritisation is inherently about making choices - I'm sure you don't disagree with that?

Don't conflate not wanting to or being unwilling to do something with impossibility. They're very different.

Re:Textmate2 Goes Open Source by ChiperSoft on Thursday August 09, 2012 @12:50PM (#4361932)
I too still prefer TM1.5. TM2's UI is, quite simply, horrendous. That sidebar looks like something from the OS9 days. This combined with the changes to the menus and the change from ATSUI to CoreText rendering engine results in an app that quite simply isn't TextMate.

If I'm going to be moving away from TextMate as I know it, it's going to be to something better, not TextMate's uglier brother.

I tried ST2 for a month and ultimately decided it wasn't making me any faster or more productive than I was in TM1. When I do finally get to a place where I'm ready to leave TM1, it'll probably be for Chocolat. I've already bought my license.

Re:Textmate2 Goes Open Source by jolohaga on Thursday August 09, 2012 @09:05PM (#4364269)
I'll need to give Chocolat a look. Also, seeking not so much a replacement for Textmate as a product with a promising future. (I don't think this would be news if Textmate were going in a productive direction.)
Re:Textmate2 Goes Open Source by jolohaga on Thursday August 09, 2012 @08:58PM (#4364250)
I agree. Sublime is targeting cross-platform compatibility. To me that's diluting the virtues of all the systems it works on. It's not the best editor for Mac OS X, it's not the best editor for UNIX. It's not the best editor for Windows.

I prefer stronger opinion with an editor. I don't care if you have an awesome editor that only works on Windows as long as I have an awesome editor that works on my preferred OS.

Awesomeness is what editors should be about. I have to work with it all day long, it better be.

Re:Textmate2 Goes Open Source by statictype on Thursday August 09, 2012 @09:57PM (#4364421)
Have you used Sublime? What parts of it are not native enough on Windows and Mac?

The keyboard shortcuts follow whatever is expected on that platform. They have support for specifying different keyboard shortcuts for different OSs so 3rd party packages can also provide out-of-the-box settings that are native to each platform.

It does Lion-style save/resume your workspace so even if you shut down and restart, it opens all your sessions with unsaved work and scratch buffers still the same.

I'm not sure I found anything that made me feel this was a Mac app ported to Windows or vice versa.

Re:Textmate2 Goes Open Source by antihero on Thursday August 09, 2012 @09:10PM (#4364288)
No fucking way, you don't always control the environment you work on, and sometimes you want to switch OS without losing your tools. Sublime Text 2 gives you the freedom to do this. And Sublime is completely awesome on every platform.
Re:Textmate2 Goes Open Source by jolohaga on Friday August 10, 2012 @10:36AM (#4366325)
You're right, but then I use vi.

I don't work in vi if I don't have to though, and I like editors that feel natural, are a pleasure, leverage the virtues of the OS I use, and interact with the shell. Textmate 1 has been able to do all that. It's just my preference, nothing more.

Re:Textmate2 Goes Open Source by colomon on Thursday August 09, 2012 @08:37PM (#4364182)
I'm a Textmate user who couldn't agree more about not liking with Sublime. I've got it as my main text editor for one of my Windows boxes, and I'm never happy or comfortable using it.
Re:Textmate2 Goes Open Source by Derbasti on Thursday August 09, 2012 @05:14PM (#4363276)
Don't you miss chunked undo? Incremental regex search and replace? Those were my main reasons to look for alternatives, back in the day. I have not looked back, ever.
Re:Textmate2 Goes Open Source by btipling on Thursday August 09, 2012 @04:01PM (#4362930)
Re:Textmate2 Goes Open Source by 89a on Thursday August 09, 2012 @12:48PM (#4361917)
Can't stand ST2 either, if Chocolat is still going in a few months and TM2 flops I'll get it.
Re:Textmate2 Goes Open Source by jolohaga on Friday August 10, 2012 @10:48AM (#4366376)
I'm trying ST2 and Chocolat. I'm tending to like Chocolat better. It follows the UI conventions of OS X, whereas ST2 doesn't.

For example, ST2 doesn't let me select the folder inside a project. It only lets me reveal or hide its contents, and rather briskly, at that.

ST2 has no passion for the subtleties of user interface and the joy it can bring. I don't think a lot of people get it.

I also don't need ST2's thumbnail view of the document constantly showing me where I am in it taking up real-estate in the project window. That's clever, but a distraction, at best.

Re:Textmate2 Goes Open Source by btipling on Thursday August 09, 2012 @03:59PM (#4362923)
Chocolat was released a couple of months ago.