Commit Graph

1028 Commits

Author SHA1 Message Date
Holger Rapp
81be10835c Initialize output variable in tests, so that less timing errors occure. This makes testing more stable on my system 2011-02-20 23:15:04 +01:00
Holger Rapp
9eb0e5b810 Parsing ultisnips takes even longer 2011-02-20 21:22:37 +01:00
Holger Rapp
cee3b423fc Fix some 'No such mapping' warnings which led to random test failures on my system 2011-02-20 21:18:45 +01:00
Holger Rapp
37f28fe580 Sleep a bit after sourcing widelands in tests. Increases reliability on my system 2011-02-20 21:18:25 +01:00
Holger Rapp
a7ebbe37fc Merged my fixes for proper handling of autoformatting 2011-02-20 21:17:56 +01:00
Holger Rapp
57cf2790cb Refactored fix for better understandability 2011-02-20 21:16:56 +01:00
Holger Rapp
91520a2160 Refactored test cases 2011-02-20 20:58:43 +01:00
Holger Rapp
70ba6f0083 Added another test case that encloses the snippet 2011-02-20 20:54:16 +01:00
Holger Rapp
461e81d6a2 Added stricter test case that show the problem and implement fixes for them 2011-02-20 20:49:32 +01:00
rygwdn@gmail.com
e66d4adfda Added initial support for testing on windows.
Focuses a GVim window, which is assumed to be in the ultisnips directory,
then starts sending key presses to it. Please don't change the active
window while it's running!
2011-02-20 13:11:51 -04:00
Holger Rapp
b371f0c8c4 Updated syntax file by Timo Schmiade 2011-02-19 20:00:24 +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
3f7bfeec1b ft should be snippets not snippet 2011-02-17 14:00:45 +01:00
Holger Rapp
e730eeff0e Added a small notice about contribution to the README 2011-02-17 13:59:40 +01:00
Holger Rapp
528759dbcc Fixed a typo in the documentation 2011-02-17 12:37:08 +01:00
Holger Rapp
be07baf2a8 Handle the case when vim was not compiled with the langmap option 2011-02-16 13:38:51 +01:00
Holger Rapp
a4242d65f7 Fixed a map with select mode unmapping 2011-02-13 19:34:21 +01:00
Holger Rapp
95e54271be Updated Changelog 2011-02-12 12:32:29 +01:00
Holger Rapp
489a9ad8d4 Small fixes from Ryan 2011-02-06 22:18:09 +01:00
rygwdn@gmail.com
386e0a6a9b Return true from expand_anon if the snippet was actually expanded. 2011-02-04 20:09:28 -04:00
rygwdn@gmail.com
30738b2176 Use faster, cleaner method for modifying the path. 2011-02-04 20:02:30 -04:00
Holger Rapp
29eb9dca69 Erlang snippets from g0rdin 2011-01-12 13:19:19 +01:00
g0rdin
ad3a3d7242 tweaked receive snippet for erlang 2011-01-10 02:07:59 +01:00
g0rdin
06b6aeba34 Added useful snippets to erlang snippets 2011-01-08 23:20:07 +01:00
g0rdin
89522d1ad2 Added snippets for erlang (grabbed from TextMate bundles) 2011-01-08 22:25:28 +01:00
Holger Rapp
4930e21663 Merged anonymous snippets feature from Ryan 2010-12-21 13:25:35 +01:00
rygwdn@gmail.com
92f979dcc8 Added documentation for the new functions 2010-12-20 22:49:55 -04:00
rygwdn@gmail.com
1e068f102a Add test to ensure that anon snippets aren't added to the list of snippets. 2010-12-18 13:59:00 -04:00
rygwdn@gmail.com
98b396ff24 Fixes Bug #427676.
- Adds the idea of anonymous snippets with new method on SnippetManager to expand a snippet without adding it.
- Adds two new functions for adding new snippets, and expanding anonymous snippets.
- Adds tests for the above functionality.
2010-12-18 13:07:46 -04:00
Holger Rapp
8c71d10ad2 Merged Ryans Bug fix 2010-12-18 12:15:31 +01:00
rygwdn@gmail.com
b065b5cf30 Fixes Bug #691575.
Deals with the case where there are multiple matches on the line. Tries all
matches until one fits!
2010-12-17 22:38:56 -04:00
Holger Rapp
3310ccb41d Added eruby and rails snippets from Ches Martin 2010-12-06 14:27:33 +01:00
Holger Rapp
6e7f848f29 applied Ryan's fix for proper vimlike indenting 2010-11-23 14:06:37 +01:00
rygwdn@gmail.com
fbb339d03e add option to not expand tabs in snippet 2010-11-22 10:14:47 -04:00
rygwdn@gmail.com
eff5ec2c66 use shiftwidth again as per bug comments 2010-11-22 09:59:06 -04:00
rygwdn@gmail.com
9464f0c99c better name for 'tab' attribute, and expand to tabstops, rather inserting 'ts' spaces 2010-11-18 14:00:36 -04:00
rygwdn@gmail.com
23924c3249 use sts instead of sw for initial tabs 2010-11-18 13:30:07 -04:00
rygwdn@gmail.com
c20c76be71 Fixes bug #676998.
- Adds a new module for handling indentation to bring everything together.
- Uses shiftwidth to replace initial tabs in snippets, this is closer to
  what you would get if you were to type the snippet out by hand.
- Replaces code in SnippetUtil with common class.
- Replaces the code in launch() with the common class to properly, and
  consistently indent the lines.
- Changes the tests to use shiftwidth instead of tabstop as per the bug.
- Fixes the indentation in python snippets to use tabs instead of spaces.
2010-11-18 12:58:15 -04:00
Holger Rapp
a7a3de7d8c Fixes from Ryan 2010-11-17 15:37:12 +01:00
rygwdn@gmail.com
2fe73f0926 add ability to have newlines before braces in java snippets 2010-11-16 17:01:39 -04:00
rygwdn@gmail.com
65a282c58d fix whitespace in c/cpp snippets 2010-11-16 17:00:51 -04:00
rygwdn@gmail.com
d74c3f697b fixes bug with trailing whitespace 2010-11-16 15:32:28 -04:00
Holger Rapp
5630899b26 Added rupa deadwyler 2010-11-13 11:25:01 +01:00
Holger Rapp
8329008b10 recognize .snippets files 2010-11-13 00:10:31 +01:00
Holger Rapp
16d6335ab1 Small correction for ref snippet in tex 2010-11-13 00:07:03 +01:00
rupa
49f4d35d80 recognize .snippets files 2010-11-12 17:29:26 -05:00
Holger Rapp
b9c48763c5 Removed unneeded import statement 2010-09-23 10:50:51 +02:00
Holger Rapp
13331a8aba Fixed a bug if a snippet contains folding markers. Call normal zv (show current line) after each insertion 2010-09-23 10:49:39 +02:00
Holger Rapp
76a8d7b2a5 Updated ChangeLog 2010-09-22 13:04:59 +02:00
Holger Rapp
c095147fa1 Added commands UltiSnipsReset and UltiSnipsEdit by JCEB 2010-09-22 13:01:04 +02:00