Commit Graph

1296 Commits

Author SHA1 Message Date
Stanislav Seletskiy
a994e3286d fix py3 tests 2015-08-12 18:40:17 +06:00
Stanislav Seletskiy
61e06bbc18 add note about version and fix tests 2015-08-12 17:35:28 +06:00
Stanislav Seletskiy
878f79ffda review fixes 2015-08-12 17:22:15 +06:00
Stanislav Seletskiy
8ff84758a7 fix tests
Autotrigger is not supported for old versions of vim.
2015-08-12 17:06:56 +06: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
Holger Rapp
992e094638 Add a warning about changing the buffer in autocommands. 2015-07-13 07:14:54 +02:00
Greg Hurrell
c4ee3ecf10 Fire autocommands when setting up and tearing down inner state
It can be useful to set up mappings that apply only during expansion of
a snippet. UltiSnips does this internally with the `_setup_inner_state`
and `_teardown_inner_state` methods.

This commit adds some `User` autocommands so that users of UltiSnips can
set up their own mappings and tear them down at the same time as
`_setup_inner_state` and `_teardown_inner_state`.

This is particularly useful for people who are writing their own
expansion and jump functions using `UltiSnips#JumpForwards` and
`UltiSnips#ExpandSnippet()` and friends. Here's an example from my own
dotfiles:

- 0664b627e7
- 3740c248ee

Using this approach I've been able to get rid of Supertab and have a
more nuanced autocompletion experience that works exactly as I'd like
with YouCompleteMe.
2015-07-13 07:11:39 +02:00
Holger Rapp
29d7080d64 Do not set up inner state if it is already setup.
This makes _(setup|teardown)_inner_state symmetric.
2015-07-12 20:05:33 +02:00
Holger Rapp
33db8b4ab0 Update pathogen installation instructions.
Fixes #501.
2015-07-11 18:48:44 +02:00
Holger Rapp
324a4f8ffc Support regexp trigger ending in whitespace.
Fixes #178.
2015-07-11 18:11:19 +02:00
Holger Rapp
6b12b11411 Only set autocommands when there are snippets.
This speeds up cursor movement when there is no snippet activated.

Fixes #518.
2015-07-11 17:11:04 +02:00