Commit Graph

351 Commits

Author SHA1 Message Date
Holger Rapp
ab4602a89f Merge pull request #523 from mjacobus/fix-php-cs
Fixed some PHP Code Standards
2015-04-23 08:06:20 +02:00
Chad Paradis
f41ab9d444 Changed style for c snippets
Moved braces to same line for main and fun snippets.
2015-04-22 20:45:45 -04:00
Holger Rapp
a9f59243d8 Merge pull request #564 from FiloSpaTeam/master
laravel: New snippet. Small fix.
2015-04-22 06:05:35 +02:00
Claudio Maradonna
0fa2518a60 New snippet for laravel(Snipmate). Small fix in laravel snippet(Ultisnips) 2015-04-17 20:00:16 +02:00
Louis Pilfold
ad86122fc7 Merge pull request #555 from FiloSpaTeam/master
Update snippet for laravel Framework
2015-04-15 00:29:49 +01:00
Gabriel Chavez
d789b0abef Change for, if, else, and struct to K&R style. 2015-04-14 11:17:25 +03:00
Claudio Maradonna
6915c69d94 Update snippet for laravel Framework 2015-04-09 01:47:46 +02:00
Louis Pilfold
061f32a08a Eelixir if, ife, for 2015-04-03 11:38:47 +01:00
Holger Rapp
171c637d5c Merge pull request #542 from mMontu/master
all: Fix bbox outside the first column (consider &tw)
2015-03-23 08:03:10 +01:00
Louis Pilfold
7d13d521b4 eElixir, remove trailing ) from lin 2015-03-19 10:28:00 +00:00
Louis Pilfold
94d3dab682 Elixir form snippets 2015-03-16 23:30:02 +00:00
Louis Pilfold
1f0932bba5 eelixir form_tag, link 2015-03-16 23:06:58 +00:00
Louis Pilfold
7746cec77c Ultisnips eelixir and HTML tweaks 2015-03-16 22:50:34 +00:00
mMontu
a83b3db1b3 Fix bbox outside the first column (consider &tw) 2015-03-12 10:04:30 -03:00
Louis Pilfold
8d956a2a24 Merge pull request #528 from ches/rust
Update Rust snippets
2015-03-12 08:36:11 +00:00
Louis Pilfold
cf5801918a Merge pull request #533 from 1ny/master
HTTP handler and Error handling snippets in Go
2015-03-06 23:06:34 +00:00
Chen Zhongzheng
c76ec98eee correct img tag 2015-03-06 17:27:23 +08:00
Louis Pilfold
a4465c7f24 Oops. Give eelixir snippets correct file extension 2015-03-04 20:59:12 +00:00
Namit
6a11038301 Replace two space indentation with tab 2015-03-04 08:56:17 -08:00
Louis Pilfold
902ae7190f Ultisnips HTML tweaks 2015-03-04 14:43:15 +00:00
Louis Pilfold
1cf596eaae Ultisnips eElixir extends HTML 2015-03-04 14:35:32 +00:00
Namit
4dae57d0a2 Add HTTP handler in go.snippets 2015-03-03 16:32:08 -08:00
Namit
a942cbb2db Add error handling in go.snippets 2015-03-03 16:04:52 -08:00
Marcelo Jacobus
29903a019e Fixed non-documentary placeholders 2015-03-02 16:30:48 +01:00
Ches Martin
982f347238 rust: Fix nesting for impl snippet in SM/US 2015-02-28 21:15:58 -05:00
Ches Martin
f2929081b1 Update Rust snippets
Add descriptions to Snipmate snippets, update some snippets for
changed/deprecated Rust features, add some new bits.
2015-02-28 20:21:04 -05:00
Mickey
62dc7d6cf3 Update UltiSnips/eruby.snippets,
replaced radio_box with radio_button
2015-02-25 21:36:01 +08:00
Marcelo Jacobus
6c9ec92eec Fixed some PHP Code Standards 2015-02-24 17:23:50 +01:00
Louis Pilfold
1831acc72f Remove Elixir duplicate snippets 2015-02-17 21:55:27 +00:00
Julien Deniau
01a85b1d63 remove blank lines 2015-02-12 11:10:28 +01:00
Julien Deniau
051bc1a91c Fix copy/paste bug 2015-02-12 11:07:46 +01:00
Holger Rapp
0deb4bd28b Fix #435. 2015-02-07 09:52:48 +01:00
Julien Deniau
23ee37a49c Update PHP class and interface snippets
Include <?php and namespace automatically
2015-02-03 10:49:07 +01:00
Thomas Szymanski
f4d267dd63 Add a missing closing double quote in HTML 2015-01-31 18:18:59 +01:00
Holger Rapp
80adcd3418 Merge pull request #514 from jdeniau/patch-1
Php: Update PHP getter setter
2015-01-30 21:55:11 +01:00
Holger Rapp
61b8ee6c23 Merge pull request #509 from FiloSpaTeam/master
Laravel: Bug fix for Laravel snippet
2015-01-30 21:51:34 +01:00
Claudio Maradonna
af05269858 Bug fix laravel snippet 2015-01-30 18:08:12 +01:00
Julien Deniau
5b86f089dc Update PHP getter setter
Add return / parameter types
Set @param and @return
2015-01-30 15:25:14 +01:00
Ches Martin
d9a5607c8f erlang: remove spaces before parens in UltiSnips
This is almost never seen in common Erlang style, and was inconsistent
with the Snipmate snippets for Erlang.

