23 ms·
TextMate 2 (Public) Alpha
- deweller 15y agoSplit 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."
- jdludlow 15y ago(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?
- scrod 15y agoDepending 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/conceptual/TextArchitecture/Concepts/CommonConfigs.html 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.
- andylei 15y ago> I’m not overly excited about this feature myself i don't understand this. how does he code only looking at one file at a time?
- durandal1 15y agoMaybe...drumroll... multiple windows?
- andylei 15y agodon't you have to open a new project or something contrived to do that? i don't remember; it's been a while since i've used textmate.
- durandal1 15y agoThere's no projects in TM, if you open a folder it opens up the folder in the project drawer. From there (or from Finder) you can open up as many editing windows as you want.
- etrain 15y agodifferent strokes for different folks. i look at one buffer at a time, and switch between them. have only rarely made use of split views. helps me mentally with encapsulation/separation.
- colomon 15y agoHow do you code looking at two files at one time? What's the point? I've been programming for nearly thirty years now. For the bulk of that time, I had an editor which allowed me to do split screens, and I used it maybe once a year. I switched to TextMate in 2008, and have never once missed having a split screen.
- e1ven 15y agoI don't get why people think this is an editor feature, and not an OS feature. When I want to view two files at the same time, I open two windows, and put them side by side. Not everything needs to be fullscreen all-the-time. Let the OS manage windows. It's better at it! Besides, having windows automatically become half-maximized is easy with the right tools, like BetterTouchTool (Do it with a gesture!), or Divvy.
- frou_dh 15y agoThe 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.
- e1ven 15y agoCan 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?
- frou_dh 15y agoWhat'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.
- hesitz 15y agoIn 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.
- krobertson 15y agoThe wording of "I'm not excited about it but I'll do it" has me worried. Typically those kind of things end up poorly executed/implemented. In terms of split views, its not a big issue for me, but to publicly state that is your approach has me unsure about other parts of TM2 and his practices. I don't look at it thinking "yay!"
- c4urself 15y agoIs there a good story behind the logo change and choice, or was it just time for something new?
- danielmorrison 15y agoI'm assuming it is to differentiate it from TM1 during the alpha.
- Sachse 15y agoWhen I asked on IRC I was told that the new icon is permanent. It's really nice in my opinion, but I do find it a somewhat odd choice for a text editor.
- peregrine 15y agoIn 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.
- daniel_sim 15y agoI'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.
- c4urself 15y agoreally? i've always thought it was very comparable (I checked out Sublime Text 2)
- Argorak 15y agoNot at all. There is something about Sublime Text that I can't put my finger on, but I don't like it. 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.
- frou_dh 15y agoThis user made theme should be the default on ST2 for Mac as far as I'm concerned. Cure for ST2 ugliness: https://github.com/buymeasoda/soda-theme https://github.com/buymeasoda/soda-theme
- deleted 15y ago[deleted]
- c4urself 15y agoList of changes: http://macromates.com/changes http://macromates.com/changes
- jarin 15y agoA lot of people I know switched from TextMate to vim because of the lengthy delay. After using vim for a couple of years now, it would be very hard to go back to TextMate.
- kennystone 15y agoYeah, but far more people will never learn vim because of the learning curve.
- r00k 15y agoThe vim learning curve is greatly exaggerated: http://robots.thoughtbot.com/post/13164810557/the-vim-learning-curve-is-a-myth http://robots.thoughtbot.com/post/13164810557/the-vim-learni...
- tikhonj 15y agoI suspect that people who actually try Vim are perfectly likely to learn and like it. People who are scared away by comments like yours, on the other hand...
- jarin 15y agoIt took me several false starts over the course of a few years to finally take the plunge.
- kevinpet 15y agoVi is incredibly easy to learn, but it takes some learning before you can accomplish anything. You can sit down with Bill Joy's original paper, read it, try stuff out, and you will be using Vi at 50% of the competence of a master with years of practice. Emacs on the other hand seems to be simpler to get started in, but it never gets simple like Vi does. After you get over the first hump, you just see the Himalayas rising behind it. I use Emacs right now, but I'm interested in moving to something that plays nicer with Mac OS and the god-awful lack of respect for Unix standards in the Rails community (like failure to exclude ~ files from the asset pipeline).
- durandal1 15y agoJust 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 the last 15 years, but for coding and quick navigation of large source bases Textmate wins hand down.
- weaksauce 15y agoWhat 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 do this in vim easily? Plugin? Other than that vim is way faster for me.
- durandal1 15y agoI 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.
- dextorious 15y ago"""I can navigate the TM drawer much faster than I can navigate NERDTree. """ Then you're doing it wrong.
- durandal1 15y agoOr I'm really fast?
- randall 15y agoMirror?
- bstar77 15y agoI moved to vim more out of boredom more than anything. Using vim turned into a game for me... always trying a more efficient way of doing something. Problem now is that all of the vim keybindings are etched into my head, and it goes way beyond the standard basic keybindings. It has to do with the way Vim chains commands. There's no vim-like editor that can do that except vim, gvim & mvim. For this reason alone, vim has ruined me for all other editors. I would have jumped all over TM2 two years ago, but I've since changed my priorities. Regardless, I hope TM2 is a success.
- shadowfiend 15y agoI would recommend keeping an eye on vico. It's likely it doesn't do everything you're used to in vim, but there's been constant improvement in this regard over the past 2-3 months.
- bstar77 15y agoProblem with vico is that it's based on textmate plugins. If it natively supported vi (and mvim) plugins, then I would have already purchased it. I never understood the decision to go that direction. Vico is gorgeous, though.
- shadowfiend 15y agoThat's both an advantage and a disadvantage in my book. The upside is the scripting language is pretty awesome (in my mind). Presumably it would have taken significantly longer to write full handling for the vi scripting language. TextMate bundles seem to be more limited, except insofar as they invoke external scripts. I do get what you're saying though. You lose a great deal of existing work because of that. I considered vico a new editor built on the base concept of vim, rather than a total replacement, and in that sense I think it succeeds very well.
- oacgnol 15y agoA bit off-topic, but if you like the game of efficiency, try vimgolf.com!
- tuananh 15y agoUnable to check for the updates at the moment.
- jakr 15y agoI can't believe the number of "oh screw this i'm using <x>" comments sprinkled all over everything TM2 related these days. It's as if people need to echo their personal choice every time TM is mentioned to give them a sense of reassurance that they made the right decision and to prevent themselves from relapsing back to TM. I'm looking forward to see how TM2 progresses!
- applicative 15y agoThere is a palpable anxiety and dishonesty in all these attacks, it's stunning really.
- quonn 15y agormate 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
- shaggy 15y agoI'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.
- argarg 15y agoA wild subversion user appears!!!
- dextorious 15y agoFrom 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 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
- podperson 15y agoI don't see any mention of this under notable changes since 1.5.10, but does TM2 undo more than one character at a time yet? This was the deal-breaker for me with TM. I like being able to undo and redo quickly.
- evanwalsh 15y agoI just checked the latest build and... Yes. It has been fixed.
- siddhant 15y agoOut of curiosity, does anybody have any screenshots or something, just to get a feel of what this is like? I don't have a license, and don't want to buy one either.
- mrweasel 15y agoThere's not much to see, it's an editor, but here you go: http://i.imgur.com/ZyIP5.png http://i.imgur.com/ZyIP5.png Blackboard theme and the font is DejaVu Sans Mono... I think TextMate 2 just uses the font I set in version 1.
- danieldk 15y agoOff-topic: I see in your screenshots that Dock icons of applications that are not started are on their side. How did you do this?
- mrweasel 15y agoShort answer: I didn't. The sleeping dog is an Adium icon, ask them how it works. I assume that the other icon is the "Fr" icon. That's Flush.app that flushes Flash cookies. The icons just looks like that, it never changes. Sorry to disappoint. But based on Adium, I assume that Mac OS X somehow allows you to change icons when the application starts. I would assume that it's something that the application need to handle.
- ddagradi 15y ago> Full screen mode: This is mainly because we are hesitant to go Lion-only so we are holding back with “lionizing” TextMate till we feel confident we can fully drop backwards compatibility. That's not true. Adding full-screen support does not require breaking backwards compatibility: it's a quick check to see if the feature can be enabled.
- tikhonj 15y agoI don't really understand why the application has to support full screen mode. Isn't that something the window manager should really be doing?
- ddagradi 15y agoIt's opt-in for old projects, but it's as simple as compiling the app with Lion support without code changes or compatibility issues to turn on the flag for the window in IB. (Obviously, for new Lion projects, it's automatically enabled). The issue of checking in code comes when you want to add an "Enter Fullscreen" menu item, which requires a tiny bit of code to make sure you don't call "toggleFullscreen:" on a window that doesn't know about it (or display the menu item on an OS where it will do nothing). Still. It's pretty basic. (As for the window manager supporting it, some apps really shouldn't be fullscreen - Address Book, I'm looking at you - so having an easy opt-in/out mechanism seems pretty necessary on the application side.)
- tikhonj 15y agoTo me, this seems to be an "opt-out" rather than "opt-in" sort of thing. The easiest parallel would be maximizing windows in Windows or most Linux WMs: you can maximize all windows by default, but they are free to disallow maximizing. This seems a more reasonable approach.
- sirn 15y agoFull screen mode in Lion is a little more than just maximizing window to fill the screen, though. Developer can/may/should also provide an alternative UI that's tailored for full screen and may update the UI depending on top menu bar's visibility. iPhoto and Photo Booth does this, for example. If bookmark bar is hidden in Safari, it will be shown when you point the mouse at the topmost of the screen (make the menu bar visible for extra controls).
- g3orge 15y agoTextMate 1 was my first "programming" editor, one year ago I faced the truth and said to myself that v2.0 is not coming.(!!) I switched over to vim and I'm very happy. I now can use it very fast and I'm very productive. Yes, TextMate 2.0 is late and maybe all of those features are now all over other editors, but I'll definitely give it a try and I'll keep it installed on my computer for the old times' sake.
- lailsonbm 15y agoWhat about the Chocolat editor? I hate the name but it seems to be an awesome editor. chocolatapp.com
- jacknagel 15y agoDoes anyone know how to adjust the line height? In 1.x I could do defaults write com.macromates.TextMate OakLineHeightDelta n but 2.x doesn't respect that (or com.macromates.Avian OakLineHeightDelta).
- pwenzel 15y agoThe thing that has kept me with Textmate has been its particular style of autocompletion, and a few bundles that I really love, namely the jQuery bundle, Javascript Tools, and the CodeIgniter bundle. I use it nearly every day, so it's hard to adjust to anything else.
- scelerat 15y agoCongratulations on shipping. That's the hardest thing sometimes, especially in the face of so much opinion and scrutiny. Seriously, pat on the back to Mr. Odgaard for persevering.
- st3fan 15y agoI tried it out. But there is no wow-factor. When TextMate came out it was amazing. Specially because BBEdit was so much behind. Now there are (have been) many competitors that are awesome, look modern, etc. Meh.
- jdc0589 15y agono cross platform support = no interest. If you only ever use a mac, textmate is awesome. However, having to use a different editor in every OS is just ridiculous. Thankfully Sublime Text 2 is around.
- sovande 15y agoTextmate 2 comes with rmate which may be an alternative. IMHO it is better to be great on one platform instead of mediocre on many.
- mjijackson 15y agoGlad to see that http://wastm2released.com/ http://wastm2released.com/ was updated to reflect this announcement! Congrats on being so close Allan!
- BonoboBoner 15y agoCrashes on startup on my Leopard 10.5.8 machine, just me or anyone else?
- antimatter 15y agoSame here. Crash on launch. I'm on Lion 10.7.2 though. Edit: Problem was that I had Textmate 1 running. Closing it solved the issue.
- BonoboBoner 15y agoThanks, that fixed it for me as well.
- tjholowaychuk 15y agonot a fan of the new sidebar thinger.. also stuff like GIT integration is pretty lame, it's must faster via the terminal. I'm pretty happy with old textmate, I would have rather seen CSS for styling the entire app or something, it looks kinda ugly
- MrAnger 15y agoFullscreen? mode?
- tzury 15y agoNothing have yet moved me away from SciTE. It was on my Windows NT4 and NT5 (aka Win2K), and then, from 2005, on any of my Ubuntu installations. I use VIM only when I edit remotely, on servers, but not locally. Haven't took the time to learn how to use it like a ninja. But if I will ever switch, that would be VIM, no doubt. That was yet again, code-editor-of-choice discussion, now going back to real work (not meta such as editor config files and plug-ins).
- veidr 15y agoThe new alpha is still incapable of editing Japanese text. Although at least this time it is probably a bug that is fixable, not a fundamental design flaw that isn't. Pressing Return, which is how you select the kanji characters that correspond to the phonetic words that you typed, inserts the kanji as it should, but then unhelpfully replaces the Japanese characters with a newline. :-P I don't personally care that much, though; TextMate 1 was actually pretty bad, IMO. It was slow and buggy, with nothing much special about it except its bundle system for extensibility. That was indeed a killer feature, but TextMate bundles can now be used by many other, much better, editors like Sublime Text 2.
- etherealG 15y agofor those that prefer the old icon: cp /Applications/TextMate\ -\ Old.app/Contents/Resources/TextMate.icns /Applications/TextMate.app/Contents/Resources/