Live data from Hacker News

TextMate 2 (Public) Alpha

blog.macromates.com

51–60 of 178 posts

Re: TextMate 2 (Public) Alpha

#51

In the mean time Sublime Text 2 has all of the Alpha features as well as cross platform support and support for TextMate bundles. You should really give it a shot if you haven't.

Honestly, while Sublime is GREAT, it doesn't feel like a Mac app.

Neither does TM.

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.

Re: TextMate 2 (Public) Alpha

#52
rmate is pretty cool. I'm using this script locally to forward connections from a server with rmate installed. Save this to /bin/matehost and adapt the list of hosts to

#!/bin/sh

###########################################

mhosts=(

host1

host2

)

###########################################

mpids=()

for i in "${mhosts[@]}"

do

ssh -nNT -R 52698:localhost:52698 ${i} &

mpids[$[${#mpids[@]}+1]]=$!

done

read -p "Press any key to close tunnels ..." -n 1

for i in "${mpids[@]}"

do

if [[ `ps $PIDns` == ssh ]]

then

		kill ${i}

	fi
done

Re: TextMate 2 (Public) Alpha

#53
post #41
post #33

Earlier quoted context omitted.

The OS isn't better at it if there is none or limited ability to manipulate the windows in a keyboard driven way. I use and love the 3rd party tool SizeUp, but SublimeText2's integrated pane management (including moving tabs between them) is far better than plain windows.

Can you help me understand how it's better? SizeUp looks perfect for something like this. Want to view two files? Ctrl-right on one, it's now on the right side of the screen. Command-O, chose the new file, Ctrl-left on it, it's now on the left side. I'm honestly very curious what Sublime/etc offer that is better than what you can do with the OS?

What's the key to add a third column and have the others automatically resized?

Do other windows start inheriting the project drawer if older windows are closed?

Each window has multiple tabs - how do you tear off and replant them using the keyboard?

Doh, now the temporary horizontal split panes like find-in-project, the python console, etc, must be attached to a specific narrow window.

And so on. I like a multi window desktop and am certainly not a maximise-everything guy. But relying on the OS for everything is not optimal.

Re: TextMate 2 (Public) Alpha

#54
post #2

Split views are coming. From the post: "Split views: Yes, I actually had this on the alpha milestone, I’m not overly excited about this feature myself, but I know it’s a very common request, so eventually it should find its way into the application."

(I'm not a desktop app developer, so maybe I'm way off base here.) There's the obvious observer problem where you have two views of the same buffer and changing the text in one automatically updates the other. Isn't that harder to tack on later than to design into the app from the beginning?

Depending on how well you can map your code to the built-in Cocoa text-editing classes, this could be as easy as adding two NSLayoutManagers (each directing one NSTextContainer and NSTextView) beneath a single NSTextStorage instance. Apple even uses this configuration for one of their examples: http://developer.apple.com/library/mac/#documentation/cocoa/...

The built-in notifications and delegate-relationships handle everything else (updates & synchronization) automatically. This is actually NeXTSTEP-level stuff that's been around for decades.

Re: TextMate 2 (Public) Alpha

#55

Just tried it out and it's actually pretty awesome, especially considering it's an alpha. A real 2.0 in every sense. Tried Sublime Text 2 for a while but while the spec looks good on paper it feels clunky to use, even compared against TM 1.5. And with 2.0 it's completely blown out of the water. And for you vim/emacs promoters always jumping out of the dark: I use vim every day for a lot of tasks, and have done so for…

What about textmate makes it better for quick navigation over something like macvim with nerdtree and one of those project search tools like command-t? Curious on this one not being snarky. I like text mate for the find and replace that can do counts on matches to make sure you are getting the ballpark of matches correct, and incremental replace is nice too until you are satisfied with your search terms. Any way to d…

I can navigate the TM drawer much faster than I can navigate NERDTree. And I've probably spent more time in Vim so it's probably not just habit, but usability. Yes, command-t works, I mean, Vim is not a bad editor at all, I just find that TM is easier to use which leads to quicker workflows.

Re: TextMate 2 (Public) Alpha

#56

In the mean time Sublime Text 2 has all of the Alpha features as well as cross platform support and support for TextMate bundles. You should really give it a shot if you haven't.

I'm sure I'm not the only textmate user who finds Sublime Text hideous. I'd sooner bite the bullet on vim if I'm going the ugly route.

You're definitely not alone. It's cross platform, so it's not quite at home on OS X, it just feels wrong somehow. Pity really.

Re: TextMate 2 (Public) Alpha

#57
I've had a TM1 license for a while now and I'll definitely be giving TM2 a shot. Last time I tried Sublime Text 2 there was a complete lack of a subversion plug-in (that I could find). Has that changed? If not then it's a no go.

Re: TextMate 2 (Public) Alpha

#58
From the announcement:

"""Performance: Overall performance is fine, but there are still edge-cases that we haven’t looked into, for example the long lines issue which also exists in 1.x or opening files that exhaust TextMate’s memory space."""

So, the same performance re: long lines and long files as 1.x.

And here I thought that the lack of new features meant that at least the core engine was re-worked. Now, it seems like there just wasn't much done at all, backend or front-end wise.

The list here couldn't be more basic or boring: http://macromates.com/changes

Here's what I'd like to see, minimum:

1) SCM integration 2) Split panes 3) Better fuzzy search 4) Robust long line handling 5) Robust long file handling 6) Improved extensibility esp. with re: build systems\ 7) Robust auto-completion 8) Better project handling features

