Commit Graph

302 Commits

Author SHA1 Message Date
Holger Rapp
68361f3ca3 OCaml snippets by Rudi Grinberg. 2013-03-25 08:58:55 +01:00
Holger Rapp
7b41b188f1 Improvements to Javascript snippets by Vangelis Tsoumenis 2013-03-21 11:54:20 +01:00
Holger Rapp
7320873e04 Improvements to xml snippets by jhradilek 2013-03-21 11:35:31 +01:00
Holger Rapp
584bee0ab1 Improvements to the syntax file. 2013-03-21 11:32:17 +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
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
Stanislav Golovanov
1269fd26e4 add python module path to global variable 2013-02-08 21:57:29 +04: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
Holger Rapp
d4bda4f95f Improvements to the js snippets by Harry Xu. 2013-01-25 08:27:41 +01:00
Holger Rapp
d8b60f2f05 Improvements to c and cpp snippets by David Brown. 2013-01-24 07:28:32 +01: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
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
Holger Rapp
69c95f537d Added Pedro to the list of contributors. 2012-12-17 11:03:02 +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
Holger Rapp
54d917ddd4 Fixes and improvements to snipmate conversion util by Steve McKinney 2012-11-24 10:32:00 +01:00
Øystein Walle
a599a6ee6a Add Øystein Walle to contributors list 2012-11-08 07:40:18 +01:00
Holger Rapp
39f9d77fe3 Improvements to C snippets by Vivien Didelot 2012-11-02 12:46:19 +01:00
Holger Rapp
629ff849ec New D-snippets from Ferdinand Majerech 2012-11-01 18:34:42 +01:00
Holger Rapp
30fac27e9d Improved documentation a bit. 2012-10-25 07:18:27 +02:00
Holger Rapp
da776e37b5 Updated the installation doc correctly this time. 2012-10-23 19:14:00 +02:00
Holger Rapp
57e08fbe87 Updated installation documentation 2012-10-17 10:13:34 +02:00
Holger Rapp
27cae38529 DEL and c-h now behave as BS in select mode. Patch partly by buztard 2012-10-14 11:41:22 +02:00
Holger Rapp
4d642ddee3 ife snippet for C by theocrite 2012-10-13 12:11:50 +02:00
Holger Rapp
1690986d23 Indicate success or failure of expansions and jumps
Patch by Jorge Rodrigues.
2012-09-06 19:38:41 +02:00
Holger Rapp
bb75169301 Updated ChangeLog 2012-09-01 20:13:56 +02:00
Holger Rapp
e283500a24 Patch by Aaron: optionally disable warning for no Python 2012-08-21 12:51:16 +02:00
Holger Rapp
fe81063b60 Improvements to the syntax file by NagatoPain 2012-08-15 14:16:50 +02:00
Holger Rapp
f98bcd6f53 Test script refactorings by Aaron Schrab 2012-08-09 15:42:16 +02:00
Aaron Schrab
2f7317ed8f Document UltiSnipsNoPythonWarning variable
As requested in SirVer/ultisnips#24
2012-08-06 15:45:48 -04:00
Holger Rapp
890291e42d Adhere to pseudostandard of length of sections in Vim help. Patch by Martin Krauskopf 2012-07-08 12:01:25 +02:00
Alexander Kondratskiy
e9a783857b Better commentboxes. Patch by Alexander Kondratskiy. 2012-07-02 13:14:10 +02:00
Holger Rapp
632ebf5147 added full name of pavel 2012-06-26 11:29:14 +02:00
Holger Rapp
44b03675b5 Added exu to the list of contributors 2012-06-26 11:25:29 +02:00
Holger Rapp
30795ee030 Added Laurent to the list of contributors 2012-05-22 11:29:51 +02:00
Holger Rapp
d62714492a Added luca to the list of contributors 2012-05-22 11:24:38 +02:00
lucapette
d203e69c58 Change visualmode to visual-mode 2012-05-15 18:27:16 +02:00
Holger Rapp
3406aca82a Added fgalassi to the list of contributors 2012-05-14 09:56:27 +02:00
Federico Galassi
17954d27e3 fixed error in documentation about file pattern for snippets files 2012-05-11 10:24:22 +02:00
Holger Rapp
d28259d8b8 added pavel to the lists of contributors 2012-05-06 18:15:06 +02:00
Holger Rapp
93b480ab6f html: added doctype for html 5.0. Suggested by harry 2012-04-25 09:49:04 +02:00
Holger Rapp
5782180811 Added chapter and part to RST snippets. Suggested by Chen Houwu 2012-04-25 09:14:19 +02:00
Holger Rapp
bfce5af642 Implemented UltiSnipsAddFiletypes
It makes it possible to add filetypes in ftplugin/ft.vim or manually while editing.
2012-04-01 16:42:34 +02:00
Holger Rapp
9d35d72a25 Links to fourth screencast about python interpolation 2012-03-31 16:40:12 +02:00
Holger Rapp
4be8a92bf6 Added Jim to the list of contributors 2012-03-11 17:30:05 +01:00
Jim Karsten
80d36d7492 Documentation improvements 2012-03-10 15:41:47 -05:00
Holger Rapp
6d4061418e Added Chris to the list of contributors 2012-03-03 23:37:41 +01:00
Holger Rapp
773d143a96 Added timothy to the list of contributors 2012-02-22 11:56:26 +01:00
Holger Rapp
9abc08aade added nick to the list of contributors 2012-02-22 11:43:52 +01:00
Holger Rapp
fda166207b Added the two latest snippet contributors 2012-02-21 21:50:54 +01:00
Holger Rapp
2c08d50f1e Added Martin Grenfell to the list of contributors 2012-02-14 18:52:59 +01:00
Alejandro Exojo
850b9a6c64 Fix a link in the docs that was written as a tag. 2012-02-13 10:37:05 +01:00
Holger Rapp
bed41564c0 Python code has access to text for VISUAL via snip.v 2012-02-12 12:33:53 +01:00
Holger Rapp
c1e5bb6c5f Visual now supports transformations 2012-02-12 12:15:54 +01:00
Holger Rapp
7f426f51b8 Documentation clarification by Jorge 2012-02-08 21:12:42 +01:00
Holger Rapp
30875494e4 Made python version configurable 2012-02-08 16:28:39 +01:00
Holger Rapp
5cb168798d Added Giuseppe Rota to the list of contributors 2012-02-06 10:22:15 +01:00
Giuseppe Rota
6d79810efb Small fixes to docs 2012-02-06 10:19:35 +01:00
Holger Rapp
a5738f653e Improvements to the tex/texmath snippets by jorge 2012-02-06 10:10:41 +01:00
Holger Rapp
22bb4e0205 Minor bug in the docs fixed 2012-02-06 10:03:58 +01:00
Holger Rapp
5f670d0e15 Updated with new screencast. 2012-02-05 14:44:58 +01:00
Holger Rapp
13aadb5def $VISUAL now supports default text 2012-01-31 14:20:49 +01:00
Holger Rapp
bcf8cc8a6d Change globbing patterns for snippets to follow Vim more closely 2012-01-28 17:07:37 +01:00
Holger Rapp
e69838c4bf UltiSnips should now be able to cope with formatoptions. Removed turning them off and the corresponding snippet option "f" 2012-01-28 17:07:37 +01:00
Holger Rapp
f251aa5aee Added Alejandro Exojo to the list of contributors 2012-01-14 22:54:43 +01:00
Holger Rapp
3b865c035e Added documentation for 2012-01-11 21:33:16 +01:00
Holger Rapp
e277fb13fb Updated documentation with pathogen installation and python 3 support
Updated documentation with pathogen installation and python 3 support
2012-01-10 18:11:35 +01:00
Holger Rapp
089e50817f The name is Sanders not Sander. Sorry 2012-01-09 12:27:11 +01:00
Holger Rapp
91fe432d27 Promote second screencast. 2012-01-08 21:14:31 +01:00
Holger Rapp
5a2ca0a6ee Added documentation for reusing of python functions 2011-12-31 15:10:54 +01:00
Holger Rapp
d02def16d3 Mention GitHub and launchpad in README 2011-12-30 08:29:36 +01:00
Holger Rapp
3a025ce9cd Added Cody Frazer as contributor 2011-12-30 08:16:43 +01:00
Holger Rapp
e82514221a New rails snippet by Aldis Berjoza (graudeejs) 2011-11-11 10:32:11 +01:00
Holger Rapp
5f04f3e0cf New Ruby on Rails translation snippet by graudeejs (graudeejs) 2011-10-20 09:20:32 +02:00
Holger Rapp
4e30504862 Merged puppet and go snippets by Miek Gieben 2011-09-22 09:41:31 +02:00
Holger Rapp
f21386e75d Forgot to add Rico to the contributors list 2011-08-29 13:14:14 +02:00
Rico Sta. Cruz
dcc286b856 Add the g:UltiSnipsDontReverseSearchPath option 2011-08-29 03:47:31 +08:00
Holger Rapp
bcfb52b00a removed non ascii char from one snippet name. Patch by Thanatermesis 2011-08-18 15:06:35 +02:00
Holger Rapp
24025a78a7 Jinja2 snippets by Georgi Valkov 2011-08-02 11:09:03 +02:00
Holger Rapp
ecd2671541 Corrected usage of anonymous snippets 2011-07-27 12:29:55 +02:00
Holger Rapp
6975711477 Added a small hint to the Documentation how to use Anonymous snippets for fun and profit 2011-07-26 16:21:57 +02:00
Holger Rapp
2ac5fd419b New conversion script for snipmate snippet files. Work by Phillip Berndt, only whitespace corrections by me 2011-07-17 12:17:23 +02:00
Holger Rapp
dce54d04ac Django html snippets by Jan Mollowitz 2011-07-04 11:28:22 +02:00
Holger Rapp
a9735229a6 Minor documentation patch by Shlomi Fish 2011-06-28 22:50:47 +02:00
Holger Rapp
402df7605c Fixed a bug which compared a vim.eval to an integer instead of a string. Patch by Sung Pae 2011-06-28 22:24:54 +02:00
Holger Rapp
c6af0d0c72 Regression fix for listing snippets by Charles Gunawan 2011-06-28 22:22:41 +02:00
Holger Rapp
cc68d27d93 Added real name of allait 2011-05-11 09:12:56 +02:00
Holger Rapp
70b7affe45 Merged Ryan and allaits fixes for various bugs 2011-05-09 07:58:33 +02:00
Holger Rapp
9e712a9a39 Removed UltiSnipsReset. It is no longer needed 2011-04-28 08:27:09 +02:00
rygwdn@gmail.com
6b86dcae2b added fallback for crc and ability to disable hashing on entry.
also disabled hashing in parsing tests to avoid having the test files
overwritten in the process.
2011-04-27 23:41:30 -03:00
rygwdn@gmail.com
b54300a82e added documentation for new search 2011-04-27 15:51:04 -03:00
Holger Rapp
eeb8dc4831 Disable vims auto-wrapping inside snippets
- Disable autowrapping inside of snippets
- renable it when the snippet has been completely handled
- added snippet option 'f' to avoid disabling text wrapping
- added docs and tests
2011-04-09 17:48:14 +02:00
Holger Rapp
52438051be Added a section about character escaping to the docs 2011-03-31 08:01:32 +02:00
Holger Rapp
8513aa48d8 Added a new variable for snippet directory names. UltiSnips directories can be excluded to not make the shipped plugins available 2011-03-31 07:40:56 +02:00
Holger Rapp
c408ae937e Fixed some lines in contributors 2011-03-28 20:27:54 +02:00
Holger Rapp
3563b7a57f Added improvements to the syntax file by Anthony Jackson 2011-03-27 08:07:44 +02:00
Holger Rapp
8a09bdad98 Added Daniel Hahler to the contributors 2011-03-14 20:19:35 +01:00
Daniel Hahler
5556432fd1 Minor doc fixes. 2011-03-07 17:53:11 +01:00
Holger Rapp
07bfcb5f84 Fixed a typo in the documentation 2011-02-24 23:12:51 +01:00
Holger Rapp
c8fe2f4b02 Added a syntax file by Timo Schmiade. Made sure all shipped files are recognized as snippets, even when ftdetect is not in /Users/sirver 2011-02-17 14:07:27 +01:00
Holger Rapp
528759dbcc Fixed a typo in the documentation 2011-02-17 12:37:08 +01:00
Holger Rapp
29eb9dca69 Erlang snippets from g0rdin 2011-01-12 13:19:19 +01:00
rygwdn@gmail.com
92f979dcc8 Added documentation for the new functions 2010-12-20 22:49:55 -04:00
Holger Rapp
3310ccb41d Added eruby and rails snippets from Ches Martin 2010-12-06 14:27:33 +01:00
rygwdn@gmail.com
fbb339d03e add option to not expand tabs in snippet 2010-11-22 10:14:47 -04:00
Holger Rapp
5630899b26 Added rupa deadwyler 2010-11-13 11:25:01 +01:00
Holger Rapp
c095147fa1 Added commands UltiSnipsReset and UltiSnipsEdit by JCEB 2010-09-22 13:01:04 +02:00
Holger Rapp
00656a2bb7 Merged my fix for bug 427298 2010-08-20 10:30:33 +02:00
Holger Rapp
58b562b58b Added documentation about smap unmapping 2010-08-20 10:20:22 +02:00
Holger Rapp
243e93312e Whitespace fixes in help doc 2010-08-20 10:04:55 +02:00
Holger Rapp
fb8be85865 Removed the Roadmap from the help docs since it is constantly outdated 2010-08-20 10:03:09 +02:00
rygwdn@gmail.com
4b85266929 Added documentation for globals, and fixed docs for locals.
Fixed error messages to match tests.
Changed endsnippet -> endglobal for global snippets.
2010-08-17 00:12:30 -03:00
rygwdn@gmail.com
64eaac4f9a added docs for new functionality and test for example in docs. 2010-08-08 22:15:34 -03:00
rygwdn@gmail.com
462b9cdf77 updated deprecation messages, and updated (and documented) the way
"snip.rv" works.
2010-07-30 21:54:51 -03:00
rygwdn@gmail.com
e6759cd03f added fn, basename and ft properties to SnippetUtil. 2010-07-30 21:21:05 -03:00
rygwdn@gmail.com
d6c174e9df merged with upstream 2010-07-29 23:11:46 -03:00
rygwdn@gmail.com
54e849b71b Updated documentation for new/changed functionality. 2010-07-29 23:02:15 -03:00
Holger Rapp
b437f30fc7 Applied patch from Chris Chambers 2010-07-12 14:52:12 +02:00
rygwdn@gmail.com
ee7c23bb89 Added myself to the contributors lists 2010-06-05 11:22:55 -03:00
rygwdn@gmail.com
513a635c51 use a helper object, rather than replacing 'res', also provide 'snippet-local' variables 2010-05-16 19:34:44 -03:00
rygwdn@gmail.com
52be5df6ef Shortened the variable name, and added documentation. 2010-05-16 02:19:55 -03:00
Holger Rapp
ee1b3aa29b Python, smart def by Alec Thomas 2010-03-05 14:37:28 +01:00
Holger Rapp
5214f93a3c Fixed a documentation bug. Patch by Gregor Muellegger 2010-01-28 13:54:33 +01:00
Holger Rapp
5d116bac33 Merged with clearsnippets branch from Michael Henry. Only very minor changes on my part 2009-10-13 09:56:12 +02:00
Michael Henry
99e8842ca5 A "clearsnippets" feature
=========================

