News for hackers. Stuff that matters.
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by pilif on Thursday January 12, 2012 @02:58AM (#3455468)
My favorite feature (already added in an earlier development release, but now finally in the beta track): On OSX, if you are editing a file you don't have write access to and you want to save it, Sublime now asks for authentication than then saves the file.

This is very convenient and not having this was the reason for still having TextMate around.

Re:Sublime Text 2 Beta released with Auto-complete and Impro... by saurabh on Thursday January 12, 2012 @05:22AM (#3455766)
Is there any way to do the same in Vim?
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by teaspoon on Thursday January 12, 2012 @05:24AM (#3455770)

  :w !sudo tee %
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by yankcrime on Thursday January 12, 2012 @07:35AM (#3456094)
And here's the little mode-specific map I use:

cmap w!! w !sudo tee % >/dev/null

Re:Sublime Text 2 Beta released with Auto-complete and Impro... by Simon_M on Thursday January 12, 2012 @08:54AM (#3456290)
That's one annoyance out of the way. Is there a decent way to work with remote files yet?

This is always the killer for me.

Re:Sublime Text 2 Beta released with Auto-complete and Impro... by brainsik on Thursday January 12, 2012 @01:04PM (#3457310)
On OS X, I highly recommend Dripbox. It automatically SCP's files that change on your local filesystem to a remote location.

https://github.com/epall/dripbox

I use it every day, editing files locally in Sublime Text 2, and then cmd-tabbing to Terminal to run tests. It's fast enough that I never even think about the delay.

Re:Sublime Text 2 Beta released with Auto-complete and Impro... by Deezul on Thursday January 12, 2012 @08:58AM (#3456307)
Try this out: http://wbond.net/sublime_packages/sftp I haven't used it, but I'll probably end up taking a look at it soon. Please report back if you end up using it.
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by hackNightly on Thursday January 12, 2012 @10:53AM (#3456715)
Been using this package for some time now and can say that it's been great. It's super-fast, and is integral to my work flow.
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by jaylevitt on Thursday January 12, 2012 @10:25AM (#3456606)
OK, this isn't "decent". But: On a Mac, with a good connection to the remote machine, I've found the combination of

- ExpanDrive, which uses MacFUSE to mount remote volumes over SSH, but with lots of metadata caching smarts to make it fast and reliable

- My hacky remote textmate script, which gives you a "mate" command on the remote machine via ssh tunneling (https://github.com/jaylevitt/textmate_remote)

to work well with TextMate. I've been meaning to try it on ST2 but haven't yet; as long as ST2 doesn't do the horrible thing TextMate used to do and continuously rescan the project directory in a blocking thread, you'll be cool.

Re:Sublime Text 2 Beta released with Auto-complete and Impro... by foz on Thursday January 12, 2012 @04:50PM (#3458101)
TextMate 2 has `rmate` which lets you edit a remote file from a terminal session: http://blog.macromates.com/2011/mate-and-rmate/
Re:Sublime Text 2 Beta released with Auto-complete and Impro... by purephase on Thursday January 12, 2012 @09:34AM (#3456431)
I just use Transmit to mount remote file systems. Works like a charm.