Commit Graph

1465 Commits

Author SHA1 Message Date
lacygoill
1a99766b73 Give the abort argument to all functions (#1048)
It prevents Vim from processing the rest of the statements inside a function, after having encountered an error.

It also gives shorter and more relevant stack traces in case of an error.
2019-05-05 07:05:57 +02:00
lacygoill
0fdf2ece4f Prioritize local mappings over global ones (#1049)
If the user has a global mapping which begins like a local one,
they probably expect the local mapping to win.
Without `<nowait>`, they would have to wait for the timeout to occur.
2019-05-05 07:05:11 +02:00
lacygoill
0165e50d0d Tag UltiSnips-snippet-search-path is obsolete (#1047)
Closes #1033.
2019-05-05 07:04:17 +02:00
yofri
423aa280b9 Fix typo in README 2019-05-05 07:03:23 +02:00
Viacheslav Lotsmanov
6fdc3647f7 feature/docs-improvement-of-is-expandable-func (#975)
To deal with space characters.
2018-04-30 22:01:36 +02:00
Gordon
30e651fb1f refactor documentation with snippets loading procedure section (#954)
I have:
* Created a new section "4.1.3 How snippets are loaded"
* Moved documentation from "4.1 Adding Snippets" section into "4.1.3 How snippets are loaded"
2018-04-18 07:34:07 +02:00
Holger Rapp
905e524924 Rename some variables for added clarity. (#977) 2018-04-16 11:20:37 +02:00
Holger Rapp
21ea2f4efc Hoist up folding. (#976) 2018-04-15 23:22:14 +02:00
Holger Rapp
64a023a7ec Towards using an internal buffer for all snippet updates. (#973) 2018-04-14 17:59:48 +02:00
Holger Rapp
165dd4b3cd Code simplifications. (#972) 2018-04-14 16:25:44 +02:00
Andrey Orst
943156d879 Add note about contributing to traceback (#969)
There too many issues with traceback only. While it is good to have traceback, it is sell useful when it is the only info in the issue description. I think that contributing manual should be mentioned here even if we have issue template now. At least further new issues with traceback may follow contributing guide.
2018-04-11 21:55:30 +02:00
Zhong Liu
f4304d59cc fix bug when vim option 'selection' is 'exclusive' (#883)
here is a vim option ``selection``.
if the value is `exclusive`, the mark `'>` is one more then real visual selection.
so var `ebyte` or `ec` must subtract 1.

and that is not a windows bug.
because gvim on windows sourced `$VIMRUNTIME\mswin.vim` by default.
the line 17 of `mswin.vim` execute `:behave mswin` will change option `selection` to `exclusive`.

more deailt in issue #863
2018-04-11 10:19:45 +02:00
Holger Rapp
4eac979888 Disable auto detecting changes to snippet files on expansion (#967)
Instead, trigger an auto command whenever a .snippets file is saved that will reload the snippets. This is a performance improvement with a loss of functionality: externally (i.e. outside of the current Vim instance) generated snippet files will not be picked up until UltiSnips#RefreshSnippets is called.

I decided to not expose a command for this, since I assume it is rarely useful. I think the command would add confusion of when it was supposed to be ran.

Fixes #932.
2018-04-11 00:52:48 +02:00
Holger Rapp
9014274598 Minor simplifications. (#966) 2018-04-11 00:09:48 +02:00
Holger Rapp
debef2b1a7 Remove long unused .bzrignore. (#968) 2018-04-10 23:26:12 +02:00
Holger Rapp
36f5618745 Removed unnedded code. (#963)
As I am reading the code, this branch can never be taken.
2018-04-09 16:37:33 +02:00
Andrey Orst
64289acdb1 Update issue_template.md (#959)
As I've proposed in https://github.com/SirVer/ultisnips/issues/949#issuecomment-379158188 I've added comments that will be deleted automatically, so user wont need to do this manually and resulting issue will not accidentally contain any unnecessary text.
2018-04-09 15:54:25 +02:00
Holger Rapp
01c4bde123 Remove travis caching and avoid rate limiting. (#962)
The caching only saves a few minutes and seems brittle.
2018-04-09 15:05:40 +02:00
Holger Rapp
411d0118ef Use a GitHub access token to avoid rate limiting of API. (#961)
This will not help pull requests, as they are considered untrusted by Travis. But at least master builds and pull requests from branches in this repo should not hit rate limiting now.
2018-04-09 12:51:34 +02:00
Holger Rapp
1e35bb3802 Mention deoplete as supported. 2018-04-08 21:47:13 +02:00
Andrey Orst
c5ef0d0355 Fix UltiSnipsSnippetDirectories suggestion in docs (#960)
The variable g:UltiSnipsSnippetDirectories including its documentation was introduced in b47e686. There the documentation read

> let g:UltiSnipsSnippetDirectories=[$HOME.'/.vim/UltiSnips']

This example was later changed in #775, claiming that this variable needs to be a string. This seems to have been done in error, so this change reverts that PR back to the original documentation.

Fixes #815.
2018-04-07 22:20:40 +02:00
Holger Rapp
519597a2d1 Tweaking GitHub issue template. 2018-04-05 22:44:45 +02:00
Holger Rapp
acb3fc320b Tweaking GitHub issue template. 2018-04-05 22:31:47 +02:00
Holger Rapp
0058ddb9be Tweaking GitHub issue template. 2018-04-05 22:30:20 +02:00
Holger Rapp
5e10218ece Added a GitHub issue template. 2018-04-05 22:29:22 +02:00
Holger Rapp
0f42294846 Adds a CONTRIBUTING.md file. 2018-04-05 22:07:31 +02:00
Holger Rapp
da6efc3e7d Rename scripts -> docker. Make repro more useful. 2018-04-05 21:52:33 +02:00
Holger Rapp
42956dd140 Fix pwd call. 2018-04-05 20:33:42 +02:00
Holger Rapp
1546022088 Make makefile a bit more powerful. 2018-04-03 21:53:28 +02:00
Holger Rapp
c7a9d21d6f Add a dockerfile for quick, manual testing. 2018-04-03 21:53:28 +02:00
Enno
9777b6ec40 document IsExpandable() to check if snippet is expandable without expanding (#957)
Solves https://github.com/SirVer/ultisnips/pull/790#issuecomment-377808784
2018-04-02 21:10:23 +02:00
Holger Rapp
b11b397d65 Eur symbol is translated in EUR instead of EU. 2018-04-01 21:22:37 +02:00
Holger Rapp
53c6771d2b Install unidecode, so that all things we can test are tested. 2018-04-01 20:57:57 +02:00
Holger Rapp
cd5c1fd09d Install vim in /usr/local instead of /root inside docker. 2018-04-01 20:51:05 +02:00
Holger Rapp
6ee724a1ce
Enable testing for python3 too. (#955)
This gives us back testing parity to before CI broke - and hooray, all tests still pass!
2018-04-01 20:50:03 +02:00
Holger Rapp
662e036028 Actually load the docker cache before executing tests. 2018-04-01 09:38:39 +02:00
Michael Anhari
71ab5319e3 Add support for editing snippets in a new tab (#917) 2018-04-01 08:49:15 +02:00
Johnson
23b9f11b7a Fix character selection when using VISUAL on all platforms (#926) 2018-04-01 08:45:17 +02:00
Holger Rapp
539c557680
Move travis testing into docker for better consistency. (#950)
This now only tests python2 on Vim 7.4, 8.0 and git. No Neovim (that has been broken for a long time anyways) and no longer any python3 testing. But hey, we have green tests again!
2018-04-01 00:56:34 +02:00
Holger Rapp
3515cb6c13 Adapt to the new way that tmux wants unicode be send.
This fixes most unicode using test-cases.
2018-03-30 22:03:36 +02:00
Holger Rapp
2470a1b380 Updated release date for 3.1. 2018-03-30 20:44:51 +02:00
lacygoill
a8e7e26954 Documentation improvements: don't clean 1st tabstop if it's not empty (#929)
* don't clean 1st tabstop if it's not empty
* line → snip.line
2018-03-30 20:41:33 +02:00
Tom Beynon
89c93fc089 Mark source as volatile (#844)
Deoplete expects to carry out the filtering of snippets by default, but the UltiSnips source uses UltiSnips#SnippetsInCurrentScope() which filters the returned snippets based on user input. Without is_volatile, Deoplete will cache the first set of results UltiSnips returns and keep trying to filter that, rather than getting a new set of results when the input changes.
2018-03-30 20:37:02 +02:00
Stanislav Seletskiy
423f264e75 Merge pull request #867 from RyanSquared/master
doc/UltiSnips.txt: Add ToC link to snippet options
2017-06-30 14:13:24 +07:00
Stanislav Seletskiy
1e40333a50 Merge pull request #868 from J3soon/fix_visual_V
Fix selection when using ${VISUAL} in line selection mode on Windows.
2017-06-30 14:09:49 +07:00
Johnson
5a7ec5cea2 Fix selection using ${VISUAL} in line selection mode on Windows. 2017-06-30 09:30:21 +08:00
RyanSquared
6d2a2b81cd
doc/UltiSnips.txt: Add ToC link to snippet options 2017-06-29 18:54:58 -05:00
Stanislav Seletskiy
6b187827e2 Merge pull request #864 from J3soon/fix_visual
Fix selecting one more character when using ${VISUAL}.
2017-06-27 18:06:43 +07:00
Johnson
b9f4438aeb Fix selecting one more character when using ${VISUAL} on Windows. 2017-06-24 02:14:46 +08:00
Stanislav Seletskiy
113a901f41 Merge pull request #860 from jpfender/fix-not-tag
Fix emphasis in doc file that created a tag
2017-06-13 20:59:33 +07:00