Skip to content

Comment on Configuring Sublime Text 2

Comments

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} },

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.

IIRC, ⌘P was Sublime's original mapping, and then ⌘T was added on Mac because the then-extremely-popular TextMate had a well-known ⌘T function that was similar.

And the famous CommandT plugin for vim inspired from Textmate.

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.

On my nearly-vanilla install, cmd-t doesn't do anything.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.