Adds a list comprehension snippet, as a bonus.
2015-01-25 01:12:29 +08:00
Claudio Maradonna
9e904e17df Another bug fix 2015-01-20 17:21:02 +01:00
Claudio Maradonna
66079c34e8 Bug fix laravel snippet 2015-01-20 17:12:38 +01:00
m-pilia
058bde6434 remove duplicate license snippets 2015-01-17 17:10:08 +01:00
Claudio Maradonna
e146339270 Optimized Resource Controller Laravel in php_laravel snippet 2015-01-16 11:00:18 +01:00
Louis Pilfold
2ce8ef4ddd ERB: Remove redundant ultisnips if 2015-01-15 21:29:45 +00:00
Holger Rapp
a6db63d83f Merge pull request #505 from FiloSpaTeam/master
Laravel: Bug fix for Laravel snippet
2015-01-15 07:53:49 +01:00
Claudio Maradonna
634efcfc0a Another bug fix for Laravel Snippet 2015-01-14 22:44:54 +01:00
Claudio Maradonna
b51b2766fd Another bug fix for Laravel Snippet 2015-01-14 22:42:30 +01:00
Claudio Maradonna
83be78b087 Bug fix with Laravel snippet 2015-01-14 22:35:12 +01:00
Holger Rapp
ed492a9cec Merge pull request #501 from FiloSpaTeam/master
php: Laravel Snippets
2015-01-11 12:36:40 +01:00
Claudio Maradonna
9bf5d0f412 Added b option to prevent snippet inline 2015-01-11 12:35:37 +01:00
Holger Rapp
ac2fca2e14 Merge pull request #502 from nerdwaller/master
Angular: snippets updated to build your param list automatically
2015-01-11 11:28:55 +01:00
Louis Pilfold
69d3b5e02e Remove a load of duplication from Rust snippets 2015-01-11 01:57:32 +00:00
Louis Pilfold
18733185c1 Update Rust for to use new range syntax 2015-01-11 01:41:41 +00:00
Matt Rasband
5023e19b96 updated angular snippets to auto populate params based on the param annotations 2015-01-05 09:09:44 -05:00
Claudio Maradonna
000fad2c34 Added Laravel Snippet 2015-01-05 09:37:56 +01:00
Marcelo D Montu
6a679df97f Fix box and bbox snippets outside the first column 2014-12-19 15:00:31 -02:00
Louis Pilfold
e0b29dd553 Ultisnips eruby: Start removing snippets duplication 2014-12-16 17:04:52 +00:00
Louis Pilfold
ac2db9ee7a Ultisnips HTML: H1s should not always have IDs.
Who on thought that was a good idea..?
2014-12-09 11:00:42 +00:00
Louis Pilfold
b1a62cfb14 Remove duplicate JS if ife 2014-12-04 13:46:03 +00:00
Louis Pilfold
b988fb9576 Ruby: Remove some duplication 2014-11-27 14:27:01 +00:00
Louis Pilfold
2796cf66de Ruby: Remove 2 snippets that save a negative number of keypresses 2014-11-27 14:06:46 +00:00
Louis Pilfold
1d9afe253b Ruby: Remove lots of placeholder text 2014-11-27 14:01:00 +00:00
Louis Pilfold
c46251515f Ruby: Remove excessive whitespace 2014-11-27 14:01:00 +00:00
Louis Pilfold
b7fb63cd15 Ruby: def with params to fill style guide 2014-11-27 14:01:00 +00:00
Louis Pilfold
78c2c1dc3b Remove duplicated html5 snippet
Exists in snipmate form
2014-11-25 10:52:27 +00:00
Louis Pilfold
a7231e8565 Javascrip: vf, make "var" optional 2014-11-14 12:40:29 +00:00
Mario de Frutos
03d94e780d Added phpunit comment with group option 2014-11-11 17:28:53 +01:00
Philipp Jovanovic
48118a1afc Add TeX Table environment 2014-11-02 21:30:45 +01:00
Louis Pilfold
b788a4384e Ultisnips haskell where, lambda nospace 2014-10-31 11:47:01 +00:00
Louis Pilfold
ba1cc93be6 Haskell Ultisnips type var cleanup 2014-10-31 11:31:03 +00:00
Craig Paterson
dd8afe92c7 Additional jasmine snippets for the following completions:
* toHaveBeenCalled
* toHaveBeenCalledWith
* not.toHaveBeenCalled
2014-10-29 16:21:34 +02:00
Louis Pilfold
d3f033b21d Ultisnips CSS colour spacing 2014-10-24 10:46:49 +01:00
Holger Rapp
c77db7c7d3 Merge pull request #470 from blueyed/python-doc-quotes
Python: add triple doc quotes and handle expansion of `"|"`
2014-10-23 21:53:06 +02:00
Louis Pilfold
c1ee0ed08a Ultisnips: CSS. Colours, shadows, text-transform.
Also remove IE6 specific fixed position snippet.
2014-10-23 10:26:28 +01:00
Louis Pilfold
ae0cca3345 Ultisnips: Common CSS snippets
These already exist in the `snippets` style, but thse will not be loaded
by Ultisnips when working with SCSS files, due to how the extend feature
works.
2014-10-23 10:00:12 +01:00
Daniel Hahler
1bb849e284 Add snippets ', " and doc
`'` and `"` use a new function `triple_quotes_handle_trailing` which
handles trailing/existing quotes.

