Skip to content

Commit

Permalink
Add shift-return to Python (bring it in line with ruby, etc)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3208 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
David Powers committed May 3, 2006
1 parent f8620a7 commit 178b82b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Commands/New Function.plist
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>cat &lt;&lt;SNIPPET
def ${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}(\${2:self}):
\${3:pass}
SNIPPET</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>$</string>
<key>name</key>
<string>New Function</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.python</string>
<key>uuid</key>
<string>75929BC0-24E5-456D-9FC5-91BF4B490027</string>
</dict>
</plist>
Expand Down
2 changes: 2 additions & 0 deletions info.plist
Expand Up @@ -14,6 +14,7 @@
<string>5BBD932E-7BB0-11D9-8E83-000D93B6E43C</string>
<string>095E8342-FAED-4B95-A229-E245B0B601A7</string>
<string>95FFEECE-73E4-4B33-9CAE-1641C62FFBC0</string>
<string>75929BC0-24E5-456D-9FC5-91BF4B490027</string>
<string>8FBF7D90-D1FC-49EE-AC1B-14BE5FB11647</string>
<string>7797CDD8-76A2-4A5C-A41C-9AA7E6FBBA84</string>
<string>DAEF8E5C-9C78-43CC-B46B-E19327E67676</string>
Expand All @@ -25,6 +26,7 @@
<string>D1D53498-B33A-11D9-89C9-000D93347A42</string>
<string>F3FFF149-B33A-11D9-89C9-000D93347A42</string>
<string>E8128DB6-AF28-4ABA-A1EE-334584D19BE5</string>
<string>FD868CF0-FEF8-471B-BB6D-F2D7F54F71F3</string>
<string>F23DB5B2-7D08-11D9-A709-000D93B6E43C</string>
<string>6FE0069A-CDD5-4975-8CC1-1E137C390965</string>
<string>33877934-69D3-4773-8786-9B5211012A9A</string>
Expand Down

0 comments on commit 178b82b

Please sign in to comment.