Mathew Attlee
fff3ae4061
Strict typed snippets for PHP getters that check declare(strict_types=1) or for g:ultisnips_php_scalar_types=1
2016-06-29 22:27:30 +01:00
Louis Pilfold
3c262302b5
Merge pull request #757 from gustavooferreira/master
...
Added new snippets to json file.
2016-06-22 13:52:12 +01:00
Gustavo Ferreira
ece5fc1593
Added new snippets to json file.
2016-06-22 03:00:57 +01:00
Mathieu Comandon
d879609014
Fix csrf snippet name in htmldjango
2016-06-21 17:36:46 -07:00
Mathew Attlee
e016f1f78f
Refactored PHP getter and setter snippets to have consistent triggers
2016-06-17 15:18:04 +01:00
Louis Pilfold
1f18320a0d
Merge pull request #698 from oddlydrawn/java_add_num_fix_ws
...
UltiSnips/java.snippets: Adds numbers to word in getArgs, Removes whitespace after braces
2016-06-17 09:30:22 +01:00
Mathew Attlee
09068dc107
Fixed PHP snippets for sbscalar and snbscalar, refactored gs
2016-06-16 19:27:02 +01:00
Mathew Attlee
f79462e9ec
Consolidated PHP snippets and removed UltiSnips duplicates
2016-05-29 12:51:19 +01:00
Mathew Attlee
c2cb84db11
Removed redundant UltiSnips for Twig
2016-05-27 14:20:58 +01:00
Mathew Attlee
120ead2c37
Tidied up and consolidated snippets for PHPUnit
2016-05-27 13:18:16 +01:00
Mathew Attlee
9a8082aba6
Fixed the PHPDoc block for the getter to use @return
2016-05-25 08:57:06 +01:00
Mathew Attlee
1fb648c5e8
PHPUnit snippets for setup, tear down and marking tests skipped
2016-05-22 12:33:36 +01:00
Mathew Attlee
dcab6f8d0a
phpspec matcher snippets
2016-05-15 10:42:28 +01:00
Mathew Attlee
e8cb8d0165
PHP and Twig conditional snippets to be consistent with naming convention: if, ife, eif, el, wh
2016-05-05 14:23:12 +01:00
Mathew Attlee
e7af7326ea
Initial snippets for phpspec
2016-04-30 16:31:04 +01:00
Mathew Attlee
c95c0e4cda
Fix the PHPDoc for trait snippet
2016-04-30 13:57:11 +01:00
Mathew Attlee
a13199fb3c
Moved snippet sfa
into Symfony snippets
2016-04-30 13:33:27 +01:00
Mathew Attlee
9bee55407f
Trait snippet for PHP
2016-04-30 13:33:25 +01:00
Mathew Attlee
05b7e5c4e2
Updated PHPUnit, Symfony and Laravel class snippets to be consistent
...
with existing PHP snippets' namespace and adding `<?php`
Changed PHPUnit and Symfony snippet's namespace and author to be consistent with other PHP snippets
class
blah
2016-04-30 11:35:24 +01:00
Mathew Attlee
a5edd3369e
Use relative path when determining namespace
for PHP snippet
2016-04-29 17:32:57 +01:00
protream
517dc9f8b5
snippet pmdoc
: improve compatibility
2016-04-26 17:26:46 +08:00
protream
42c2b78470
snippet pmdoc
: fix year generate error and make variables more readable
2016-04-19 17:30:04 +08:00
protream
3532786cd0
Python: add a snippet to generate pocoo style module doc string
2016-04-16 23:47:45 +08:00
Laurent Georget
c133679866
C++: Add a snippet to generate an entire .h skeleton
2016-04-07 10:25:51 +02:00
Laurent Georget
47f262c64c
r: Close the Else-If snippet
2016-04-06 22:34:54 +02:00
toogley
5590616c4a
fix 'sbash' snippet interpreting newline and tab character
...
This pullrequest: https://github.com/honza/vim-snippets/pull/704 introduced a
new bug of the 'sbash' snippet of Ultisnips. Python interpreted the \n and \t in
IFS=$'\n\t' and executed them instead of assigning it to the variable IFS.
2016-03-21 17:17:01 +01:00
toogley
65211115a0
make default settings for bash more reliable
...
see http://redsymbol.net/articles/unofficial-bash-strict-mode/ for explanation
why this might be useful.
2016-03-20 20:19:08 +01:00
Florian Sattler
979b9cd49d
Changed ifndef snippet to #ifndef
...
This makes it consistent with the other C macro snippets
2016-03-15 10:38:49 +01:00
oddlydrawn
3d4994b64b
Removes clc getter tab, Removes white space in md, Adds blank line w/o indent in gs
2016-03-11 13:31:09 -07:00
oddlydrawn
7bedb44b55
Adds numbers to word in getArgs, Removes whitespace after braces
2016-03-10 18:46:11 -07:00
Sam Shepherd
edc4eedf9a
Added Anonymous Function (javascript) for UltiSnips. Supports $VISUAL.
2016-03-10 10:09:21 -06:00
Vzaa
9f95287083
Rust: remove semicolons from constructor returns
2016-03-09 13:34:44 +02:00
Louis Pilfold
9160fed96c
Merge pull request #693 from carlitux/master
...
Fix DecimalField on models
2016-03-08 09:37:53 +00:00
Luis Carlos Cruz
287de632d9
Add Default values on DecimaField
2016-03-07 22:39:27 -04:00
Luis Carlos Cruz
647e5c3811
Fix DecimalField on models
2016-03-07 22:37:02 -04:00
Louis Pilfold
83d331ffb6
Reduce duplication in Go
2016-03-03 11:56:37 +00:00
daa84
eb11eb41ec
fix macro snippet for rust
...
() replaced with {}
2016-03-03 12:06:54 +03:00
Ricardo Jesus
0f25922960
Missed 'art'
...
Minor error but two '#' were missing on an header.
2016-02-13 21:43:50 +00:00
Andy Waite
62e94f5b06
Remove snippet for deprecated find(:all)
...
This was removed in Rails 4.
http://blog.remarkablelabs.com/2012/12/what-s-new-in-active-record-rails-4-countdown-to-2013
2016-02-07 20:32:22 +00:00
Andy Waite
e97e0d097c
Remove respond_with
snippet
...
This is no longer part of Rails, it's now handled by the responders gem.
http://weblog.rubyonrails.org/2014/8/20/Rails-4-2-beta1/
2016-02-07 20:31:05 +00:00
Andy Waite
16e922e7fe
Use update
rather than `update_attributes
...
`update_attributes` is deprecated:
https://github.com/rails/rails/pull/6739
2016-02-07 20:28:55 +00:00
Andy Waite
31b2fe023a
Change Rails snippet triggers
...
At present, `cla` maps to both Create Controller Class and Create
Functional Test class.
Using `cla` for creating a controller seems overly-general, since we may
want triggers for other types of classes, e.g. models. So I propose
changing this to `clac`.
And to remove ambiguity, I propose using `clact` for the controller test.
2016-02-07 14:54:19 +00:00
Daniel Hahler
e8b7ebb913
python: fix multiple commands on a single line; add bpdb
...
Otherwise style checkers will usually complain about it, and e.g.
'flake8' cannot be made to ignore it with '# noqa' at the end.
I also adds the "bpdb" snippet, and only defines them in the snipmate
format, not UltiSnips'.
Therefore "ipy" is only available as "iem" now.
Ref: https://github.com/honza/vim-snippets/pull/675#issuecomment-176840647
2016-01-30 14:43:06 +01:00
Fuad Saud
08a94d1ce3
Remove duplicate ruby block snippets
2016-01-05 22:04:00 -02:00
Louis Pilfold
b5ab96b6a5
Reorganise Haskell snippets
2015-11-28 00:50:11 +00:00
ChickenNuggers
11ad17eac9
lua snippet // loops, blocks, and pcall
2015-11-26 11:39:05 -06:00
yvhn
45ef7b6425
Add "ipy" snippet to embed IPython shell into the code
2015-11-21 15:18:02 +02:00
Nate Mara
1c08287613
Add comment ending ifndef block to ifndef c snippet
2015-11-04 16:35:52 +01:00
Holger Rapp
1058eea45c
Merge pull request #637 from mangege/master
...
add i and w option to eruby
2015-10-29 08:06:41 +01:00
mangege
e12c3e63c7
add link_to
2015-10-29 15:03:45 +08:00