Commit Graph

1294 Commits

Author SHA1 Message Date
Holger Rapp
56ac14840f Disable neocomplete test which fails right now. 2015-02-14 15:39:12 +01:00
Holger Rapp
cf23624c04 A usable travis configuration. 2015-02-14 15:31:34 +01:00
Holger Rapp
e112526550 More travis. 2015-02-14 15:26:10 +01:00
Holger Rapp
ad2c6d35ca Add travis badge and try running on python3 too. 2015-02-14 15:20:55 +01:00
Holger Rapp
db00408a11 More travis. 2015-02-14 15:07:41 +01:00
Holger Rapp
eb9adc50e3 More travis. 2015-02-14 15:05:04 +01:00
Holger Rapp
f47ec08ef2 More travis. 2015-02-14 15:02:24 +01:00
Holger Rapp
348dd4346d More travis. 2015-02-14 14:54:47 +01:00
Holger Rapp
c1aec63bd2 Typo in travis script. 2015-02-14 14:50:20 +01:00
Holger Rapp
35cdaba3ad A travis script. 2015-02-14 14:38:17 +01:00
Holger Rapp
09876e0084 Support for m (trim) snippet option. 2015-02-14 14:20:03 +01:00
Holger Rapp
e041187669 Do not try to remap the keymaps if langnoremap is available and set. 2015-02-14 10:44:48 +01:00
Dettorer
c1bde18cdf Add support vim's langnoremap new option
This fixes the following issue:
https://github.com/SirVer/ultisnips/issues/431
2015-02-12 16:27:25 +01:00
Holger Rapp
8367587e4d Test fixes. 2015-02-12 08:27:43 +01:00
Daniel Hahler
1a3d0ce4b3 tests: allow passing in PYTHON, and default to python2 2015-02-09 22:48:16 +01:00
Daniel Hahler
6e787df804 tests: use return code from testrunner 2015-02-09 22:48:16 +01:00
Daniel Hahler
936aac8da6 tests: add -x / --exitfirst option to fail fast 2015-02-09 22:48:16 +01:00
Daniel Hahler
6602da89dd tests: fix duplicate method name (test_SnippetPriorities) 2015-02-09 22:48:16 +01:00
Daniel Hahler
125e6be785 tests: minor doc fixes 2015-02-09 22:48:16 +01:00
Daniel Hahler
98fa887e57 tests: remove star imports, sort 2015-02-09 22:48:16 +01:00
Holger Rapp
ed34607d30 Merge pull request #436 from waffle-iron/master
waffle.io Badge
2015-02-07 20:33:29 +01:00
Making GitHub Delicious.
483dc4ab2c add waffle.io badge 2015-02-07 12:33:08 -07:00
Stanislav Seletskiy
81a628c6ea Add option 'm' for trimming whitespaces in snippet
Fix #391
2015-02-04 11:55:28 +06:00
Holger Rapp
d693259abb Add option to not traverse all of the rtp. 2015-01-22 08:15:37 +01:00
Holger Rapp
0ce8b23660 Less verbose pylint errors. 2015-01-22 08:00:43 +01:00
Stanislav Seletskiy
b47e686521 do not walk &rtp if abs path to snips specified 2015-01-21 17:57:33 +06:00
Holger Rapp
6a787cdc7b Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
Holger Rapp
e1436a8aeb Accept numbers and text for disabling snipMate. 2015-01-15 08:17:37 +01:00
Holger Rapp
d240aa24df Added Pyrohh to the list of contributors. 2015-01-04 22:23:24 +01:00
Holger Rapp
7df82bbe53 Merge pull request #415 from seletskiy/toggle-snipmate
add g:UltiSnipsEnableSnipMate
2014-12-20 18:39:50 +01:00
Stanislav Seletskiy
fc080b4fd5 add g:UltiSnipsEnableSnipMate 2014-12-18 12:05:52 +06:00
Holger Rapp
67630f4aea Merge pull request #414 from Pyrohh/master
Check if Neovim is being used when setting snippet directory.
2014-12-08 07:19:49 +01:00
Michael Reed
c050d68e5a Check if editor is Neovim when setting snippet_dir 2014-12-06 00:41:13 -05:00
Holger Rapp
b26f2c97b7 Merge pull request #413 from lencioni/documentation
Fix typo "endglobals" in documentation
2014-12-03 08:42:38 +01:00
Joe Lencioni
bbb07646a3 Fix typo "endglobals" in documentation
I was working on some snippets and looking at the documentation and
noticed a typo. "endglobals" should be "endglobal".
2014-12-02 09:39:50 -08:00
Holger Rapp
6907b2444c Merge pull request #410 from tho/master
Fix list of trigger functions in documentation
2014-12-01 21:59:22 +01:00
Tim Hofmann
185f96c4db Fix list of trigger functions in documentation 2014-11-30 16:20:18 -05:00
Holger Rapp
6dd476750b Merge pull request #406 from jszakmeister/dont-rely-on-cwd
Don't rely on having the tmux/screen cwd being in the project directory.
2014-11-25 07:34:56 +01:00
Holger Rapp
e3159ce0d1 Merge pull request #407 from jszakmeister/update-documentation
Update documentation.
2014-11-25 07:34:12 +01:00
Holger Rapp
d85f0b0c2e Merge pull request #408 from tinypenguin/master
Added a terminal emulator warning line for using c-tab combo.
2014-11-25 07:26:10 +01:00
ibabarovic
d9691a9125 Added a terminal emulator warning line for using c-tab combo with usnips 2014-11-24 17:32:10 +01:00
John Szakmeister
eb82c66916 Add some documentation on running the test suite. 2014-11-24 04:47:57 -05:00
John Szakmeister
1f3f1ce641 Don't rely on having the tmux/screen cwd being in the project directory.
Instead, let's just change the runtime path to include a pointer to the
top of the tree.
2014-11-24 04:45:37 -05:00
John Szakmeister
e502c9ba84 Fix a couple of typos. 2014-11-24 04:06:31 -05:00
Holger Rapp
9028abd95e Fixes for Unicode issues by jszakmeister. 2014-11-24 09:37:47 +01:00
John Szakmeister
8b2115ec26 Fix #171: UltiSnips crashes in new file with text containing 0x80 char
It turns out that vim.eval() will attempt to do Unicode conversion and
can fail when raw bytes are present in the unnamed register.  To avoid
this problem, let's not carry the value across the bridge, and instead
store the cached value in Vim directly.  This successfully sidesteps the
issue entirely, and provides the correct save and restore behavior.