This handles expansion of`"|"`, where the second quote gets automatically
inserted by e.g. delimitMate.
2014-10-20 08:31:14 +02:00
Louis Pilfold
7bdc3b047f UltiSnips HTML: Remove redundant img snippet 2014-10-17 10:19:01 +01:00
Louis Pilfold
8637c918ce UltiSnips: HTML div with class. 2014-10-17 10:12:50 +01:00
Louis Pilfold
f910952351 UltiSnips: default to no ID for divs 2014-10-17 10:02:03 +01:00
Louis
e2bd41af02 SCSS snipmate snippes 2014-10-11 13:35:51 +01:00
Louis Pilfold
3216ac221e Fix Bug in UltiSnips/tex.snippets fig env b
As mmclaren42 seems to be MIA, I've fixed committed the fix they
suggested.

https://github.com/honza/vim-snippets/issues/450
2014-10-10 17:19:51 +01:00
Honza Pokorny
850fee18b0 Merge pull request #467 from craigp/angular_minification_fix_plus_additional
Added some additional angular snippets and changed the existing ones
2014-10-09 14:45:23 -03:00
Craig Paterson
ff8c1277be Added some additional angular snippets and changed the existing ones
to use the annotated syntax which supports minifications, see:
https://docs.angularjs.org/tutorial/step_05 (A note on minification).
Also added some variants that auto-insert the scope, which is commonly
done.
2014-10-09 11:26:39 +02:00
Craig Paterson
9191e53407 Change jsdoc author info to match jsdoc documentation format at
http://usejsdoc.org/tags-author.html
2014-10-09 11:01:36 +02:00
Daniel Hahler
3514b3cb44 Use actual value for SINGLE_QUOTES/DOUBLE_QUOTES 2014-10-08 15:23:05 +02:00
Vadim Khohlov
f298510733 Added docstring; removed empty line 2014-10-05 00:25:28 +03:00
Vadim Khohlov
2bffc46ecb Python: added snippets for classmethod and staticmethod 2014-10-02 14:02:26 +03:00
Holger Rapp
a811b756d0 Merge pull request #456 from BlackIkeEagle/php-docblock-methods
Php: docblock methods
2014-09-29 20:22:59 +02:00
BlackEagle
dca6268c24 php add interface snippet similar to class snippet
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:51:44 +02:00
BlackEagle
41f9d7dc5a php extend class snippet so you can easily add abstract or final
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:50:51 +02:00
BlackEagle
6e0180c5fc add inheritdoc docblock snippet
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:19:26 +02:00
BlackEagle
faec22c56d add simple docblocks for class methods
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-23 09:18:53 +02:00
Holger Rapp
0249456bcf Merge pull request #426 from yazengo/master
pandoc: snippets for UltiSnips
2014-09-15 07:20:05 +02:00
Holger Rapp
6db93bcabf Merge pull request #446 from BlackIkeEagle/php-typo
php: fix do{} while snippet typo, does not end on"
2014-09-11 06:27:48 -07:00
BlackEagle
9665df2022 php :: add elseif
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-11 14:06:36 +02:00
BlackEagle
ace1d94dd8 php :: fix do{}while snippet typo, does not end on"
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-09-11 13:58:01 +02:00
Bernhard Graf
04b34330ee add snippet for until 2014-09-07 15:05:37 +02:00
Procras
e0b428f191 remove last blank line for ONCE snippet 2014-09-05 10:58:09 +08:00
xz.zhang
8ab05aaa9f remove priority in the first line 2014-09-04 09:03:28 +08:00
Michael Gehring
2f5af90bc7 Update rust snippets 2014-09-02 20:37:58 +02:00
Holger Rapp
6f1eacee1c Merge pull request #421 from ethervoid/pr_snippet_collision
php: Avoid collision with print_r snippet
2014-09-01 07:11:21 +02:00
Holger Rapp
d0e8361eef Merge pull request #434 from feju/master
SCSS: Adds extends css and removes unnecessary regular expression triggers.
2014-09-01 06:15:53 +02:00
Felix Jung
c2ba253951 Fixes and CSS support
- Removed regular expressions since they break YCM previews
- Extends the CSS snippets so you can use CSS snippets in Sass
2014-08-31 19:50:09 +02:00
Filipe Giusti
bc75e48a73 Add <th> in html 2014-08-29 17:44:54 -03:00
xz.zhang
21790c67c9 correct option 2014-08-29 15:45:25 +08:00
xz.zhang
474fbee731 pull request review 2014-08-28 15:27:29 +08:00
xz.zhang
7036579635 add pandoc snippet for UltiSnips 2014-08-26 19:52:53 +08:00
obaoba
f7d4aa5efa adding Ada snippets 2014-08-23 16:13:08 +02:00
X4fyr
1d5ccd6f3f Changed @todo to TODO 2014-08-23 01:13:56 +02:00
Mario de Frutos
5d012dba29 More adecuate naming 2014-08-14 13:26:54 +02:00
Mario de Frutos
4e13b696d6 Avoid collision with print_r snippet 2014-08-14 10:28:31 +02:00
Alex Tan
c194e8b6d2 Add expect(...).toBe(...) snippet for Jasmine 2014-08-06 17:03:23 -04:00
Honza Pokorny
a6bdf9b239 Merge pull request #416 from idbrii/add-modeline
Add vim modeline snippets
2014-08-04 03:21:07 -03:00
pydave
2f20b96a50 Add vim modeline snippets
Add an 'all' and a 'help' snippet for vim modelines.

