Live data from Hacker News

Configuring Sublime Text 2

mutuallyhuman.com

11–20 of 92 posts

Re: Configuring Sublime Text 2

#11

Can someone explain the difference between command-p and command-t?

On OS X, they appear to do the same thing.

On Windows, ctrl-t doesn't seem to do anything.

I don't have Sublime set up on Linux so I can test there.

I suspect the author has an older configuration since he's been using it for almost 2 years, and that the keybinding probably changed since then to cmd-p.

Re: Configuring Sublime Text 2

#12
post #9

Can someone explain the difference between command-p and command-t?

Traditionally, command-P prints and command-t opens a new tab.

Neither of these are the case in Sublime Text 2. cmd-n opens a new tab and cmd+shift+n opens a new window.

Re: Configuring Sublime Text 2

#13
post #10

Another useful tip for navigation - when using the fuzzy search, you can start typing a filename to jump to that file, then with that still in the search box, hit # and start typing a keyword to jump to in that file. So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the ava…

An even better one IMO is @, same thing as with # but it uses symbols.

Re: Configuring Sublime Text 2

#14

Can someone explain the difference between command-p and command-t?

They do the same thing, they are defined as:

  { "keys": ["super+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
  { "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },

Re: Configuring Sublime Text 2

#15

Can someone explain the difference between command-p and command-t?

On OS X, they appear to do the same thing. On Windows, ctrl-t doesn't seem to do anything. I don't have Sublime set up on Linux so I can test there. I suspect the author has an older configuration since he's been using it for almost 2 years, and that the keybinding probably changed since then to cmd-p.

Sublime has both cmd-t and cmd-p in the OS X version, the general thinking for this seems to be related to other editors (such as Textmate) having used cmd-t. By having this in Sublime by default switching becomes easier.

Re: Configuring Sublime Text 2

#16

Does sublime text 2 work well with CL or Haskell?

I tried using it with Clojure (FWIW) and I really disliked the REPL's style (maybe I am too used to Emacs here).

I have since decided to use Sublime Text for Python, LaTeX, C, C++ (it really shines there) and Emacs for Racket and Clojure (I don't use it so much).

Re: Configuring Sublime Text 2

#17
post #10

Another useful tip for navigation - when using the fuzzy search, you can start typing a filename to jump to that file, then with that still in the search box, hit # and start typing a keyword to jump to in that file. So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the ava…

An even better one IMO is @, same thing as with # but it uses symbols.

Or : to jump to a line number. Beautiful.

Re: Configuring Sublime Text 2

#18
> FileDiffs - This can be a really useful tool for diffing files. [...]

This is something I've been looking for. I had to use an external diff tool or vimdiff, but this might change things quite a bit.

The other thing that would be a great addition to ST2 (if not existing already) would be a search by symbol in all project files. Currently Cmd+R is great for navigating to a symbol in the current file. Extending this to a whole project would be awesome.

Re: Configuring Sublime Text 2

#19
post #10

Another useful tip for navigation - when using the fuzzy search, you can start typing a filename to jump to that file, then with that still in the search box, hit # and start typing a keyword to jump to in that file. So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the ava…

An even better one IMO is @, same thing as with # but it uses symbols.

You can get that via Ctrl-R (or Cmd, if on a Mac).

Ctrl-; brings up fuzzy matching for words in the file.

Re: Configuring Sublime Text 2

#20
Here are two other sources that I found pretty useful when switching to Sublime.

http://net.tutsplus.com/tutorials/tools-and-tips/essential-s...

I'm not a huge fan of video sources when I could just look at images/read text and get it done faster, but these do offer some pretty good stuff. I was fond of him giving me the idea to use the Gist plugin, creating a new account, and have a great way to manage snippets.

http://net.tutsplus.com/articles/news/perfect-workflow-in-su...

Post reply on HN