Holger Rapp
57cf2790cb
Refactored fix for better understandability
2011-02-20 21:16:56 +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
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
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
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
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
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
rygwdn@gmail.com
d74c3f697b
fixes bug with trailing whitespace
2010-11-16 15:32:28 -04: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
c095147fa1
Added commands UltiSnipsReset and UltiSnipsEdit by JCEB
2010-09-22 13:01:04 +02:00
Holger Rapp
05c09d746a
Merged my fixes for the bug Ryan brought up
2010-08-21 13:10:47 +02:00
Holger Rapp
09939c2921
Fixed the bug again
2010-08-21 13:07:54 +02:00
Holger Rapp
5aac3f5836
Implemented a fix for select mode mappings along the lines of the suggestions by Ryan. Added tests. Documentation is still missing
2010-08-20 09:32:12 +02:00
Holger Rapp
b5fe29bc0f
Fixed a TODO and removed some which do not seem to be reasonable at this point in time
2010-08-19 14:02:03 +02:00
Holger Rapp
e557c8751e
All tests pass
2010-08-19 13:52:12 +02:00
Holger Rapp
686bacb7a2
All TrailingNewline tests pass now. Others broke though
2010-08-19 13:35:06 +02:00
Holger Rapp
d2190f95ff
First test passes, have not broken anything yet
2010-08-19 12:32:45 +02:00
Holger Rapp
9011515686
Merged my fix for bug 501727
2010-08-18 12:54:23 +02:00
Holger Rapp
e3d9896cf2
Encapsulated the translation of the langmap including caching of results into a own object
2010-08-18 12:52:56 +02:00
Holger Rapp
1637cbef8a
The only working solution is to manually reverse the langmap if possible.
2010-08-18 11:54:56 +02:00
Holger Rapp
131e5fdc04
all calls to feedkeys are now routed through one function
2010-08-18 10:24:34 +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
e025da5cf2
Changed local variables in python code blocks to persist across blocks in a snippet.
...
Removed "snips.locals".
Also added ability to use file-wide "global" snippets.
Added tests for both.
2010-08-16 21:59:41 -03:00
Holger Rapp
5803910060
Merged ryans regular expression trigger branch
2010-08-10 10:35:54 +02:00
Holger Rapp
4e966e1a05
Fixed some whitespaces
2010-08-10 10:25:37 +02:00
rygwdn@gmail.com
deecdc8c49
added some in-code documentation to clarify the changes.
2010-08-09 09:34:09 -03:00
rygwdn@gmail.com
4a3b2310ab
give match object to python blocks.
2010-08-08 21:49:03 -03:00
rygwdn@gmail.com
4851a8277e
Added support for multi-word snippets.
2010-08-08 21:32:36 -03:00
rygwdn@gmail.com
1167fd6729
added basic regular expression matching.
2010-08-08 19:29:46 -03:00
rygwdn@gmail.com
b5c8a32762
added new "matched" property on snippet. contains the last string that matched the snippet.
2010-08-08 16:16:24 -03:00
rygwdn@gmail.com
fb54432ff0
more work on the refactor. most duplicated code is gone now.
2010-08-08 08:23:24 -03:00
rygwdn@gmail.com
4e0102b3fa
started refactor of _try_expand and list_snippets.
2010-08-08 07:57:28 -03:00
Holger Rapp
76b5ce1eb0
Whitespace fixes and python 2.5 compatibility
2010-08-02 15:22:18 +02: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
6a98c5439d
typo fixes!
2010-07-29 22:42:38 -03:00
rygwdn@gmail.com
64500f6188
- removed some hacks from testing.
...
- removed "first" variable hack.
- made some variables more consistent.
- cleaned up indentation code.
- added "opt".
- hand the right things into SnippetUtil.
2010-07-29 22:35:53 -03:00
rygwdn@gmail.com
d7ccf9f711
improved mkline, added syntatic sugar, rv, c, and locals.
...
rv contains the return value, c contains the current contents.
mkline can now append directly to rv.
locals is a dict which replaces the dictionary style access to snippetutil.
added syntatic sugar for:
- appending lines to the snippet with the default indentation (snip += "blah").
- shifting (>>) and unshifting (<<) by an amount
2010-07-27 22:18:22 -03:00
Holger Rapp
b437f30fc7
Applied patch from Chris Chambers
2010-07-12 14:52:12 +02:00
rygwdn@gmail.com
67d1b65aa7
removed another extra print, and fixed some comments
2010-05-16 21:38:55 -03:00
Ryan Wooden
c72307c19d
removed a print statement which was causing unit tests to fail
2010-05-16 20:23:02 -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