The 'all' snippet implements the advice in tabstop's docs about setting
softtabstop when using noexpandtab what other variables (expandtab,
shiftwidth, and tabstop) to set. It sets these variables to their
current values.

Vim supports two forms of modelines, but only the second (that includes
the 'set') works in languages with comment terminators (/* like C */).

The 'help' snippet uses exactly what vim help files use (including the
leading space -- I expect users will insert the modeline at the start of
a line).

Does some unnecessary interpolation ('set' and 'vim') to prevent vim
from interpreting the snippet definition as a modeline for the snippets
file.
2014-08-01 09:31:13 -07:00
Josh Wainwright
437196368e Don't highlight selected text after wrapping 2014-08-01 16:26:29 +01:00
Josh Wainwright
ae1631ca09 Correct anchor 2014-08-01 15:51:04 +01:00
Josh Wainwright
a7fc95dfbe Add VISUAL to several snippets to allow wrapping selected text 2014-08-01 15:48:11 +01:00
Nick Janetakis
506d5a3728 Extend html in eruby 2014-07-27 19:20:29 -04:00
Holger Rapp
23e1406784 Merge pull request #408 from Oberon00/rst-fix-python3
rst: Improve compatibility of snippets with Python 3
2014-07-26 14:42:08 +02:00
Christian Neumüller
71e770a4d9 rst: Replace xrange() by Python 3 compatible range(). 2014-07-26 13:09:34 +02:00
Christian Neumüller
079710814f rst: Add $VISUAL. 2014-07-26 11:48:39 +02:00
Christian Neumüller
5eaa61ae27 rst: Make has_cjk() Python 3 compatible.
In Python 3, iterators no longer have a next() method: it has been renamed to
__next__(). This could be worked around by using the builtin function next(),
but a simpler fix is to just use the regex' object search() method instead of
finditer().
2014-07-26 11:38:30 +02:00
Josh Wainwright
2cc6493457 Make trigger for "else" inline with recommendations.
Also make it require word boundary so does not expand within a word.
2014-07-26 09:49:49 +01:00
Pascal
c6983fcd6a Add python test snippets for assertIsNone and assertIsNotNone 2014-07-25 10:59:07 -04:00
Rene Vergara
e9c9ea0b41 Merge branch 'testing' of https://github.com/ravl1084/vim-snippets into testing
Conflicts:
	UltiSnips/ledger.snippets
