Live data from Hacker News

Some things beginners might not know about Sublime Text

blog.alainmeier.com

101–110 of 116 posts

Re: Some things beginners might not know about Sublime Text

#102
post #93

Earlier quoted context omitted.

If it's worth doing, it's worth doing right. Respect others and they will respect your work.

This is a worthless, false platitude.

So we know your stance on courtesy and respect to others.

Re: Some things beginners might not know about Sublime Text

#103

Earlier quoted context omitted.

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.ur…

Your reaction is understandable but wrong. It's a ugly, horrific block of code that you copy/paste and never think of or see again. The package manager itself makes the installation and management of 3rd party packages incredibly easy. It's super impressive really. Naturally people ask if the 3rd package manager will become an official feature but that opens up a new can of worms.

If a package manager is needed then it is needed. Let's do it the right way.

Re: Some things beginners might not know about Sublime Text

#104
post #93

Earlier quoted context omitted.

This is a worthless, false platitude.

So we know your stance on courtesy and respect to others.

It needed to be said, and the style was intentional. Statements like the one you made sound right and are easy for readers to accept as fact. My comment was intended to make people go back and reevaluate yours. I think it was accurate, effective rhetoric. It wasn't intended as a judgment of your worth; just as a judgment of that particular comment's worth.

Re: Some things beginners might not know about Sublime Text

#105
post #8

Also a must-have: Sublime Package Control http://wbond.net/sublime_packages/package_control Useful for installing things like themes, syntax awareness, code linters, etc...

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.ur…

Agreed. It doesn't go with the rest of ST2 ease of use. I was shocked that people think this is whining, but then remembered that programmers are used to putting up with the obviously-less-than-ideal:

"Computer people generally design terrible computer interfaces because they are not only willing to cope with something bad, they're pleased to."

- Alan kay, Personal Computing Historic Beginnings

Re: Some things beginners might not know about Sublime Text

#106
post #15

Cmd + d selects the current word. Subsequent Cmd + d presses will select the following instance of the word for editing. Makes it easy to do things such as renaming a local variable or changing both the opening and closing element of a HTML tag.

This doesn't seem to do anything for me, (on mountain lion)

Re: Some things beginners might not know about Sublime Text

#107
post #8

Also a must-have: Sublime Package Control http://wbond.net/sublime_packages/package_control Useful for installing things like themes, syntax awareness, code linters, etc...

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.ur…

I haven't had a chance to checkout Sublime Text 2, but that sample prompted me to download it after finding out it has a console that will accept python as a way to install packages.

I'd prefer that to a black-box installer.

Re: Some things beginners might not know about Sublime Text

#108

I hadn't noticed this before, but you can create a new file by (double?) clicking anywhere in the empty area in the tab bar.

Really? This is the one thing I've been missing from Notepad++ that I could never get working in either the Windows or Mac versions of ST2. Maybe it landed in that update last night or the night before.

Re: Some things beginners might not know about Sublime Text

#110
post #25

Earlier quoted context omitted.

What's really wild is if you do CMD+d several times and then move around with the arrow keys. Multiple cursors follow you around. I'm not sure if this is useful, but it's certainly cool.

Way useful. You can, for example, select all instances of a variable name, then rename it selectively from the middle of the selection if you want. Also good to note: Command-F find also has a "Find All" option which can be faster than pressing Command-D multiple times, and also allows more complex non-word and regexp searches. From there you can use multiple cursors or replace the whole selection just by typing. Bri…

+1.

One minor complaint: I wish cmd+D had a "whole words only" setting. Its confusing when using with the "highlight all matches" feature, which is "whole words only" IIRC.

Post reply on HN