Sathors
d37bec772a
defs snippet name clash
...
In UltiSnips/python.snippets defs is used to define a staticmethod, in snippets/python.snippets defs is used to define a method.
defs to define a method is not a good name, defm would be better.
2015-04-01 10:13:53 -05:00
Tony Narlock
03e8f5c2f5
Update prompt_toolkit to ptpython, fix argument defaults.
2015-03-20 11:41:14 -07:00
Andrea Giardini
e187f5a784
Added snippet for remote python debugger (rpdb)
2015-01-26 19:17:55 +01:00
Tony Narlock
99fe636f09
Snippet for python prompt toolkit embed
...
https://github.com/jonathanslenders/python-prompt-toolkit
```python
from prompt_toolkit.contrib.repl import embed
embed(globals(), locals(), vi_mode=False, history_filename=None)
```
2015-01-07 11:02:18 -08:00
Yike Lu
8832cee4c2
Add iem python snippet for embedded ipython
2015-01-06 13:24:16 -06:00
guneysus
4f2e0a03f1
Python args and kwargs snippets
2014-12-18 18:21:43 +02:00
Steeve
593a3b79df
lkwg LocalKeyWordargumentGet
2014-04-14 12:30:29 +02:00
Steeve
7f65658f47
remove useless $0
2014-04-14 12:28:03 +02:00
Steeve
fea2ddc004
key word argument get (kwg)
...
a common usage -especially when overloading class- is to use `*args` array and `**kwargs` dictionary to handle method's arguments
this snippet is usefull to quickly get the argument value from the keyword arguments dictionary -kwargs- or setting a default value
2014-04-10 11:17:29 +02:00
Steeve
fa6d71e49e
add def overloading methode (dol)
...
I add it because I use it many times a day -not only for the `__init__` method-
this snippet is very useful to me, no need to call super and handle all args and kwargs, and no more typo errors :D
2014-04-09 12:27:32 +02:00
Muhammad Hallaj Subery
ba94750df1
Update python.snippets
...
adding code encoding.
2014-03-27 12:08:39 +08:00
Cooper LeBrun
6fd0406879
added a section for assertions, and a simple assertEqual snippet
2013-10-22 18:56:21 -07:00
Adnan Zafar
7f9c4f5807
Modify snippets to support zero tabstop
2013-09-05 14:53:52 -04:00
Santiago Gallego
6164455931
Added python epydoc snippet
2013-07-18 21:31:59 +02:00
Marc Weber
80697bea6f
replace Filename by vim_snippets#Filename and document it
...
It doesn't make sense that all snippet engines have to
keep this function somewhere
2013-07-08 23:47:14 +02:00
Matt Stevens
8e678bd903
Add snippet for pudb in Python
2013-07-03 09:48:45 +01:00
Tobie Warburton
17b4633bdc
added __unicode__ python snippet
2013-06-26 10:42:22 +01:00
Michael Thessel
5da33b7a01
Removed unnecessary whitespace from the end of the line
2013-06-20 23:57:07 +02:00
Michael Thessel
4eb88d7993
Removed comment blocks from placeholders
2013-06-20 23:57:07 +02:00
Meng Zhuo
72eeef77de
fix lambda conflict #208 with alter logger.debug into lg
2013-05-27 10:51:49 +08:00
Meng Zhuo
1c060f7b12
fix lambda conflict with logger.debug
2013-05-24 17:00:04 +08:00
Meng Zhuo
aabd2d94ca
fix glog $2 not right
2013-05-17 11:28:28 +08:00
Meng Zhuo
36d57ca156
add logging in python snippets
2013-05-17 11:19:50 +08:00
Joey Curtin
eb7fccc558
added email and github to python.snippte-docs
2013-03-30 11:08:09 -04:00
Oliver Andrich
c3ae804a82
A more complete property snippet for python.
...
This snippet is inspired by the snippet provided by Sublime Text. The
current snippet in the upstream repository is missing at least two
lines:
return locals()
$1 = property(**$1())
2013-01-27 20:13:33 +01:00
Bradlee Speice
fabf19a0e3
Add code for getopt in C, python, and BASH
2012-12-07 09:11:55 -05:00
Marc Weber
373516590e
Revert "add guard to the . python implementation"
...
reason: causes syntax problems to some people, and there may be bigger
changes due to evaluating merging with ultisnips anyway.
This reverts commit ad850f303b
.
2012-12-03 09:39:21 +01:00
Marc Weber
ad850f303b
add guard to the . python implementation
2012-11-29 11:25:43 +01:00
Jakub Stasiak
9a63deb18a
Use "# TODO: write code..." as code placeholder in Python snippets ( #34 )
2012-11-03 12:04:43 +01:00
Zaven Muradyan
80f98cd938
Add pprint snippet for Python
2012-07-03 00:40:37 -07:00
sirex
420ad0860c
Missing colon in 'for' snippet.
2011-12-10 21:02:31 +02:00
Panagiotis Mavrogiorgos
bad80561b2
Removed the "gpl" snippet from the python file and added alla the common open source licenses to the global snippet file.
2011-11-24 18:48:31 +02:00
Marc Weber
b267b8cdff
fix with python snippet as suggested in issue 47
2011-11-24 13:40:22 +01:00
Marc Weber
81d4f96e30
snippets I use and fut snippet issue 46
2011-11-24 13:38:52 +01:00
Rich Layte
df5dcba57e
add test and testcase to python
2011-10-31 17:01:25 +00:00
Rich Layte
354ff5427c
add from to python snippets
2011-10-19 21:56:00 +00:00
JuanPablo
47ec0c6d2a
python def without fold
2011-08-03 10:59:59 -04:00
JuanPablo
9d03e71712
fold para python def
2011-08-03 10:59:58 -04:00
Philippe Mongeau
d0f452273b
fixed utf-8 snippet
2011-08-02 20:04:29 -04:00
Waldecir Santos
8e4c58aee1
change ifs keywords
2011-07-23 20:06:58 -03:00
Waldecir Santos
deadccf0a7
More python snippets
2011-07-16 12:21:36 -03:00
Honza Pokorny
f7b14b8db2
Add Python doc snippet.
2011-07-07 15:41:13 -03:00
Honza Pokorny
228439d6b7
Remove folding markers from python.snippets.
2011-07-07 15:03:58 -03:00
JuanPablo
dbd48df062
marker folding in python functions and methods
2011-06-22 03:28:13 +02:00
Marc Weber
94aebfaadd
Move all snippet files into a snippets directory so that you can install it
...
using VAM. The reason is that snipmate automatically looks for snippets
found in &rtp/snippets
2011-06-21 09:02:13 +02:00