You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

864 lines
33 KiB
Python

#!/usr/bin/env python
# encoding: utf-8
"""Contains the SnippetManager facade used by all Vim Functions."""
from collections import defaultdict
from functools import wraps
import os
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
import platform
import traceback
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
import sys
import vim
import re
from contextlib import contextmanager
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
from UltiSnips import _vim
from UltiSnips._diff import diff, guess_edit
from UltiSnips.compatibility import as_unicode
from UltiSnips.position import Position
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
from UltiSnips.snippet.definition import UltiSnipsSnippetDefinition
from UltiSnips.snippet.source import UltiSnipsFileSource, SnipMateFileSource, \
find_all_snippet_files, find_snippet_files, AddedSnippetsSource
from UltiSnips.text import escape
from UltiSnips.vim_state import VimState, VisualContentPreserver
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
from UltiSnips.buffer_proxy import use_proxy_buffer, suspend_proxy_edits
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def _ask_user(a, formatted):
"""Asks the user using inputlist() and returns the selected element or
None."""
try:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
rv = _vim.eval('inputlist(%s)' % _vim.escape(formatted))
if rv is None or rv == '0':
return None
rv = int(rv)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if rv > len(a):
rv = len(a)
return a[rv - 1]
except _vim.error:
# Likely "invalid expression", but might be translated. We have no way
# of knowing the exact error, therefore, we ignore all errors silently.
return None
except KeyboardInterrupt:
return None
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def _ask_snippets(snippets):
"""Given a list of snippets, ask the user which one they want to use, and
return it."""
display = [as_unicode('%i: %s (%s)') % (i + 1, escape(s.description, '\\'),
escape(s.location, '\\')) for i, s in enumerate(snippets)]
return _ask_user(snippets, display)
def err_to_scratch_buffer(func):
"""Decorator that will catch any Exception that 'func' throws and displays
it in a new Vim scratch buffer."""
@wraps(func)
def wrapper(self, *args, **kwds):
try:
return func(self, *args, **kwds)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
except Exception as e: # pylint: disable=bare-except
msg = \
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""An error occured. This is either a bug in UltiSnips or a bug in a
snippet definition. If you think this is a bug, please report it to
https://github.com/SirVer/ultisnips/issues/new.
Following is the full stack trace:
"""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
msg += traceback.format_exc()
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if hasattr(e, 'snippet_info'):
msg += "\nSnippet, caused error:\n"
msg += re.sub(
'^(?=\S)', ' ', e.snippet_info, flags=re.MULTILINE
)
# snippet_code comes from _python_code.py, it's set manually for
# providing error message with stacktrace of failed python code
# inside of the snippet.
if hasattr(e, 'snippet_code'):
_, _, tb = sys.exc_info()
tb_top = traceback.extract_tb(tb)[-1]
msg += "\nExecuted snippet code:\n"
lines = e.snippet_code.split("\n")
for number, line in enumerate(lines, 1):
msg += str(number).rjust(3)
prefix = " " if line else ""
if tb_top[1] == number:
prefix = " > "
msg += prefix + line + "\n"
# Vim sends no WinLeave msg here.
self._leaving_buffer() # pylint:disable=protected-access
_vim.new_scratch_buffer(msg)
return wrapper
# TODO(sirver): This class is still too long. It should only contain public
# facing methods, most of the private methods should be moved outside of it.
class SnippetManager(object):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""The main entry point for all UltiSnips functionality.
All Vim functions call methods in this class.
"""
def __init__(self, expand_trigger, forward_trigger, backward_trigger):
self.expand_trigger = expand_trigger
self.forward_trigger = forward_trigger
self.backward_trigger = backward_trigger
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._inner_state_up = False
self._supertab_keys = None
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._csnippets = []
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._buffer_filetypes = defaultdict(lambda: ['all'])
self._vstate = VimState()
self._visual_content = VisualContentPreserver()
self._snippet_sources = []
self._snip_expanded_in_action = False
self._inside_action = False
self._last_inserted_char = ''
self._added_snippets_source = AddedSnippetsSource()
self.register_snippet_source('ultisnips_files', UltiSnipsFileSource())
self.register_snippet_source('added', self._added_snippets_source)
enable_snipmate = '1'
if _vim.eval("exists('g:UltiSnipsEnableSnipMate')") == '1':
enable_snipmate = _vim.eval('g:UltiSnipsEnableSnipMate')
if enable_snipmate == '1':
self.register_snippet_source('snipmate_files',
SnipMateFileSource())
self._should_update_textobjects = False
self._should_reset_visual = False
self._reinit()
@err_to_scratch_buffer
def jump_forwards(self):
"""Jumps to the next tabstop."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_jump_forwards_res = 1')
_vim.command('let &undolevels = &undolevels')
if not self._jump():
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_jump_forwards_res = 0')
return self._handle_failure(self.forward_trigger)
@err_to_scratch_buffer
def jump_backwards(self):
"""Jumps to the previous tabstop."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_jump_backwards_res = 1')
_vim.command('let &undolevels = &undolevels')
if not self._jump(True):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_jump_backwards_res = 0')
return self._handle_failure(self.backward_trigger)
@err_to_scratch_buffer
def expand(self):
"""Try to expand a snippet at the current position."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_expand_res = 1')
if not self._try_expand():
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let g:ulti_expand_res = 0')
self._handle_failure(self.expand_trigger)
@err_to_scratch_buffer
def expand_or_jump(self):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""This function is used for people who wants to have the same trigger
for expansion and forward jumping.
It first tries to expand a snippet, if this fails, it tries to
jump forward.
"""
_vim.command('let g:ulti_expand_or_jump_res = 1')
rv = self._try_expand()
if not rv:
_vim.command('let g:ulti_expand_or_jump_res = 2')
rv = self._jump()
if not rv:
_vim.command('let g:ulti_expand_or_jump_res = 0')
self._handle_failure(self.expand_trigger)
@err_to_scratch_buffer
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def snippets_in_current_scope(self, searchAll):
"""Returns the snippets that could be expanded to Vim as a global
variable."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
before = '' if searchAll else _vim.buf.line_till_cursor
snippets = self._snips(before, True)
# Sort snippets alphabetically
snippets.sort(key=lambda x: x.trigger)
for snip in snippets:
description = snip.description[snip.description.find(snip.trigger) +
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
len(snip.trigger) + 2:]
location = snip.location if snip.location else ''
key = as_unicode(snip.trigger)
description = as_unicode(description)
# remove surrounding "" or '' in snippet description if it exists
if len(description) > 2:
if (description[0] == description[-1] and
description[0] in "'\""):
description = description[1:-1]
_vim.command(as_unicode(
"let g:current_ulti_dict['{key}'] = '{val}'").format(
key=key.replace("'", "''"),
val=description.replace("'", "''")))
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if searchAll:
_vim.command(as_unicode(
("let g:current_ulti_dict_info['{key}'] = {{"
"'description': '{description}',"
"'location': '{location}',"
"}}")).format(
key=key.replace("'", "''"),
location=location.replace("'", "''"),
description=description.replace("'", "''")))
@err_to_scratch_buffer
def list_snippets(self):
"""Shows the snippets that could be expanded to the User and let her
select one."""
before = _vim.buf.line_till_cursor
snippets = self._snips(before, True)
if len(snippets) == 0:
self._handle_failure(self.backward_trigger)
return True
# Sort snippets alphabetically
snippets.sort(key=lambda x: x.trigger)
if not snippets:
return True
snippet = _ask_snippets(snippets)
if not snippet:
return True
self._do_snippet(snippet, before)
return True
@err_to_scratch_buffer
def add_snippet(self, trigger, value, description,
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
options, ft='all', priority=0, context=None, actions={}):
"""Add a snippet to the list of known snippets of the given 'ft'."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._added_snippets_source.add_snippet(ft,
UltiSnipsSnippetDefinition(priority, trigger, value,
description, options, {}, 'added',
context, actions))
@err_to_scratch_buffer
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def expand_anon(
self, value, trigger='', description='', options='',
context=None, actions={}
):
"""Expand an anonymous snippet right here."""
before = _vim.buf.line_till_cursor
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
snip = UltiSnipsSnippetDefinition(0, trigger, value, description,
options, {}, '', context, actions)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if not trigger or snip.matches(before, self._visual_content):
self._do_snippet(snip, before)
return True
else:
return False
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def register_snippet_source(self, name, snippet_source):
"""Registers a new 'snippet_source' with the given 'name'.
The given class must be an instance of SnippetSource. This
source will be queried for snippets.
"""
self._snippet_sources.append((name, snippet_source))
def unregister_snippet_source(self, name):
"""Unregister the source with the given 'name'.
Does nothing if it is not registered.
"""
for index, (source_name, _) in enumerate(self._snippet_sources):
if name == source_name:
self._snippet_sources = self._snippet_sources[:index] + \
self._snippet_sources[index + 1:]
break
def reset_buffer_filetypes(self):
"""Reset the filetypes for the current buffer."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if _vim.buf.number in self._buffer_filetypes:
del self._buffer_filetypes[_vim.buf.number]
def add_buffer_filetypes(self, ft):
"""Checks for changes in the list of snippet files or the contents of
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
the snippet files and reloads them if necessary."""
buf_fts = self._buffer_filetypes[_vim.buf.number]
idx = -1
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
for ft in ft.split('.'):
ft = ft.strip()
if not ft:
continue
try:
idx = buf_fts.index(ft)
except ValueError:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._buffer_filetypes[_vim.buf.number].insert(idx + 1, ft)
idx += 1
@err_to_scratch_buffer
def _cursor_moved(self):
"""Called whenever the cursor moved."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._should_update_textobjects = False
if not self._csnippets and self._inner_state_up:
self._teardown_inner_state()
self._vstate.remember_position()
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if _vim.eval('mode()') not in 'in':
return
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if self._ignore_movements:
self._ignore_movements = False
return
if self._csnippets:
cstart = self._csnippets[0].start.line
cend = self._csnippets[0].end.line + \
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._vstate.diff_in_buffer_length
ct = _vim.buf[cstart:cend + 1]
lt = self._vstate.remembered_buffer
pos = _vim.buf.cursor
lt_span = [0, len(lt)]
ct_span = [0, len(ct)]
initial_line = cstart
# Cut down on lines searched for changes. Start from behind and
# remove all equal lines. Then do the same from the front.
if lt and ct:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
while (lt[lt_span[1] - 1] == ct[ct_span[1] - 1] and
self._vstate.ppos.line < initial_line + lt_span[1] - 1 and
pos.line < initial_line + ct_span[1] - 1 and
(lt_span[0] < lt_span[1]) and
(ct_span[0] < ct_span[1])):
ct_span[1] -= 1
lt_span[1] -= 1
while (lt_span[0] < lt_span[1] and
ct_span[0] < ct_span[1] and
lt[lt_span[0]] == ct[ct_span[0]] and
self._vstate.ppos.line >= initial_line and
pos.line >= initial_line):
ct_span[0] += 1
lt_span[0] += 1
initial_line += 1
ct_span[0] = max(0, ct_span[0] - 1)
lt_span[0] = max(0, lt_span[0] - 1)
initial_line = max(cstart, initial_line - 1)
lt = lt[lt_span[0]:lt_span[1]]
ct = ct[ct_span[0]:ct_span[1]]
try:
rv, es = guess_edit(initial_line, lt, ct, self._vstate)
if not rv:
lt = '\n'.join(lt)
ct = '\n'.join(ct)
es = diff(lt, ct, initial_line)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._csnippets[0].replay_user_edits(es, self._ctab)
except IndexError:
# Rather do nothing than throwing an error. It will be correct
# most of the time
pass
self._check_if_still_inside_snippet()
if self._csnippets:
self._csnippets[0].update_textobjects()
self._vstate.remember_buffer(self._csnippets[0])
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def _setup_inner_state(self):
"""Map keys and create autocommands that should only be defined when a
snippet is active."""
if self._inner_state_up:
return
if self.expand_trigger != self.forward_trigger:
_vim.command('inoremap <buffer> <silent> ' + self.forward_trigger +
' <C-R>=UltiSnips#JumpForwards()<cr>')
_vim.command('snoremap <buffer> <silent> ' + self.forward_trigger +
' <Esc>:call UltiSnips#JumpForwards()<cr>')
_vim.command('inoremap <buffer> <silent> ' + self.backward_trigger +
' <C-R>=UltiSnips#JumpBackwards()<cr>')
_vim.command('snoremap <buffer> <silent> ' + self.backward_trigger +
' <Esc>:call UltiSnips#JumpBackwards()<cr>')
# Setup the autogroups.
_vim.command('augroup UltiSnips')
_vim.command('autocmd!')
_vim.command('autocmd CursorMovedI * call UltiSnips#CursorMoved()')
_vim.command('autocmd CursorMoved * call UltiSnips#CursorMoved()')
_vim.command(
'autocmd InsertLeave * call UltiSnips#LeavingInsertMode()')
_vim.command('autocmd BufLeave * call UltiSnips#LeavingBuffer()')
_vim.command(
'autocmd CmdwinEnter * call UltiSnips#LeavingBuffer()')
_vim.command(
'autocmd CmdwinLeave * call UltiSnips#LeavingBuffer()')
# Also exit the snippet when we enter a unite complete buffer.
_vim.command('autocmd Filetype unite call UltiSnips#LeavingBuffer()')
_vim.command('augroup END')
_vim.command('silent doautocmd <nomodeline> User UltiSnipsEnterFirstSnippet')
self._inner_state_up = True
def _teardown_inner_state(self):
"""Reverse _setup_inner_state."""
if not self._inner_state_up:
return
try:
_vim.command('silent doautocmd <nomodeline> User UltiSnipsExitLastSnippet')
if self.expand_trigger != self.forward_trigger:
_vim.command('iunmap <buffer> %s' % self.forward_trigger)
_vim.command('sunmap <buffer> %s' % self.forward_trigger)
_vim.command('iunmap <buffer> %s' % self.backward_trigger)
_vim.command('sunmap <buffer> %s' % self.backward_trigger)
_vim.command('augroup UltiSnips')
_vim.command('autocmd!')
_vim.command('augroup END')
self._inner_state_up = False
except _vim.error:
# This happens when a preview window was opened. This issues
# CursorMoved, but not BufLeave. We have no way to unmap, until we
# are back in our buffer
pass
@err_to_scratch_buffer
def _save_last_visual_selection(self):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""This is called when the expand trigger is pressed in visual mode.
Our job is to remember everything between '< and '> and pass it on to.
${VISUAL} in case it will be needed.
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""
self._visual_content.conserve()
def _leaving_buffer(self):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""Called when the user switches tabs/windows/buffers.
It basically means that all snippets must be properly
terminated.
"""
while len(self._csnippets):
self._current_snippet_is_done()
self._reinit()
def _reinit(self):
"""Resets transient state."""
self._ctab = None
self._ignore_movements = False
def _check_if_still_inside_snippet(self):
"""Checks if the cursor is outside of the current snippet."""
if self._cs and (
not self._cs.start <= _vim.buf.cursor <= self._cs.end
):
self._current_snippet_is_done()
self._reinit()
self._check_if_still_inside_snippet()
def _current_snippet_is_done(self):
"""The current snippet should be terminated."""
self._csnippets.pop()
if not self._csnippets:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._teardown_inner_state()
def _jump(self, backwards=False):
"""Helper method that does the actual jump."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if self._should_update_textobjects:
self._should_reset_visual = False
self._cursor_moved()
# we need to set 'onemore' there, because of limitations of the vim
# API regarding cursor movements; without that test
# 'CanExpandAnonSnippetInJumpActionWhileSelected' will fail
with _vim.toggle_opt('ve', 'onemore'):
jumped = False
# We need to remember current snippets stack here because of
# post-jump action on the last tabstop should be able to access
# snippet instance which is ended just now.
stack_for_post_jump = self._csnippets[:]
# If next tab has length 1 and the distance between itself and
# self._ctab is 1 then there is 1 less CursorMove events. We
# cannot ignore next movement in such case.
ntab_short_and_near = False
if self._cs:
snippet_for_action = self._cs
elif stack_for_post_jump:
snippet_for_action = stack_for_post_jump[-1]
else:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
snippet_for_action = None
if self._cs:
ntab = self._cs.select_next_tab(backwards)
if ntab:
if self._cs.snippet.has_option('s'):
lineno = _vim.buf.cursor.line
_vim.buf[lineno] = _vim.buf[lineno].rstrip()
_vim.select(ntab.start, ntab.end)
jumped = True
if (self._ctab is not None
and ntab.start - self._ctab.end == Position(0, 1)
and ntab.end - ntab.start == Position(0, 1)):
ntab_short_and_near = True
self._ctab = ntab
# Run interpolations again to update new placeholder
# values, binded to currently newly jumped placeholder.
self._visual_content.conserve_placeholder(self._ctab)
self._cs.current_placeholder = \
self._visual_content.placeholder
self._should_reset_visual = False
self._csnippets[0].update_textobjects()
self._vstate.remember_buffer(self._csnippets[0])
if ntab.number == 0 and self._csnippets:
self._current_snippet_is_done()
else:
# This really shouldn't happen, because a snippet should
# have been popped when its final tabstop was used.
# Cleanup by removing current snippet and recursing.
self._current_snippet_is_done()
jumped = self._jump(backwards)
if jumped:
if self._ctab:
self._vstate.remember_position()
self._vstate.remember_unnamed_register(self._ctab.current_text)
if not ntab_short_and_near:
self._ignore_movements = True
if len(stack_for_post_jump) > 0 and ntab is not None:
with use_proxy_buffer(stack_for_post_jump, self._vstate):
snippet_for_action.snippet.do_post_jump(
ntab.number,
-1 if backwards else 1,
stack_for_post_jump,
snippet_for_action
)
return jumped
def _leaving_insert_mode(self):
"""Called whenever we leave the insert mode."""
self._vstate.restore_unnamed_register()
def _handle_failure(self, trigger):
"""Mainly make sure that we play well with SuperTab."""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if trigger.lower() == '<tab>':
feedkey = '\\' + trigger
elif trigger.lower() == '<s-tab>':
feedkey = '\\' + trigger
else:
feedkey = None
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
mode = 'n'
if not self._supertab_keys:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if _vim.eval("exists('g:SuperTabMappingForward')") != '0':
self._supertab_keys = (
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.eval('g:SuperTabMappingForward'),
_vim.eval('g:SuperTabMappingBackward'),
)
else:
self._supertab_keys = ['', '']
for idx, sttrig in enumerate(self._supertab_keys):
if trigger.lower() == sttrig.lower():
if idx == 0:
feedkey = r"\<Plug>SuperTabForward"
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
mode = 'n'
elif idx == 1:
feedkey = r"\<Plug>SuperTabBackward"
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
mode = 'p'
# Use remap mode so SuperTab mappings will be invoked.
break
if (feedkey == r"\<Plug>SuperTabForward" or
feedkey == r"\<Plug>SuperTabBackward"):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('return SuperTab(%s)' % _vim.escape(mode))
elif feedkey:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('return %s' % _vim.escape(feedkey))
def _snips(self, before, partial, autotrigger_only=False):
"""Returns all the snippets for the given text before the cursor.
If partial is True, then get also return partial matches.
"""
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
filetypes = self._buffer_filetypes[_vim.buf.number][::-1]
matching_snippets = defaultdict(list)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
clear_priority = None
cleared = {}
for _, source in self._snippet_sources:
source.ensure(filetypes, cached=autotrigger_only)
# Collect cleared information from sources.
for _, source in self._snippet_sources:
sclear_priority = source.get_clear_priority(filetypes)
if sclear_priority is not None and (clear_priority is None
or sclear_priority > clear_priority):
clear_priority = sclear_priority
for key, value in source.get_cleared(filetypes).items():
if key not in cleared or value > cleared[key]:
cleared[key] = value
for _, source in self._snippet_sources:
possible_snippets = source.get_snippets(
filetypes,
before,
partial,
autotrigger_only,
self._visual_content
)
for snippet in possible_snippets:
if ((clear_priority is None or snippet.priority > clear_priority)
and (snippet.trigger not in cleared or
snippet.priority > cleared[snippet.trigger])):
matching_snippets[snippet.trigger].append(snippet)
if not matching_snippets:
return []
# Now filter duplicates and only keep the one with the highest
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
# priority.
snippets = []
for snippets_with_trigger in matching_snippets.values():
highest_priority = max(s.priority for s in snippets_with_trigger)
snippets.extend(s for s in snippets_with_trigger
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if s.priority == highest_priority)
# For partial matches we are done, but if we want to expand a snippet,
# we have to go over them again and only keep those with the maximum
# priority.
if partial:
return snippets
highest_priority = max(s.priority for s in snippets)
return [s for s in snippets if s.priority == highest_priority]
def _do_snippet(self, snippet, before):
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
"""Expands the given snippet, and handles everything that needs to be
done with it."""
self._setup_inner_state()
self._snip_expanded_in_action = False
self._should_update_textobjects = False
# Adjust before, maybe the trigger is not the complete word
text_before = before
if snippet.matched:
text_before = before[:-len(snippet.matched)]
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
with use_proxy_buffer(self._csnippets, self._vstate):
with self._action_context():
cursor_set_in_action = snippet.do_pre_expand(
self._visual_content.text,
self._csnippets
)
if cursor_set_in_action:
text_before = _vim.buf.line_till_cursor
before = _vim.buf.line_till_cursor
with suspend_proxy_edits():
if self._cs:
start = Position(_vim.buf.cursor.line, len(text_before))
end = Position(_vim.buf.cursor.line, len(before))
# If cursor is set in pre-action, then action was modified
# cursor line, in that case we do not need to do any edits, it
# can break snippet
if not cursor_set_in_action:
# It could be that our trigger contains the content of
# TextObjects in our containing snippet. If this is indeed
# the case, we have to make sure that those are properly
# killed. We do this by pretending that the user deleted
# and retyped the text that our trigger matched.
edit_actions = [
('D', start.line, start.col, snippet.matched),
('I', start.line, start.col, snippet.matched),
]
self._csnippets[0].replay_user_edits(edit_actions)
si = snippet.launch(text_before, self._visual_content,
self._cs.find_parent_for_new_to(start),
start, end
)
else:
start = Position(_vim.buf.cursor.line, len(text_before))
end = Position(_vim.buf.cursor.line, len(before))
si = snippet.launch(text_before, self._visual_content,
None, start, end)
self._visual_content.reset()
self._csnippets.append(si)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
si.update_textobjects()
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
with use_proxy_buffer(self._csnippets, self._vstate):
with self._action_context():
snippet.do_post_expand(
si._start, si._end, self._csnippets
)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
self._vstate.remember_buffer(self._csnippets[0])
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if not self._snip_expanded_in_action:
self._jump()
elif self._cs.current_text != '':
self._jump()
else:
self._current_snippet_is_done()
if self._inside_action:
self._snip_expanded_in_action = True
def _try_expand(self, autotrigger_only=False):
"""Try to expand a snippet in the current place."""
before = _vim.buf.line_till_cursor
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
snippets = self._snips(before, False, autotrigger_only)
if snippets:
# prefer snippets with context if any
snippets_with_context = [s for s in snippets if s.context]
if snippets_with_context:
snippets = snippets_with_context
if not snippets:
# No snippet found
return False
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let &undolevels = &undolevels')
if len(snippets) == 1:
snippet = snippets[0]
else:
snippet = _ask_snippets(snippets)
if not snippet:
return True
self._do_snippet(snippet, before)
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
_vim.command('let &undolevels = &undolevels')
return True
@property
def _cs(self):
"""The current snippet or None."""
if not len(self._csnippets):
return None
return self._csnippets[-1]
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
def _file_to_edit(self, requested_ft, bang): # pylint: disable=no-self-use
"""Returns a file to be edited for the given requested_ft.
If 'bang' is
empty only private files in g:UltiSnipsSnippetsDir are considered,
otherwise all files are considered and the user gets to choose.
"""
# This method is not using self, but is called by UltiSnips.vim and is
# therefore in this class because it is the facade to Vim.
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
potentials = set()
if _vim.eval("exists('g:UltiSnipsSnippetsDir')") == '1':
snippet_dir = _vim.eval('g:UltiSnipsSnippetsDir')
else:
home = _vim.eval('$HOME')
if platform.system() == 'Windows':
snippet_dir = os.path.join(home, 'vimfiles', 'UltiSnips')
elif _vim.eval("has('nvim')") == '1':
xdg_home_config = _vim.eval('$XDG_CONFIG_HOME') or os.path.join(home, ".config")
snippet_dir = os.path.join(xdg_home_config, 'nvim', 'UltiSnips')
else:
snippet_dir = os.path.join(home, '.vim', 'UltiSnips')
filetypes = []
if requested_ft:
filetypes.append(requested_ft)
else:
Squashed 'vim/bundle/ultisnips/' changes from cecc7aad8..786145030 786145030 quick and dirty fix tests for vanilla vim ea8094c50 syntax: treat python in context/actions as string 61df32722 syntax highlighting: fix context highlighting 3a3e56a98 grant access to visual to context and actions 059c9a9da Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation 23a6ec87c Merge pull request #663 from kmarius/fix-transformation 8fdfde190 Fix escapes in conditional tabstob transformation 7536ac900 tabstops can be overwritten from interpolation a514585cd ignore .ropeproject ed40bebab Add test cases for conditional transformations 25882e95c add testcase for #658 0657e61e6 Merge pull request #643 from dNItro/master 4b27b7152 Testcase added! bdd9012eb Merge pull request #647 from alexlafroscia/master 6d38cad14 Allow Deoplete entries to show up with existing matches 203218297 More detailed documentation on multiline option 8a8e183b8 Documentation on multiline option b057f633e Add support to do transformation on multiple lines 3f2c591c3 Merge pull request #625 from chemzqm/location 0058e8664 doc: add link to options for #Anon() ec9b292ba fix typos in doc/UltiSnips.txt 52ade8fed doc for all param of SnippetsInCurrentScope 4e2e897de change g:current_ulti_dict_all to g:current_ulti_dict_info 319ccddcd Merge pull request #628 from kmarius/fix_syntax 9a73473e7 Fix highlighting for nested visual tabstob 6a69a4415 add all param to UltiSnips#SnippetsInCurrentScope dbd43ad27 Merge pull request #624 from chemzqm/patch-1 3a70765f4 syntax highlight for unite ultisnips 5a2dcc5cb disable tests in vanilla vim for #616 45e3775c1 fix #616: update state on edit w/o cursor move 1b481f312 Merge pull request #615 from SirVer/updated_changelog 60c47e8e9 Reworked README for change of maintenance. 2e9f12bfd Fixed doc/UltiSnips.txt for change of maintainer. 95d6e535e Updated ChangeLog for 3.1. c5a21c509 Merge pull request #611 from HerringtonDarkholme/deoplete 024374614 Add support for deoplete 9c73ce948 Fix a unicode bug in python3. 53bf0dbd7 Merge pull request #608 from JarrodCTaylor/master 53571bf4f Refactor: More descriptive method name 1d4d8b049 Enhancement: Align snippet names in unite source options ef72df8e7 Merge pull request #603 from seletskiy/do-not-break-last-jump-on-post-expand cba31b191 Use new path for neovims config directory. 6ea78e525 fix last jump $0 placeholder using post_expand c9699feed Fix docs: "'" has no special meaning in snippets. 0480b2243 Adapt to changed Neovim configuration directory. 1ce44ac9c Merge pull request #592 from seletskiy/show-backtrace-on-error 08b96cbdb print erroneous snippet location 698f2d491 print snippet information in backtrace (fix #551) d03b13a68 review: add comment about snippet_code 47a3d1862 review fixes: 3accb5cb4 mark line number in traceback 00e3a877d print executed code cc6ac3c06 Exit any snippets when entering a unite buffer. baa9c9709 Merge pull request #589 from seletskiy/autotrigger 6ad7472aa autotrigger: solve performance issues fde4a066c Disable Neovim tests, since they do not pass. 30ba8155a NEOVIM testing is just too flaky. Let's make it optional again. 69b7c501a Merge pull request #582 from seletskiy/autotrigger 76ebfec3c autotrigger: make snippets expand without <tab> e1e005a81 Merge pull request #575 from manishrjain/master c39ffb851 Fix link to Vimcasts ef2c0d6d8 Merge pull request #573 from ericdouglas/patch-1 e603117f6 Fix Tabstops and Placeholders index 036d0d9c2 Merge pull request #570 from dueyfinster/patch-1 74bbca2f9 Fixed URL e48d8a28e Rollback "Merge support for auto expand." 490430f91 Merge support for auto expand. 8c7ce8827 Allow neovim to fail for the moment. It is flaky on travis. c45867be5 add missing doc for autotrigger_only 9eb2de6c3 add test for vim<7.4.214 5a5de0734 neovim tests a994e3286 fix py3 tests 61e06bbc1 add note about version and fix tests 878f79ffd review fixes 8ff84758a fix tests cf2c473a8 Define UltiSnips#FileTypeChanged always b968bc3e9 Merge pull request #548 from blueyed/remove-bootstrap-again 5e2f58c35 Define UltiSnips#FileTypeChanged always 4a302149e Remove autoload/UltiSnips/bootstrap.vim again 29ad00ec0 Merge pull request #544 from wincent/fix-autocmd 3eabbe71a Use <nomodeline> when firing user autocmds b3cd0cae1 Merge pull request #541 from hanschen/master 44644f1fd Add field numbers to avoid errors in Python 2.6 ffb9b7948 Do not run autocommands when using --noplugin. 6c4fb6f3f fix b->b2<BS> case, fix merge 14ea90385 tests and docs 1356560f9 fix blumba test 5af229abc add error handling f80414fac prototype of autotrigger 7c74aa768 Merge pull request #537 from krisdages/master cc43d1251 Pipe-quoting helptag reference to UltiSnips-context-snippets c12867d1b Merge support for snippet-actions. 5638cdf4a review fix for == c3add0bef fix neovim tests 58a2094d4 review fixes 175e3ba52 fix doc 80 chars limit a39f3c241 revert access to UltiSnips_Manager bdecd9a8b fix not cleared context 3c4ac11af fix python3, finally b50c5c86c pass all args to snip.expand_anon 9649f15a9 fix buffer edits from jump action 5a663116f edge case: anon snip in pre-action 1e771de60 fix tests ba774c39c review fixes 8958b7134 add docs to the buffer proxy object bc29e2322 VimBufferHelper -> VimBufferProxy 972305725 fix expan_anon in pre-action, snip object, fixes 191ebd8e8 migrate to snip.* namespace 7ead6fa17 detect buffer changes via changedtick 760fd25e4 fix python3 compatibility 1ca82f76f pre/post-expand and post-jump actions 67fbdb2ad Handle $0 in a default text like any other tabstop. 5c211b0e7 Clear up pathogen installation instructions. 34679be7a Updated ChangeLog. 300156642 Support $n tabstops for snipMate snippets. e058d1d40 Added waffle.io badge. c68c9dd74 Add a webhook for gitter.im. 7f64510a7 Link to the Vimcasts about UltiSnips. cd0e60bc0 Remove no longer needed langmap translation. 290600c02 Pass the expected python version to the tests. 44db53b7b Even more leanient timings. 0be9d0f86 Even slower typing. eee82219b More lenient typing speed for Neovim. 306f0ace5 Add a testing interface that works for Neovim. 992e09463 Add a warning about changing the buffer in autocommands. c4ee3ecf1 Fire autocommands when setting up and tearing down inner state 29d7080d6 Do not set up inner state if it is already setup. 33db8b4ab Update pathogen installation instructions. 324a4f8ff Support regexp trigger ending in whitespace. 6b12b1141 Only set autocommands when there are snippets. 2ed217a05 Remove deprecated functions like a boss. becab789a Remove bootstrap.vim. Simplify startup. b13015d47 Remove sys.path manipulations. 5f75dde20 Remove snipMate compatibility script. 9822193e4 Make scripts actually executable. 4f65a7654 Fix testing and test against more scenarios. 5590f9b7b Merge pull request #522 from blueyed/use-vim-current-buffer 8c257e24e VimBuffer: use vim.current.buffer.number instead of vim.eval c3a0924b7 Require Vim 7.4 in preparation of removal of compatibility features. de70b1ed5 Exit snippets when entering/exiting command window. 3806a6987 Fix improper use of augroup in ftdetect. 2fb8820ff A backward compatible solution 00d50c3ae Remove augroup block 188e00f7b Merge pull request #493 from cwahbong/fold-fix ca1977231 Fix folding for snippet files. ab1cc1afa Remove documentation for using the same trigger for jump and expand. d6098193e Merge pull request #446 from seletskiy/context-snippets 50bb61cdc another test for error reporting 463e68a61 fix for correct error reporting 9587d9daa Merge pull request #486 from seletskiy/enhance-undo 2f355c233 another little fix in documentation 099d3bcfb Add more precise undo levels (expanding, jumping) 1b3ecf4a8 priority test, docs & fmt fixes 904fbdecf review fixes 4ab4c1df4 Do not use --interface anymore. 1bf07737b Make sure tmux is available before starting any test. 82ceb6288 Remove testing with GNU screen 2c15427b1 Merge pull request #482 from blueyed/check-python-support-for-UltiSnipsUsePythonVersion 87c3a7ba4 fix UltiSnipFunc test 709f8dc93 minor doc fix and new cursor variable 9861a6e6c typo fix in docs 66bc2e8f6 documentation, pull-requests fixes 0beefd4a1 fix context match on False value ed8cf4911 fix tests b3aec0705 proof of concept for context snips 800a54da1 bootstrap: use WarningMsg with python warning message ac42c83a7 bootstrap: verify that g:UltiSnipsUsePythonVersion is available 00848d7d6 Merge pull request #483 from cwahbong/master 3ccc14dca Try to work around transiently failing commands. aeb2e2420 Disabled unite test - it seems flaky. 4b39bf655 Priority must always be an integer. ee7e15558 Make install_vim.sh actually executable. 99eede1bf Started to test py2 and py3 on travis now. 01a17a1a4 Merge pull request #480 from KazuakiM/master bf20bc6f6 Update document for zero tabstop. 62a96bb05 Merge pull request #462 from kawing-chiu/fix-#457 71a8fdec5 Add contributor to doc. 42fc6c031 Merge branch 'improve_neocomplete' 3ae9b48cf Delete default setting in neocomplete/sources/ultisnips.vim f9a22111f Fix adjacent tabstop input issue. 1971030b5 Merge pull request #456 from spacewander/master 4d88df461 remove duplicate things in vim_test_case.py 56ac14840 Disable neocomplete test which fails right now. cf23624c0 A usable travis configuration. e11252655 More travis. ad2c6d35c Add travis badge and try running on python3 too. db00408a1 More travis. eb9adc50e More travis. f47ec08ef More travis. 348dd4346 More travis. c1aec63bd Typo in travis script. 35cdaba3a A travis script. 09876e008 Support for m (trim) snippet option. e04118766 Do not try to remap the keymaps if langnoremap is available and set. c1bde18cd Add support vim's langnoremap new option 8367587e4 Test fixes. 1a3d0ce4b tests: allow passing in PYTHON, and default to python2 6e787df80 tests: use return code from testrunner 936aac8da tests: add -x / --exitfirst option to fail fast 6602da89d tests: fix duplicate method name (test_SnippetPriorities) 125e6be78 tests: minor doc fixes 98fa887e5 tests: remove star imports, sort ed34607d3 Merge pull request #436 from waffle-iron/master 483dc4ab2 add waffle.io badge 81a628c6e Add option 'm' for trimming whitespaces in snippet d693259ab Add option to not traverse all of the rtp. 0ce8b2366 Less verbose pylint errors. b47e68652 do not walk &rtp if abs path to snips specified 6a787cdc7 Applied pyformat on entire codebase. e1436a8ae Accept numbers and text for disabling snipMate. d240aa24d Added Pyrohh to the list of contributors. 7df82bbe5 Merge pull request #415 from seletskiy/toggle-snipmate fc080b4fd add g:UltiSnipsEnableSnipMate 67630f4ae Merge pull request #414 from Pyrohh/master c050d68e5 Check if editor is Neovim when setting snippet_dir b26f2c97b Merge pull request #413 from lencioni/documentation bbb07646a Fix typo "endglobals" in documentation 6907b2444 Merge pull request #410 from tho/master 185f96c4d Fix list of trigger functions in documentation 6dd476750 Merge pull request #406 from jszakmeister/dont-rely-on-cwd e3159ce0d Merge pull request #407 from jszakmeister/update-documentation d85f0b0c2 Merge pull request #408 from tinypenguin/master d9691a912 Added a terminal emulator warning line for using c-tab combo with usnips eb82c6691 Add some documentation on running the test suite. 1f3f1ce64 Don't rely on having the tmux/screen cwd being in the project directory. e502c9ba8 Fix a couple of typos. 9028abd95 Fixes for Unicode issues by jszakmeister. 8b2115ec2 Fix #171: UltiSnips crashes in new file with text containing 0x80 char f4df1bd9e Teach _vim_enc to handle UnicodeDecodeErrors. 56aa817be Reset the unnamed register at the start of a test. cb8536d72 Merge pull request #394 from michamos/master f179fcf99 Map <c-r> in select mode 1ad970379 Support for sw=0 in newer Vim versions. 4e72a5d08 Merge pull request #388 from blueyed/doc-ref-triggers e3abd6678 Added test case for shiftwidth=0 and added myself to contributors list. 14e5b4638 doc: add tags for trigger vars 482650a00 Use shiftwidth() where available. This allows UltiSnips to work properly when shiftwidth is zero. Per ":help shiftwidth": 8aeb1a2e3 Merge pull request #377 from petobens/master 0775156de Don't escape backslashes in :UltiSnipsEdit 386b3a097 Merge pull request #360 from tafryn/master cae25e533 Change indent level to 3(?!) spaces. 9c632378a Add missing newline to ftdetect. f6e33387a Clean-up vimpager check. c681560b4 Add 'context' value to g:UltiSnipsEditSplit. c79cfd50f Merge pull request #370 from sakana/master 1129ca67d Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2c3c4a777 Add 'context' value to g:UltiSnipsEditSplit 59defbdd5 Merge pull request #357 from kballard/tweak_ftplugin a69764dff Tweak the ftplugin 1292b0fae Merge pull request #355 from kballard/fix_syntax_nested_tabstop a8c9caae8 Add check to prevent errors when using vimpager. 81f917313 Fix highlighting of nested tab stops 279d6e63c Updates the doc for the new clearsnippets behavior. Slight rewording by me. c3660128a Implements clearsnippets by priority. 57ed954cc Merge pull request #348 from cwahbong/select-cr-fix 0abfc3bec Some refinements. 63f65ea87 Add/modify test cases for priority-based clearsnippets. 4784a9e12 Refactor: snippet dictionary does not keep the extend info now. 20f3832ff Code cleanup. 5c87806d7 Implement priority-based clearsnippets. a9aa8c76a Update document for priority based clearsnippets. a053433e4 Variable rename and illustration. 97bad9906 Add test case for #341 (github). f6ce0f92d Merge pull request #349 from m42e/master 79705c3fc Ignore Errors E403 from included syntax files e05788cec Fix issue #341 (github). 4dcfca755 Test refactorings. 1cf3b928f Refactor: split test.py into several smaller files. 9521b942b Merge pull request #340 from cwahbong/test-fix 0872600b9 Ahbong is contributer now. 0dc6a8e4a Now test.py check the version or tmux. b11d5496a Add docstrings for TempFileManager. 15a0a17af Fix tmux interface. e97d52c68 Merge pull request #342 from chivalry/master 2d8ae2fcd Correct misspelling 3002b6852 Solves waiting problem in an elegant way. cc4dc3703 Code cleanup for test.py. 9a98039d2 Fix test.py. ccf79ba82 Merge pull request #331 from kballard/tagbar_snippets dee826520 Support TagBar for snippets files d1f6f7ed8 Better syntax file. b10b62ae6 Twiddle indentation settings 67c7422ae Set up basic highlighting for snipmate files 40145103b Stop embedding python/viml/sh if the `` includes { 010e2c4fa Remove the coloring for python commands ebd62751e Tweak snippet/global highlighting to always highlight the end 30ecd1d1b Rewrite parsing for tab stops 5fa39faa9 fixup! Clean up miscellaneous syntax items 4b73864b7 Fix the docstring for ShellCodeToken 0dba6503e Clean up miscellaneous syntax items acc79747c Syntax highlight the snippet trigger properly 5760eb403 Fix empty snippets/globals d239402b7 Rewrite syntax matching for `global` cb2905c17 Rewrite syntax matching for `snippet` 5937cea08 Mark up syntax items with 'display' as appropriate b82759b25 Rewrite extends/priority/clearsnippets 672117c47 Add hierarchy to syntax file 739e3d94a Fix coloring of shell/VimL/Python command substitutions 5b80ef187 Properly handle \` escapes in commands 636546beb Fix syntax name cab150995 Fix embedded VimL highlighting 1ad7d54d7 Fix highlighting of Python/VimL commands 7b8641e1f Back out fix for #323. Fixes #324. 7d65e2141 Merge pull request #323 from opennota/master 93be385d3 Don't complain about undefined function e59a60cbe Fixed docu for clearsnippets. ee1a2bb2b Escape '\\' in UltiSnipsEdit. f2d9e8b60 Support for selection=old. da5b124af add support for selection=old e4f2e34fc Remove tool that converts snipMate snippets. As support is now build into ultisnips, this is no longer needed. bca51cb40 Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there. 5c8e3ca48 Merge pull request #275 from skeept/patch-2 fb58034b1 Re-add > before code. 1e6928d0a Merge pull request #276 from meonkeys/patch-1 2042ad476 README: adapt to Vundle interface change 98289510c Update UltiSnips.txt 04ef0f8f5 Merged unite source by Skeept. 2f8489944 Remove snipMate compatibility file. If at all, this should now live in vim-snippets. c21016573 All mappings should be 'silent'. 77a9d8941 simple test for unite interface eff62c336 Be more correct about encoding/decoding strings under py3. Patch by aeruder. cae27fba5 Ensure that _vim_{dec,enc} always succeeds on py3 15f39c080 Do not barf more than once when python is not found. Patch by blueyed. 210304884 Define all/other dummy functions used in autocommands 7da9dbe2a Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 3208654c4 Do not map keys if 'g:_uspy' could not be set c57c717e3 Delete autocommands when Bootstrap failed 2ad6ad449 Fix E168: :finish used outside of a sourced file a3e654fc5 _vimfiles -> vimfiles. Patch b Oberon. 7bee824db use function to invoqe unite cc1514542 add unite source b6d545ecd Properly escape locations on windows. ae70ec895 Escape correctly file names in windows. 4b4ee4885 Overwrite all snippets with lower priority on expansion. 511600124 Documentation fixes. fee999a71 Docs: remove a reference to defunct ! snippet option 360f58dbf Show where snippets are defined in selection. 7c34a3400 Escape \ when asking for snippets. cd99bdd3b selection=old cannot work with UltiSnips. 69e0acd58 Change the way placeholders are selected. 5aaeae5e8 Do not delete child that is already gone. 1b21741a2 Update ChangeLog. f40c3ac5e Made UltiSnipsEdit! more consistent with multiple filetypes. 5ac043669 Retry unmapping when we switched buffers. b0a3266a6 More tweaking. 940f4d9f2 tweaked readme 5fe88fdc9 Use the demo in the README. 764fd65a7 Added a nice interactive demo. 001c2a967 Added realname of petobens. c6906d85b Fixed a bug in UltiSnipsEdit! 6398a598b Made UltiSnipsEdit more useful and consistent. f44640923 Mention neocomplete in the docs. ba2f30fdf Adapted neosnippets source. Examples by petobens. e6d335aa4 Make the cloning direcotory explicit on stdout. 96557f397 Added integration test for SuperTab. a800b51e0 Removed no longer planned TODOs 147df653a Snippet sources can now be registered. 1ce706e3a Adapted neocomplete integration. a23911f7f Add option to only clone and immediately exit the test runner. c017806b1 Added preliminary support for neocomplete. 1ec523801 Added version checking for other plugins. f4cda8802 Add integration tests with YouCompleteMe. b65efa5aa Added quickstart to readme. 7b51ec6f6 Removed snippet contributors from README. 35e57fad0 Removes snippets. Please track honza/vim-snippets. c4fa2c03b Barf when using "snipmate" for UltiSnips. c9681051c Small fixes to the documentation. 1ec2f187b Updated ChangeLog. c690a3610 Empty lines do not end a snippet for snipMate. 14fca8523 Ups. Forgot to add this. fe7cb4cf8 Makes UltiSnips a drop in replacement for snipMate. 6b8bb1b64 Launch and exit vim for each test. 2c28b51db Allow tests to write arbitrary files into the runtimepath, not just snippet files. 48dcaa02b Attempted fix at several startup problems. 2d18d5365 Change initialization to make session work. git-subtree-dir: vim/bundle/ultisnips git-subtree-split: 78614503098571ecdb09f79bc9543aacdb0e41c0
9 years ago
if bang:
filetypes.extend(self._buffer_filetypes[_vim.buf.number])
else:
filetypes.append(self._buffer_filetypes[_vim.buf.number][0])
for ft in filetypes:
potentials.update(find_snippet_files(ft, snippet_dir))
potentials.add(os.path.join(snippet_dir,
ft + '.snippets'))
if bang:
potentials.update(find_all_snippet_files(ft))
potentials = set(os.path.realpath(os.path.expanduser(p))
for p in potentials)
if len(potentials) > 1:
files = sorted(potentials)
formatted = [as_unicode('%i: %s') % (i, escape(fn, '\\')) for
i, fn in enumerate(files, 1)]
file_to_edit = _ask_user(files, formatted)
if file_to_edit is None:
return ''
else:
file_to_edit = potentials.pop()
dirname = os.path.dirname(file_to_edit)
if not os.path.exists(dirname):
os.makedirs(dirname)
return file_to_edit
@contextmanager
def _action_context(self):
try:
old_flag = self._inside_action
self._inside_action = True
yield
finally:
self._inside_action = old_flag
@err_to_scratch_buffer
def _track_change(self):
self._should_update_textobjects = True
inserted_char = _vim.eval('v:char')
try:
if inserted_char == '':
before = _vim.buf.line_till_cursor
if before and before[-1] == self._last_inserted_char:
self._try_expand(autotrigger_only=True)
finally:
self._last_inserted_char = inserted_char
if self._should_reset_visual and self._visual_content.mode == '':
self._visual_content.reset()
self._should_reset_visual = True
UltiSnips_Manager = SnippetManager( # pylint:disable=invalid-name
vim.eval('g:UltiSnipsExpandTrigger'),
vim.eval('g:UltiSnipsJumpForwardTrigger'),
vim.eval('g:UltiSnipsJumpBackwardTrigger'))