Fun with Python and Javascript

ontheplates.com - mybucket.co - Didip Kerabat

13 notes

Good Bye TextMate

It’s been fun a ride. We’ve known each other since 2006. Through good times and bad times. One dotcom to another. I know your shortcuts like the back of my own hands.

But it’s time to move on. You are starting to show your age. Accidental Command+Shift+F always killed you while Command+T is too slow on TextMate 2 Alpha.

Meet my new editor, Sublime Text 2. Here are a few tips I just discovered on OS X.

How to: Setup command line executable

Follow this instruction.

How to: Open Python prompt

Press Control+`

How to: Install Package Control

Follow this instruction.

How to: Install Git package

Follow this instruction.

How to: Install any packages

  1. Press Command+Shift+P to open context sensitive menu.
  2. Type packin, it will reveal Package Control: Install Package.
  3. Type whatever package you expect to find.

How to: Use git blame on current buffer file

  1. Install Git package first. See above.
  2. Press Command+Shift+P to open context sensitive menu.
  3. Type gitbl, it will reveal Git Blame.
  4. Press enter.

How to: Select with multiple cursors

Press Command while clicking.

How to: Indent a block of text

  1. Highlight the text.
  2. Indent outward with Command+] or inward with Command+[

How to: go to line in opened file

Press Control+G (This one bugs me a little). It turns out, I can also do: Command+P, then : (colon)

How to: go to method in opened file

Press Command+R

How to: find and replace in opened file

Press Command+Alt+F

That said, I prefer my Command+F to do the job. So I changed the key bindings. To do that:

  1. open Preferences > Key Bindings
  2. reverse the following:

{ “keys”: [“super+f”], “command”: “show_panel”, “args”: {“panel”: “find”} },
{ “keys”: [“super+alt+f”], “command”: “show_panel”, “args”: {“panel”: “replace”} },

How to: Debug your Flask or Tornado application interactively

  1. Open Python prompt using: Control+`
  2. Import your Application object.

More resources:

Filed under sublime text textmate editor python

  1. didip posted this