It's difficult for the user to control which of the default
bundled snippets are active in his environment.  The
'runtimepath' variable must be set to the root of the ultisnips
installation, which brings in all of the bundled snippets.
Though the user may individually override the definition of the
bundled snippets using the "!" flag, the method has a couple of
problems:

- There's no way to remove a snippet, only to override it (and
  each snippet must be overridden individually).
- The "!" flag currently doesn't remove the overridden snippets
  from the "list snippets" command.

It might be considered a feature that "!" doesn't actually
remove the snippets from the "list snippets" command, though
perhaps that's an unintended effect.  In any case, it would be
more convenient to allow the user to selectively remove the
bundled snippets from his environment.

A patch is provided in the following branch to address these problems:
http://code.launchpad.net/~drmikehenry/ultisnips/clearsnippets

The branch's primary purpose is the addition of a
"clearsnippets" command that may be placed in a user's
~/.vim/UltiSnips/ft.snippets file.  The user may clear all
lower-priority snippet for that file type with the line:

  clearsnippets

Alternatively, he may clear individual snippets by listing their
triggers:

  clearsnippets trigger1 trigger2

A few changes were made to the testing system as part of the
incorporation of this new feature.  These changes include:

- The "extends" directive is now supported on multiple lines
  throughout file.

- A completely empty .snippets file is now possible.