2014-07-15 16:13:02 -05:00
Rene Vergara
d883a0ca82 Correct spacing for vim highlighting 2014-07-15 16:10:04 -05:00
Rene Vergara
ede995ce81 Correct spacing for vim highlighting 2014-07-15 16:02:19 -05:00
Cézar Antáres
91a31b1fba PHP Class snippet was working wrong 2014-07-06 22:22:35 -05:00
Christian
3dcb2900b2 rst: Remove comment about requiring Python 2.4+.
Ultisnips needs 2.6, so this is save.
2014-07-03 20:40:09 +02:00
Christian
bb35409199 Fix and improve rst_char_len
The previously used regex was plainly wrong (see #394). This solution should be more solid.
2014-07-03 12:52:40 +02:00
Jan Mollowitz
f11ec0bf18 Added basic class with namespace snippet. 2014-07-01 21:47:05 +02:00
zauguin
753e0ae39d Added ${VISUAL} to C once snippet 2014-06-30 06:46:10 +02:00
Felix Jung
4a63c78bd1 Added b option, removed todo snippet. 2014-06-25 11:01:10 +02:00
Felix Jung
db3a57e104 Initial commit
Adds snippets for function and type documentation, as used by the
DataArrays package for Julia.

Adds TODO snippet.
2014-06-23 13:48:32 +02:00
opennota
6acd456aae Add fori snippet for Go 2014-06-15 10:01:27 +07:00
emzap79
b76fe5e8ef add cleaned-up snippets for R 2014-06-09 10:47:43 +02:00
Piotr Jawniak
b0733edacc One new snippet and one small fix for Rust 2014-06-01 12:39:50 +02:00
Holger Rapp
c3db5beee9 Merge pull request #372 from Sawyer47/rust-snippets
Rust: new snippets and cleanup.
2014-05-31 15:51:40 +02:00
Piotr Jawniak
c80c281219 New snippets and cleanup for Rust 2014-05-31 14:35:25 +02:00
rsw0x
0100f9c7ea Fixed final switch in the UltiSnippets snippet 2014-05-28 06:48:18 -04:00
Holger Rapp
4ed409154b Merge pull request #360 from lucc/descriptions
tex,vim: add snippet descriptions
2014-05-12 05:23:07 -07:00
Josh Wainwright
7adbe2eed7 Merge branch 'master' of https://github.com/honza/vim-snippets 2014-05-08 08:59:34 +01:00
Josh Wainwright
0326b5ba97 Use more readable format for snippets including ending semi-colon. 2014-05-08 08:48:09 +01:00
Josh Wainwright
3cb138312f Removed implicit $0 at end of snippent 2014-05-08 08:47:05 +01:00
Josh Wainwright
33830aea0c Added couple of $0 anchors where missing. 2014-05-07 22:46:43 +01:00
Josh Wainwright
2438821340 Added semi-colons to end of lines where missing. 2014-05-07 22:45:53 +01:00
Gilad Peleg
e7f047b666 Update javascript.snippets 2014-05-07 15:10:33 +03:00
Gilad Peleg
98b1b48d92 add b flag and edit placeholder 2014-05-07 15:09:41 +03:00
Gilad Peleg
d0d1e59ad0 Add useful javascript snippets 2014-05-07 10:19:01 +03:00
Lucas Hoffmann
2672bde2fb add snippet options to some snippets 2014-05-06 14:55:24 +02:00