Re: TextMate 2 (Public) Alpha

#59
post #41
post #33

Earlier quoted context omitted.

The OS isn't better at it if there is none or limited ability to manipulate the windows in a keyboard driven way. I use and love the 3rd party tool SizeUp, but SublimeText2's integrated pane management (including moving tabs between them) is far better than plain windows.

Can you help me understand how it's better? SizeUp looks perfect for something like this. Want to view two files? Ctrl-right on one, it's now on the right side of the screen. Command-O, chose the new file, Ctrl-left on it, it's now on the left side. I'm honestly very curious what Sublime/etc offer that is better than what you can do with the OS?

In Vim there are many benefits from having multiple buffers open within the same Vim instance. Buffers share session data of the Vim instance they're in. This has a lot of different benefits, including automatically sharing whatever options or settings have been set (many dynamically or temporarily set), sharing of Vim registers, macros, and command history, all of which are heavily used when editing (if OS handled they would generally share a single clipboard register), Vim-controlled navigation between buffers and windows, Vim-controlled scripting between multiple buffers, Vim-controlled searches of multiple buffers, and more.

Because there are so many benefits of having multiple buffers/files open within the same Vim instance it makes sense to have multiple buffers viewable at once, not to have only one viewable at a time. You lose a lot of editing power if buffers are not open in same Vim instance; it doesn't make sense to open a new file separately in different Vim instance. Moreover, many times split windows are useful to show two different views of the _same_ buffer at once.

Re: TextMate 2 (Public) Alpha

#60
post #41
post #33

Earlier quoted context omitted.

The OS isn't better at it if there is none or limited ability to manipulate the windows in a keyboard driven way. I use and love the 3rd party tool SizeUp, but SublimeText2's integrated pane management (including moving tabs between them) is far better than plain windows.

Can you help me understand how it's better? SizeUp looks perfect for something like this. Want to view two files? Ctrl-right on one, it's now on the right side of the screen. Command-O, chose the new file, Ctrl-left on it, it's now on the left side. I'm honestly very curious what Sublime/etc offer that is better than what you can do with the OS?

Because then I've gotta deal with two windows. Cmd+~ : One's now in the background, the other isn't. Switch apps, one comes back, the other doesn't. Switch monitors, the sizing's off. Try to do anything other than 50/50 split, have to adjust manually. Try to use TM's project browser (seriously), doesn't work. Try to swap that second file for a different one, have to close the window, open a new window & reposition. It's generally a much clunkier workflow.

Granted, I only know that from using VIM (and occasionally SublimeText), but it's been one of my "Dear GOD Give Me This in TM" requests for a while. I've got SizeUp and love it - truly one of my must-have apps - but to me it's a hack, not a solution.

Post reply on HN