HNHacker News
TopNewBestAskShowJobs

jskinner

1,192 karma · joined April 4, 2008

https://www.sublimetext.com
submissionscomments
jskinner··on Sublime Text 2 (Build 2111) gets vi key bindings, indent guides
I've posted a follow up on the forum - in general, feel free to email suppport@sublimetext.com if something is overlooked on the forum.
jskinner··on Sublime Text 2 (Build 2111) gets vi key bindings, indent guides
Agreed - I'll make sure this gets in for the next version
jskinner··on Sublime Text 2 Build 2091
I keep meaning to write a blog post with some details on this, but as with many things, I usually end up coding instead.

Sublime Text 2 is almost entirely C++ (with a smattering of Objective C for Cocoa and Python for plugins). Coding is generally fairly straight forward: code on one platform (mostly Linux at the moment, but I switch around frequently), and then make sure it still compiles elsewhere.

Sublime Text 2 itself uses a custom UI toolkit. There are a lot of apps where this may not make sense, but it's not such an unreasonable choice for Sublime Text, where I always knew that a lot of the UI controls were going to have to be custom no matter the toolkit (e.g., the text control and tab controls). The UI toolkit sits on top of a cross platform abstraction layer, which is more a union of platform functionality rather than lowest common denominator.

jskinner··on Sublime Text 2 Build 2091
gvfs should be working fine (I've used it to edit via sftp in the past, at least).

If you're not having any luck with it, it's worth posting on the forums or emailing support@sublimetext.com

jskinner··on Sublime Text 2: Public Alpha Released
Should be fixed now: http://www.sublimetext.com/blog/articles/sublime-text-2-new-...
jskinner··on Sublime Text 2: Public Alpha Released
I've just released an updated version of Sublime Text 2 that should address the Python issues, at least.
jskinner··on Sublime Text 2: Public Alpha Released
Make sure you're changing it in the User File Preferences, rather than the Default File Preferences. The default preferences get overridden by the platform specific ones.
jskinner··on Sublime Text 2: Public Alpha Released
Ctrl+Tab/Ctrl+Shift+Tab cycle forwards/backwards through the stack of recently used files, in the same manner as Alt-Tab (Command+Tab on OS X) cycles through applications.
jskinner··on Sublime Text 2: Public Alpha Released
On Windows and Linux you can use Shift+Right Mouse, or Middle Mouse.

Column selection interacts nicely with multiple selections, too: Use Ctrl+Drag (Command+Drag on OSX) to add selections, and Alt+Drag to subtract selections.

jskinner··on Sublime Text 2: Public Alpha Released
There are currently some issues on non-ubuntu linux distros. I hope to get this resolved in the next few days.
jskinner··on Sublime Text 2: Public Alpha Released
The preview-on-single click makes a bit more sense if you have the tabs turned off: it exists so the set of open files doesn't get cluttered when browsing a project. I'm planning on making it optional (and likely off by default), as many people aren't a fan of the behavior.

You can change the font, but it involves editing the preference files: Have a browse through "Preferences/Default File Preferences", and then copy the relevant keys into "Preferences/User File Preferences" - font_face and font_size in this case.

jskinner··on Sublime Text 2: Public Alpha Released
Column select is triggered by Ctrl+Left Mouse on OS X - Alt+Left Mouse will subtract from the selection.
jskinner··on Sublime Text 2: Public Alpha Released
.tmTheme files are supported by Sublime Text: Copy your .tmTheme into ~/Library/Application Support/Sublime Text 2/Packages/User (assuming you're on OS X), restart Sublime Text, and you should be able to select it from the Preferences menu.
jskinner··on Sublime Text 2: Public Alpha Released
It has most, but not all. Some commands are in the menu, but have no key binding: you can find these via "Preferences/Browse Packages", and then open up "Default/Main.sublime-menu".
jskinner··on Sublime Text 2: Public Alpha Released
As the author of Sublime Text, I'd just like to say thanks for all the kind comments here, it's heartwarming to see so many positive comments.
jskinner··on Sublime Text 2: Public Alpha Released
Those are for Sublime Text 1, rather than 2, by the way. The API for Sublime Text 2 is very similar, but different enough that plugins won't work without being changed.

Documentation for Sublime Text 2 is extremely thin on the ground at the moment, it's something I'll try to address soon.

jskinner··on Sublime Text 2: Public Alpha Released
Auto complete only looks in the current buffer for possible completions at the moment.

I'll look into what's going on with the command line handling under Linux.

jskinner··on Sublime Text 2: Public Alpha Released
libgio is part of GTK, which I'm hesitant to statically link against. I'll test under RHEL5 and see what I can do to make it work out of the box.
jskinner··on Sublime Text 2: Public Alpha Released
As much as possible, I do try and follow the conventions of the host OS. Cmd+P is the only exception, which I feel I can get away with due to there being no support for printing yet (and a few other historical reasons, where Ctrl+P is used for similar functionality in Sublime Text 1).
jskinner··on Sublime Text 2: Public Alpha Released
There isn't a public issue tracker yet, no. The best place at the moment for reporting issues is the forum: http://www.sublimetext.com/forum
jskinner··on Sublime Text 2: Public Alpha Released
It should be just a matter of dragging a folder onto the side bar (or using the Project/Add Folder to Project menu item) - drop me an email (jps@sublimetext.com) if this isn't working for you.
jskinner··on Sublime Text 2: Public Alpha Released
It's generally just a matter of getting your hands on a .tmLanguage file (the same format as TextMate), and putting it somewhere in your packages directory (~/.Sublime Text 2/Packages/ on Linux).

The top Go.tmLanguage reported by Google appears to be a work in progress though, I'll see if I can get something sorted for the next version - I'd like to have Go support out of the box.

jskinner··on Sublime Text 2: Public Alpha Released
While Sublime Text 1 used the GPU for rendering, Sublime Text 2 is software only, and so should have no problems over remote desktop.
jskinner··on Sublime Text 2: Public Alpha Released
Which libraries are you referring to? Statically compiling GTK would seem a step too far.

EDIT: Ah, you've added that now. I'll do some investigation: could you let me (jps@sublimetext.com) know which distro you're running?

(I'm the author of Sublime Text, btw)

jskinner··on The Awful Anti-Pirate System That Will Probably Work
the original binary doesn't need to be modified in any way

It's easy for Ubisoft to also force the binary to be cracked: have the client request the server sign a random token with its private key, and verify it with a public key embedded into the client. This way a third party server could only be written if the client was also cracked to either change the key or remove the check.

jskinner··on Sublime Text
You can change the colour scheme within the editor - try Preferences/Apply Color Scheme/Dawn for a black-on-white colour scheme
jskinner··on Sublime Text
This may be of interest: http://feedblog.org/2008/01/18/sublime-text-high-level-navig...

I don't know how easy it would be to integrate into an existing text editor though. Firstly, the rendering itself. I do it via using the GPU to render textured quads, to get trilinear filtering without a big load on the CPU. Without this filtering, the quality goes out the window: standard font rendering algorithms don't render fonts nicely at tiny sized.

The other issue is performance: consider a large file, and just scrubbing up and down with the scroll bar. With the minimap, you have to be able to render thousands of lines of text efficiently, to keep scrolling smooth. I built the rendering structure around this requirement, and I suspect without a lot of attention, typical text rendering code wouldn't be able to layout and draw the text fast enough. Then again, it's not so bad if you would be happy to accept a few limitations, such as fixed width fonts and no soft word wrapping.

jskinner··on Sublime Text
Multi select with the keyboard: * Option one: select a few lines, then press Ctrl+Shift+L to split the selection into one per line * Option two: Ctrl+Alt+Up or Down

Thanks for the heads up about All Hallows Eve... I'll fix it for the next beta. Minimap is tediously resizeable via Preferences/General Preferences (change the value for the minimapMaxWidth value).

There's no built in command to move to the next/prev whitespace line, but it'd be pretty easy to whip up with a Python plugin.

jskinner··on Sublime Text
So, this morning I got up, and noticed my ssh session had died overnight. Didn't think much of it, and headed into the day job.

While doing the morning rounds, and saw that: 1) Cool! Someone likes my editor enough to post it on HN! 2) Well, now I know why my ssh session died.

Unfortunately, there's not much I can do about it from here, so the web site will have to remain down for a while. Thanks for all the kind comments though!

jskinner··on Ask YC: Python vs. PHP
Also, consider that Python has a lot more non-web uses that PHP does. You'll derive more benefit from Python proficiency than PHP.
← PreviousPage 3 of 3