News for hackers. Stuff that matters.
Re:Sublime Text 2.0 Released by ConstantineXVI on Tuesday June 26, 2012 @09:41AM (#4161670)
I've reverted back to Vim (not really ST2's fault, just that it doesn't run in a terminal and I've gotten addicted to split-panes in iTerm), but ST2's a solid editor. Definitely worth your $60.

PS: If it got even a basic terminal...

EDIT2: ST2 does have split panes, I just can't run a terminal in them.

Re:Sublime Text 2.0 Released by btown on Tuesday June 26, 2012 @10:17AM (#4161892)
A basic terminal is 100% feasible under the plugin API... see http://www.sublimetext.com/docs/2/api_reference.html#sublime... ... although to capture keystrokes, you'd need to bind a keystroke to every single key with every single combination of modifiers.

EDIT: Some insane person seems to have done this: https://github.com/wuub/SublimePTY

Re:Sublime Text 2.0 Released by mvgoogler on Tuesday June 26, 2012 @10:42AM (#4162068)
I'm just curious about why you need to run it in a terminal?

I have a linux machine at work and use a MacBook for remote work. When I'm remote I just run Sublime locally on my Mac and set up an sshfs mount to my workstation for the source files. Works like a charm.

Note - not at all saying you're doing it wrong :-) just curious if you'd tried this kind of setup and why it didn't work for you?

Re:Sublime Text 2.0 Released by vidarh on Tuesday June 26, 2012 @11:14AM (#4162291)
Personally I keep 10+ screen tabs open, many of them with emacs sessions set up to specific projects with split panes and files open to exactly where I left off. I couldn't imagine reopening my editor windows every time I'm due to start something. I do this over ssh to my server from my laptop because even the occasional laptop restart is too annoying for the projects I work on a lot.

An editor that can't work in a screen session is simply a non-starter for me, especially as there's pretty much no _benefit_ in a GUI for any of the text editors I've tried.

Re:Sublime Text 2.0 Released by notJim on Tuesday June 26, 2012 @12:57PM (#4162902)
I also switched to vim so that I could run it in a terminal. The reason I did it is that I found Sublime Text 2's file listing cache would sometimes get corrupted or out of date, so suddenly I couldn't using Cmd+p to open things anymore. I couldn't find a way to manually bust that cache, so this was very aggravating. I'd basically be dramatically slowed down until ST2 deigned to update itself. IIRC, this was especially bad when adding new files and whatnot.

I was using NFS, btw. Never tried sshfs.

Re:Sublime Text 2.0 Released by ConstantineXVI on Tuesday June 26, 2012 @10:52AM (#4162147)
It's mainly to keep everything (where everything == files, REPL, docs, etc.) in a single window, which I can then throw full-screen and have absolutely nothing but my work in front of me. I'm sure one could use ST2 (or any other GUI app) on Linux with a tiling WM like xmonad and achieve a similar workflow, but there doesn't seem to be a way to achieve this on OSX that doesn't involve ugly/unstable hacks.
Re:Sublime Text 2.0 Released by nicholassmith on Tuesday June 26, 2012 @11:10AM (#4162267)
You know, in theory it'd be possible to do that within Sublime but I'm not sure if that's veering towards the emacs approach of ALL THE THINGS. I'd have to try it but I think you can probably use PyQt to grab WebKit and make a package to display HTML docs within Sublime
Re:Sublime Text 2.0 Released by ConstantineXVI on Tuesday June 26, 2012 @01:13PM (#4162981)
The "all the things" approach is a large part of what keeps me away from Emacs[1]. I'd much rather use a single-purpose editor (like ST2 or Vim) alongside other similarly-focused tools, or a well-done IDE that's focused on it's environment. Emacs tries too hard to be everything at once (why do I want an editor that's a file manager, IRC client, organizer, and Tetris?).

[1] The other is it's absolute refusal to "fit in" on whatever platform it's on. Fits with the kitchen-sink approach: why interop with [program X] when you can just build it in?

Re:Sublime Text 2.0 Released by Myrmornis on Wednesday June 27, 2012 @02:52AM (#4165876)
> why do I want an editor that's a file manager, IRC client, organizer, and Tetris?

Although I don't want my editor to do all those things, for me the reason emacs wins is because it invites you to learn the (not unpleasant, genuine programming) language in which it is written and then do whatever you want with it. Even if you basically want to keep it simple having that power to hand is nice.

Re:Sublime Text 2.0 Released by notJim on Tuesday June 26, 2012 @12:59PM (#4162908)
The one window your parent is referring is a terminal window, not a vim window.
Re:Sublime Text 2.0 Released by dsirijus on Tuesday June 26, 2012 @09:52AM (#4161733)
I've even bought it, then went back to Vim. It looked so promising and I still think it's second best editor around.

EDIT: There can be only one!

Re:Sublime Text 2.0 Released by swah on Tuesday June 26, 2012 @02:52PM (#4163559)
Do you use the external program to emulate Cmd-T? I don't like that solution :) and it doesn't work in Windows IIRC...
Re:Sublime Text 2.0 Released by super_mario on Tuesday June 26, 2012 @03:57PM (#4163824)
Command-T vim plugin works on windows too. Yes its a little harder to compile on windows but doable.
Re:Sublime Text 2.0 Released by ConstantineXVI on Tuesday June 26, 2012 @05:08PM (#4164138)
CtrlP[0] is pure Vimscript, much easier going on Windows

[0] https://github.com/kien/ctrlp.vim

Re:Sublime Text 2.0 Released by Joe8Bit on Tuesday June 26, 2012 @09:52AM (#4161731)
You can init Sublime (and open/edit files) from the command line relatively easily[1] and there's a plugin that will allow you run shell commands from within Sublime Text[2].

1: http://www.sublimetext.com/docs/2/osx_command_line.html 2: https://github.com/misfo/Shell-Turtlestein (or from Package Control)

EDIT: Ahh I see you edited, nevermind! But you can split the windows easily too!

Re:Sublime Text 2.0 Released by PopaL on Tuesday June 26, 2012 @09:47AM (#4161700)
I suppose you know that you split the layout of ST just like you can split the pane in iTerm2 ... You can even have the same file open twice in a side by side view.
Re:Sublime Text 2.0 Released by ConstantineXVI on Tuesday June 26, 2012 @09:50AM (#4161719)
Right, but that's only for files. My extra panes tend to have REPLs, curls, docs, etc. more often than other files.
Re:Sublime Text 2.0 Released by yuchi on Tuesday June 26, 2012 @11:17AM (#4162313)
That's the reason behind LightTable. I have to say, a Terminal could be a great addition to ST features.
Re:Sublime Text 2.0 Released by GrandTheftR on Tuesday June 26, 2012 @10:08AM (#4161831)
I love ST2, Vim, and iTerm. On my Mac. I just setup a global key ⌥-t to bring iTerm to front. Not ideally, but good enough for me for now.
Re:Sublime Text 2.0 Released by mfer on Tuesday June 26, 2012 @10:02AM (#4161790)
For anyone wondering, ST2 has split panes. Look in menu View -> Layout.
Re:Sublime Text 2.0 Released by enterneo on Tuesday June 26, 2012 @10:22AM (#4161925)
if you switch to tmux, then you can have term-agnostic split panes