- The test.py scripts now handles most of the vim setup,
  simplifying the running of the tests.  The invocation of Vim
  now reduces to:

    vim -u NONE

  Instructions for running the tests are included at top of
  test.py, where they should be more visible to interested
  users; UltiSnips.vim now just points to test.py's
  instructions.

- A new function vim_quote() encodes an arbitrary string into a
  singly-quoted Vim string, with embedded quotes escaped.
- SnippetsFileParser() now allows file_data to be passed
  directly for unit testing, avoiding the need to create files
  in the filesystem for test purposes.
- A new _error() function reports errors to the user.  At
  runtime, this function uses :echo_err in general, but also can
  append error text to current buffer to check for expected
  errors during unit tests.
- Added error checks to snippets file parsing, along with unit
  tests for the parsing.
- Increased retries from 2 to 4 (on my system, occasionally the
  timing still causes tests to fail).
2009-09-08 20:15:10 -04:00
Holger Rapp
4948c5f7f7 Applied Michael Henrys patch for w option 2009-08-30 20:39:27 +02:00
Holger Rapp
eafbe00a56 Applied suggested patch by Michael Henry to fix problem with tab not being accepted even though ultisnips does nothing with it 2009-08-30 20:04:17 +02:00
Michael Henry
66d35419a4 Added support for snippet option "w" for word-boundary triggers. 2009-08-23 18:44:19 -04:00
Holger Rapp
3cf98270de Implemented listing of current snippets following the suggestion of jceb. This patch took another route than his suggestion, but should be functional equivalent 2009-08-16 20:55:08 +02:00
Holger Rapp
cd0b859b62 Implemented i option (inword snippet expansion) along the line of the patch by jceb, also added his test cases 2009-08-16 16:34:54 +02:00
Holger Rapp
f5610ae451 Added a contributors section to the help file 2009-08-16 16:07:34 +02:00
Holger Rapp
43e60ebd57 Added support for extends keyword. With this it is simple to make inheritance trees of snippets for file types 2009-08-02 11:57:43 +02:00
Holger Rapp
d0a50ae9d2 Made trigger keys configurable. Added support for setting forward jump and expand to the same key 2009-07-21 10:21:05 +02:00
Holger Rapp
47a7948526 Conditional replaces can now be nested 2009-07-19 16:44:29 +02:00
Holger Rapp
e1b66b9bce Added link to Vims script page on vim.org 2009-07-18 01:32:07 +02:00
Holger Rapp
6574033ad0 Removed the snippet options item from the Roadmap. It is already implemented 2009-07-18 01:28:39 +02:00
Holger Rapp
0943961479 Added support for b option. Some snippets can be defined to only be valid at the beginning of the line 2009-07-18 00:51:19 +02:00
Holger Rapp
93b3cc7126 Added support for overwriting of previous snippet definitions 2009-07-17 23:33:48 +02:00
Holger Rapp
e3ae328d8c Added support for dotted ft syntax 2009-07-17 23:00:59 +02:00
Holger Rapp
87922dc5fe added a planned feature that was missing in the roadmap 2009-07-15 21:07:54 +02:00
Holger Rapp
172e943540 Finished first version of help file 2009-07-15 21:06:11 +02:00
Holger Rapp
4633e778b4 Added more help 2009-07-15 20:11:47 +02:00
Holger Rapp
001bb70975 Added support for vimscript interpolation 2009-07-15 16:28:33 +02:00
Holger Rapp
80c70697c0 Enhanced the help snippets, enhanced the help file a bit 2009-07-13 12:28:58 +02:00
Holger Rapp
13eec1fc7a Added the beginning of documentation 2009-07-13 10:46:14 +02:00