UltiSnips/test
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
..
__init__.py Refactor: split test.py into several smaller files. 2014-07-23 17:22:11 +08:00
constant.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_AnonymousExpansion.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Autocommands.py Fire autocommands when setting up and tearing down inner state 2015-07-13 07:11:39 +02:00
test_Chars.py Add option 'm' for trimming whitespaces in snippet 2015-02-04 11:55:28 +06:00
test_Completion.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_ContextSnippets.py another test for error reporting 2015-05-01 18:07:59 +06:00
test_Editing.py Add more precise undo levels (expanding, jumping) 2015-04-27 19:30:17 +06:00
test_Expand.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Fixes.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Folding.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Format.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Interpolation.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_ListSnippets.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_Mirror.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_Movement.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_MultipleMatches.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_ParseSnippets.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_Plugin.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Recursive.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_Selection.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_SnipMate.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_SnippetOptions.py Support regexp trigger ending in whitespace. 2015-07-11 18:11:19 +02:00
test_SnippetPriorities.py tests: fix duplicate method name (test_SnippetPriorities) 2015-02-09 22:48:16 +01:00
test_TabStop.py Fix adjacent tabstop input issue. 2015-03-13 23:49:45 +08:00
test_Transformation.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
test_UltiSnipFunc.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00
test_Visual.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
util.py Applied pyformat on entire codebase. 2015-01-20 21:26:03 +01:00
vim_interface.py Fix testing and test against more scenarios. 2015-07-03 21:52:50 +02:00
vim_test_case.py Remove bootstrap.vim. Simplify startup. 2015-07-11 16:17:50 +02:00