I often want to find uncommented print statements in my (Python) file. I have a simple regex ^\s*print that does the job. Is there a way to assign this to a keyboard shortcut so it will Find the next uncommented print, without me having to enter the regex?
My first thought was to create a command that will find it, but I don’t have a way to move the cursor to the line once I find it.
You can use the Macro feature inside TextMate:
Start Recording(⌥⌘M)Stop Recording(⌥⌘M)Save Last Recording(⌃⌘M)