Commit Graph

837 Commits

Author SHA1 Message Date
Holger Rapp
c527fbcd12 Fixes to the box and bbox snippet. 2013-02-25 10:06:24 +01:00
Holger Rapp
f698f33811 C snippet improvements by melko. 2013-02-21 09:17:11 +01:00
Holger Rapp
7cbf73e729 Improvements to the box snippet by Sergey Alexandrov 2013-02-21 09:15:11 +01:00
Melko
adcc2f79dd Add contributor name. 2013-02-20 11:24:40 +01:00
Melko
5013b52f55 Add function snippet in c.snippets. 2013-02-20 11:24:20 +01:00
Holger Rapp
7be6694232 Improvements to c.snippets by melko. 2013-02-20 09:45:37 +01:00
Holger Rapp
831b3460ca Easy access to UltiSnips python modules. Patch by Stanislav Golovanov. 2013-02-18 20:41:54 +01:00
Holger Rapp
2398bd1c82 Use normal! 2013-02-18 20:23:43 +01:00
Stanislav Golovanov
1269fd26e4 add python module path to global variable 2013-02-08 21:57:29 +04:00
Holger Rapp
7f612e8808 New xml snippets. Updated html and major update to java snippets by Tom Cammann. 2013-02-01 08:28:32 +01:00
Tom Cammann
080b07be13 Removed some redundant imports 2013-01-30 11:29:34 +00:00
Tom Cammann
1cb5639b78 Reverted foreach java snippet 2013-01-30 11:11:57 +00:00
Tom Cammann
5dd7717f9d ew java snippets for constructors for auto creation of setter/getters 2013-01-29 11:38:09 +00:00
Tom Cammann
9dd78cd750 Updated java snippets, added junit setting 2013-01-28 21:44:47 +00:00
Tom Cammann
42cf7e82ad Merge remote-tracking branch 'origin/master'
Conflicts:
	UltiSnips/java.snippets
2013-01-28 21:19:30 +00:00
Tom Cammann
c32ed3b4d9 more snips 2013-01-28 21:02:04 +00:00
Holger Rapp
5abca2654c Correct commentstring for snippet files by Mike Morearty 2013-01-27 17:38:49 +01:00
Holger Rapp
f0e4d061d8 Improvements to JS snippets by tom cammann 2013-01-27 17:35:04 +01:00
Tom Cammann
6efabda81c Updated Java snippets, included snip for common collections objects 2013-01-26 16:58:42 +00:00
Mike Morearty
c8d1971c4b Set comment string to #%s
This allows the TPope's vim-commentary plugin to work with .snippet
files; e.g. typing "\\\" will comment out the current line with "# ".
2013-01-26 08:29:37 -08:00
Holger Rapp
d4bda4f95f Improvements to the js snippets by Harry Xu. 2013-01-25 08:27:41 +01:00
harryxu
58e30d1459 Improved 'if' and 'ife' snippets for js. 2013-01-25 00:31:25 +08:00
Holger Rapp
d8b60f2f05 Improvements to c and cpp snippets by David Brown. 2013-01-24 07:28:32 +01:00
David Brown
72c48f0b0c Added ${VISUAL} markers to C and C++ snippets
also changed ife snippet to have tabs instead of spaces
2013-01-23 17:33:16 -08:00
Holger Rapp
eb2fbfa74f Merged doc updates by Matt Patterson and added him to the list of contributors. 2013-01-22 07:03:06 +01:00
Matt Patterson
24ff376166 Improve documentation for dotted filetypes
Address incorrect documentation of behaviour with snippet matching
for files using Vim's dotted filetypes

