[SVN] r5635 (Python)

Alexander John Ross alex.j.ross at gmail.com
Thu Oct 26 06:31:07 UTC 2006


* Revised the New Class snippet.
* Revised the New Function snippet to not insert 'self' as the first arg.
* Added New Method snippet which inserts self as first arg. TabTrigger: `defs`.
* Added snippets for variations on try/except/else/finally.  All are tab triggered by `try`.
* Added a snippet for the tidy property idiom from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183.  Invoke with `property`.
* Got rid of the getter/setter snippets.  Python programmers really should be using `property` for that kind of thing.
* Added a snippet to insert `(...):` after function and class names.

Changed:
A   trunk/Bundles/Python.tmbundle/Snippets/Inside Class Def: Insert (__):.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Inside Function: Insert (__):.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Inside String: Insert "…".tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Inside String: Insert '…'.tmSnippet
D   trunk/Bundles/Python.tmbundle/Snippets/New Class (class).plist
A   trunk/Bundles/Python.tmbundle/Snippets/New Class.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/New Function.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/New Method.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/New Property.tmSnippet
D   trunk/Bundles/Python.tmbundle/Snippets/Try:Except (try).plist
A   trunk/Bundles/Python.tmbundle/Snippets/Try:Except.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Try:Except:Else.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Try:Except:Else:Finally.tmSnippet
A   trunk/Bundles/Python.tmbundle/Snippets/Try:Except:Finally.tmSnippet
D   trunk/Bundles/Python.tmbundle/Snippets/def.plist
D   trunk/Bundles/Python.tmbundle/Snippets/getter.plist
D   trunk/Bundles/Python.tmbundle/Snippets/if __name__ == '__main__' (ifmain).plist
A   trunk/Bundles/Python.tmbundle/Snippets/if __name__ == '__main__'.tmSnippet
D   trunk/Bundles/Python.tmbundle/Snippets/quote-pair in strings single.plist
D   trunk/Bundles/Python.tmbundle/Snippets/quote-pair in strings.plist
D   trunk/Bundles/Python.tmbundle/Snippets/self (.).plist
A   trunk/Bundles/Python.tmbundle/Snippets/self.tmSnippet
D   trunk/Bundles/Python.tmbundle/Snippets/setter.plist



More information about the textmate-dev mailing list