Permalink
Please sign in to comment.
Browse files
• Removing the useless "Triple Quote Selection" commands.
• Improved docmate. Currently, searches a local index file, and loads documentation for current word from http://docs.python.org. If there is more than one possible match, displayes a tm_dialog menu. This is pretty effective, the only drawback is that you have to be online to use it. I will add support for offline docs very soon. The command also remembers what docs you look at the most, so will list them in order of popularity. • Added a macro to forward and backward delete two quotes when pressing ⌫ inside of an empty triple-quoted string. • Made the scope for `Inside String: Insert "…"` more specific. git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6312 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
- Loading branch information...
Showing
with
54,066 additions
and 117 deletions.
- +31 −5 Commands/Documentation in Browser.plist
- +0 −28 Commands/Triple Quote Selection (Double Quotes).tmCommand
- +0 −28 Commands/Triple Quote Selection (Single Quotes).tmCommand
- +33 −0 Macros/Inside Empty Block String: Reduce To Single Quoted String.tmMacro
- +1 −1 Snippets/Inside String: Insert ;touq&…;touq&.tmSnippet
- +1 −1 Snippets/Inside String: Insert ;93#&…;93#&.tmSnippet
- +22,974 −0 Support/DocMate/doc_index.pickle
- +53 −0 Support/DocMate/docmate.py
- +30,872 −0 Support/DocMate/lib.index
- +97 −51 Syntaxes/Python.tmLanguage
- +4 −3 info.plist
@@ -1,28 +0,0 @@ | ||
-<?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>if [ -n "$TM_SELECTED_TEXT" ]; then | ||
- echo -n '"""$TM_SELECTED_TEXT"""$0' | ||
-else | ||
- echo -n '"""$0"""' | ||
-fi</string> | ||
- <key>fallbackInput</key> | ||
- <string>none</string> | ||
- <key>input</key> | ||
- <string>selection</string> | ||
- <key>keyEquivalent</key> | ||
- <string>^"</string> | ||
- <key>name</key> | ||
- <string>Triple Quote Selection (Double Quotes)</string> | ||
- <key>output</key> | ||
- <string>insertAsSnippet</string> | ||
- <key>scope</key> | ||
- <string>source.python</string> | ||
- <key>uuid</key> | ||
- <string>FFBE5EDC-D4C2-4412-A381-E59D40BF910A</string> | ||
-</dict> | ||
-</plist> |
@@ -1,28 +0,0 @@ | ||
-<?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>if [ -n "$TM_SELECTED_TEXT" ]; then | ||
- echo -n "'''$TM_SELECTED_TEXT'''\$0" | ||
-else | ||
- echo -n "'''\$0'''" | ||
-fi</string> | ||
- <key>fallbackInput</key> | ||
- <string>none</string> | ||
- <key>input</key> | ||
- <string>selection</string> | ||
- <key>keyEquivalent</key> | ||
- <string>^'</string> | ||
- <key>name</key> | ||
- <string>Triple Quote Selection (Single Quotes)</string> | ||
- <key>output</key> | ||
- <string>insertAsSnippet</string> | ||
- <key>scope</key> | ||
- <string>source.python</string> | ||
- <key>uuid</key> | ||
- <string>77359DF3-E248-45CE-9A51-AFE55329A725</string> | ||
-</dict> | ||
-</plist> |
@@ -0,0 +1,33 @@ | ||
+<?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>commands</key> | ||
+ <array> | ||
+ <dict> | ||
+ <key>command</key> | ||
+ <string>deleteForward:</string> | ||
+ </dict> | ||
+ <dict> | ||
+ <key>command</key> | ||
+ <string>deleteForward:</string> | ||
+ </dict> | ||
+ <dict> | ||
+ <key>command</key> | ||
+ <string>deleteBackward:</string> | ||
+ </dict> | ||
+ <dict> | ||
+ <key>command</key> | ||
+ <string>deleteBackward:</string> | ||
+ </dict> | ||
+ </array> | ||
+ <key>keyEquivalent</key> | ||
+ <string></string> | ||
+ <key>name</key> | ||
+ <string>Inside Empty Block String: Reduce To Single Quoted String</string> | ||
+ <key>scope</key> | ||
+ <string>source.python string.quoted.single.block meta.empty-string, source.python string.quoted.double.block meta.empty-string</string> | ||
+ <key>uuid</key> | ||
+ <string>8C6C3826-E2AD-410D-9B18-1567F86F7569</string> | ||
+</dict> | ||
+</plist> |

Oops, something went wrong.
0 comments on commit
e4d3a9e