This also adds a test case for the issue.  Since expansion can finish
(despite the errors), the test has to capture the error messages and
examine them for a failure.
2014-11-21 06:09:49 -05:00
John Szakmeister
f4df1bd9e8 Teach _vim_enc to handle UnicodeDecodeErrors.
It's possible that when using _vim_dec with Python 2 that we fail to
convert the string to Unicode and just return the raw string instead.
This could happen, for instance, when there was arbitrary data in the
unnamed register during the save/restore process.  During restoration,
we'd attempt to encode the string, but this may fail with a
UnicodeDecodeError as Python attempts to first convert to Unicode and
then to the requested encoding.

To fix this, let's also catch `UnicodeDecodeError` and return the raw
string if we fail to convert.
2014-11-21 06:09:18 -05:00
John Szakmeister
56aa817be0 Reset the unnamed register at the start of a test.
Any test that alters the unnamed register can cause subsequent tests to
fail if there is an issues saving and restoring the register.  Let's
make the test infrastructure more robust against this issue by resetting
the unnamed register to an empty string.
2014-11-15 04:30:52 -05:00
Holger Rapp
cb8536d724 Merge pull request #394 from michamos/master
Map <c-r> in select mode
2014-11-03 06:24:17 +01:00
Micha Moskovic
f179fcf99a Map <c-r> in select mode
This works exactly as in insert mode, only the " character over the next letter is not shown
2014-10-29 18:42:58 +01:00