Stanislav Seletskiy
8ff84758a7
fix tests
...
Autotrigger is not supported for old versions of vim.
2015-08-12 17:06:56 +06:00
Holger Rapp
cf2c473a8e
Define UltiSnips#FileTypeChanged always
...
This is called via ftdetect/UltiSnips.vim, and needs to be defined
also if UltiSnips fails to initialize, e.g. because of missing Python
support.
2015-08-12 06:59:04 +02:00
Holger Rapp
b968bc3e9f
Merge pull request #548 from blueyed/remove-bootstrap-again
...
Remove autoload/UltiSnips/bootstrap.vim again
2015-08-11 07:25:28 +02:00
Daniel Hahler
5e2f58c35f
Define UltiSnips#FileTypeChanged always
...
This is called via ftdetect/UltiSnips.vim, and needs to be defined
also if UltiSnips fails to initialize, e.g. because of missing Python
support.
2015-08-10 22:46:05 +02:00
Daniel Hahler
4a302149e8
Remove autoload/UltiSnips/bootstrap.vim again
...
This seems to have been re-added accidentally in 3c4ac11
, after it was
removed in becab78
.
2015-08-10 22:31:22 +02:00
Holger Rapp
29ad00ec0f
Merge pull request #544 from wincent/fix-autocmd
...
Use <nomodeline> when firing user autocmds
2015-08-07 07:52:42 +02:00
Greg Hurrell
3eabbe71a3
Use <nomodeline> when firing user autocmds
...
As recommended by the Vim help (`:h <nomodeline>`):
After applying the autocommands the modelines are
processed, so that their settings overrule the
settings from autocommands, like what happens when
editing a file. This is skipped when the <nomodeline>
argument is present. You probably want to use
<nomodeline> for events that are not used when loading
a buffer, such as |User|.
Fixes: https://github.com/SirVer/ultisnips/issues/542
2015-08-06 22:47:29 -07:00
Holger Rapp
b3cd0cae14
Merge pull request #541 from hanschen/master
...
Add field numbers to avoid errors in Python 2.6
2015-08-06 07:36:55 +02:00
Hans Chen
44644f1fd5
Add field numbers to avoid errors in Python 2.6
2015-08-05 10:39:19 -04:00
Holger Rapp
ffb9b79480
Do not run autocommands when using --noplugin.
...
Fixes #214 .
2015-08-04 07:57:38 +02:00
Stanislav Seletskiy
6c4fb6f3f2
fix b->b2<BS> case, fix merge
2015-08-03 14:41:25 +06:00
Stanislav Seletskiy
14ea90385b
tests and docs
2015-08-03 14:41:25 +06:00
Stanislav Seletskiy
1356560f9a
fix blumba test
2015-08-03 14:41:25 +06:00
Stanislav Seletskiy
5af229abc0
add error handling
2015-08-03 14:41:25 +06:00
Stanislav Seletskiy
f80414fac5
prototype of autotrigger
2015-08-03 14:41:25 +06:00
Holger Rapp
7c74aa7686
Merge pull request #537 from krisdages/master
...
Pipe-quoting helptag reference to UltiSnips-context-snippets
[no-ci]
2015-08-01 09:40:10 +02:00
Kris Dages
cc43d1251a
Pipe-quoting helptag reference to UltiSnips-context-snippets
2015-07-31 10:46:02 -05:00
Holger Rapp
c12867d1b9
Merge support for snippet-actions.
...
See *UltiSnips-snippet-actions*.
2015-07-31 15:32:10 +02:00
Stanislav Seletskiy
5638cdf4a2
review fix for ==
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
c3add0bef4
fix neovim tests
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
58a2094d49
review fixes
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
175e3ba521
fix doc 80 chars limit
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
a39f3c241a
revert access to UltiSnips_Manager
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
bdecd9a8b5
fix not cleared context
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
3c4ac11af3
fix python3, finally
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
b50c5c86c3
pass all args to snip.expand_anon
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
9649f15a9e
fix buffer edits from jump action
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
5a663116f5
edge case: anon snip in pre-action
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
1e771de603
fix tests
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
ba774c39ca
review fixes
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
8958b71341
add docs to the buffer proxy object
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
bc29e23226
VimBufferHelper -> VimBufferProxy
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
972305725f
fix expan_anon in pre-action, snip object, fixes
2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
191ebd8e8b
migrate to snip.* namespace
2015-07-29 20:08:34 +06:00
Stanislav Seletskiy
7ead6fa178
detect buffer changes via changedtick
2015-07-29 20:08:34 +06:00
Stanislav Seletskiy
760fd25e47
fix python3 compatibility
2015-07-29 20:08:34 +06:00
Stanislav Seletskiy
1ca82f76f7
pre/post-expand and post-jump actions
2015-07-29 20:08:34 +06:00
Holger Rapp
67fbdb2ad8
Handle $0 in a default text like any other tabstop.
...
Also change timing for testing again.
Fixes #356 .
2015-07-27 17:11:35 +02:00
Holger Rapp
5c211b0e79
Clear up pathogen installation instructions.
...
Closes #535 .
2015-07-27 09:22:05 +02:00
Holger Rapp
34679be7ae
Updated ChangeLog.
...
[ci skip]
2015-07-21 14:29:50 +02:00
Holger Rapp
300156642c
Support $n tabstops for snipMate snippets.
...
Before, only ${n} tabstops were supported. Apparently snipMate changed
this behavior though, so now we support that too.
Fixes #533 .
2015-07-20 15:01:49 +02:00
Holger Rapp
e058d1d400
Added waffle.io badge.
2015-07-18 22:57:19 +02:00
Holger Rapp
c68c9dd745
Add a webhook for gitter.im.
2015-07-18 22:53:41 +02:00
Holger Rapp
7f64510a7e
Link to the Vimcasts about UltiSnips.
...
[ci skip]
2015-07-18 18:05:36 +02:00
Holger Rapp
cd0e60bc0f
Remove no longer needed langmap translation.
...
Vim now has the 'langnoremap' option that handles issues with mapping
much more canonical.
2015-07-18 17:33:27 +02:00
Holger Rapp
290600c027
Pass the expected python version to the tests.
...
This ensure that we are actually testing against the python version that
we want to test again. A few weeks ago we still had the problem that all
our python3 tests ran against system python3 which was always 3.2. This
has been fixed a while ago, but this change makes sure we do not
regress.
Also fixes a couple of NOCOM comments that I left over in one of the
last commits.
2015-07-18 12:49:23 +02:00
Holger Rapp
44db53b7b6
Even more leanient timings.
2015-07-15 08:03:05 +02:00
Holger Rapp
0be9d0f861
Even slower typing.
2015-07-14 22:53:18 +02:00
Holger Rapp
eee82219b6
More lenient typing speed for Neovim.
2015-07-14 22:29:35 +02:00
Holger Rapp
306f0ace5f
Add a testing interface that works for Neovim.
...
- Remove support for python 3.2 to reduce number of test cases and because
it actually fails with Neovim. It is not a supported version anyways.
- Due to Neovim not handling fast typing through the console properly
(https://github.com/neovim/neovim/issues/2454 ), the typing is actually
simulated through the Python client. We need to differentiate now if a
keystroke is meant for the terminal or for the Vim session. Using
neovim.input() introduces additional chances for races since inputs
are not buffered but processed right away. This results in more
retries for some tests.
- Neovim needs more parameters and configuration passed in through the
test script. Added command line arguments for these.
- Skip an extra test under Neovim due to
https://github.com/neovim/python-client/issues/128 .
2015-07-14 21:58:30 +02:00