Add note warning against using dotted filetype notation in
snippet filenames
2013-01-21 11:52:45 +01:00
Holger Rapp
9806e7acf3 Added b4winckler to the list of contributors. 2013-01-17 09:45:04 +01:00
Bjorn Winckler
cc9d1111a4 Remove stray space in LaTeX section snippet 2013-01-15 14:31:34 +01:00
Holger Rapp
bf375682b3 Fixed a problem with supertab, sparkup and ultisnips. Patch by Eric Van Dewoestine. 2013-01-02 18:49:21 +01:00
Holger Rapp
9db85644bd updated github url in doc. 2012-12-20 21:08:38 +01:00
Holger Rapp
faa348d686 Perl improvements by Steven Humphrey 2012-12-20 20:47:35 +01:00
Steven Humphrey
fed052c80a Adjusted perl snippets for some best practices 2012-12-18 09:26:56 +00:00
Holger Rapp
86dcbf0a27 Merge pull request #41 from s0undt3ch/features/single-quotes
Support single quoting projects.
2012-12-17 02:03:10 -08:00
Holger Rapp
69c95f537d Added Pedro to the list of contributors. 2012-12-17 11:03:02 +01:00
Holger Rapp
7f920cf46e Merge pull request #42 from s0undt3ch/hotfix/pep-8
Remove un-used imports. PEP8 fixes.
2012-12-17 02:00:42 -08:00
Pedro Algarvio
bbb98007de Remove un-used imports. PEP8 fixes. 2012-12-11 12:42:11 +00:00
Pedro Algarvio
0d8c8b2363 Support single quoting projects. 2012-12-11 12:40:24 +00:00
Holger Rapp
e4274950ab Improvements to D snippets by Ferdinand Majerech 2012-12-03 07:10:14 +01:00
kiith-sa
6de6f25ddc Merge https://github.com/SirVer/ultisnips 2012-12-01 18:16:43 +01:00
kiith-sa
a236077901 A toString() snippet. 2012-12-01 18:15:01 +01:00
Holger Rapp
4c068bd008 New snippet option to strip whitespaces in front of cursor. Patch by aschrab 2012-11-27 09:54:24 +01:00
Holger Rapp
d4f4c718e8 Merge remote-tracking branch 'aschrab/trailing' into trailing 2012-11-27 09:36:48 +01:00
Holger Rapp
f81cc7a522 Fixed pythons rwprop snippet. 2012-11-25 08:14:03 +01:00
Aaron Schrab
3a4991fb32 Add option for stripping of trailing whitespace
Add "s" snippet option which, if set, will cause trailing whitespace to
be stripped from lines before jumping to the next tab stop.

When used with a snippet like the following this will allow the text
from the $1 tabstop to be removed and have the space in front of that
automatically deleted when the user jumps to $2. This will work even if
using the same key for snippet expansion and jumping to the next
tabstop, whereas if the space was manually removed the key would cause
the snippet to be expanded again.

    snippet do "do block" s
    do `!p snip.rv = "|" if t[1] else""`${1:args}`!p snip.rv = "|" if t[1] else""`
    	$2
    end
    $0
    endsnippet
2012-11-24 13:25:29 -05:00
Aaron Schrab
d4d1e86962 Make Snippet object available to SnippetInstance
When a Snippet object creates a SnippetInstance it should pass itself as
an argument, so that the instance can later get additional information
about the snippet.
2012-11-24 13:05:55 -05:00
Aaron Schrab
18b081b7fe Add has_option method to Snippet class
Encapsulate the fact that options are stored as the original string that
was pulled from the definition.  This will simplify things if that ever
needs to be changed.
2012-11-24 13:05:55 -05:00
Aaron Schrab
a6171d022b Avoid repetition in creating SnippetInstance
There's no need to use different code to create a SnippetInstance based
on whether or not there's a parent. The arguments passed either way are
the same.
2012-11-24 13:05:55 -05:00
Holger Rapp
54d917ddd4 Fixes and improvements to snipmate conversion util by Steve McKinney 2012-11-24 10:32:00 +01:00
Holger Rapp
b56e8991c7 Syntaxhighlighting for clearsnippets by Aaron Schrab 2012-11-24 10:12:36 +01:00
kiith-sa
59abbd6c96 Fixed the Par: snippet. 2012-11-15 23:57:35 +01:00