Commit Graph

302 Commits

Author SHA1 Message Date
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
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
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
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
Michael Anhari
71ab5319e3 Add support for editing snippets in a new tab (#917) 2018-04-01 08:49:15 +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
RyanSquared
6d2a2b81cd
doc/UltiSnips.txt: Add ToC link to snippet options 2017-06-29 18:54:58 -05:00
Jakob Pfender
a94293614f fix emphasis in doc file that created a tag
Emphasizing 'not' as '*not*' causes :helptags to generate a tag called
'not'. Because people like writing '*not*' in their documentations, this
can cause duplicate ta conflicts with other plugins (e.g. Command-T's
doc also generates a 'not' tag).
2017-06-13 13:51:54 +12:00
Rubén
ba5deae853 Update documentation
The UltiSnipsSnippetsDir must be a string, the brackets raise an AttributeError because lists don't have the startswith method.
2016-10-21 12:47:36 +02:00
thalesmello
6a7843bcb3 Include examples about how to create postfix
Postfix snippets are an incredibly useful feature in IntelliJ IDE's.

Only recently I came to realize this [could be implemented with UltiSnippets](https://github.com/sniphpets/sniphpets-postfix-codes/blob/master/UltiSnips/php.snippets).

I think it would be a nice addition to the UltiSnippets documentation, in the hopes it could help others spend less time than I did trying to figure out how to put it together.
2016-07-07 03:19:02 -03:00
Stanislav Seletskiy
b5edea2e99 examples: add link to vim-pythonx lib 2016-05-08 03:14:59 +06:00
Stanislav Seletskiy
b1a707d675 examples: autojump demo 2016-05-08 03:09:33 +06:00
Stanislav Seletskiy
d37fda1240 minor typo fix 2016-05-06 11:14:12 +06:00
Stanislav Seletskiy
ae01893c85 article about tabstop generation 2016-05-06 11:09:22 +06:00
Stanislav Seletskiy
3c420ed63f README.md: fix link to demo.gif 2016-04-28 10:55:39 +06:00
Stanislav Seletskiy
9306fdc6d0 README.md: start examples section 2016-04-28 10:53:48 +06:00
Egor Kovetskiy
eb7240ff7d UltiSnipsEdit look for non empty files in snippets directories 2016-04-14 13:31:49 +06:00
Egor Kovetskiy
2e62906c33 allow specify context using special header 2016-04-13 17:37:58 +06:00
Stanislav Seletskiy
3a3e56a987 grant access to visual to context and actions
Grants access to:

* context match condition for context snippets (via snip.visual_text and
    snip.visual_mode);

* pre/post actions (via same variable);

* context match condition to (!) lastly selected placeholder, so it is
    possible now to use autotrigger snippets, that are activated by
    simply typing letter while tabstop is selected;

* python interpolations to lastly selected placeholder;
2016-03-29 21:25:27 +06:00
dNItro
203218297c More detailed documentation on multiline option 2016-01-21 03:28:19 -08:00
dNItro
8a8e183b80 Documentation on multiline option 2016-01-20 13:54:38 -08:00
Stanislav Seletskiy
3f2c591c3b Merge pull request #625 from chemzqm/location
add snippets_in_current_buffer function
2016-01-20 22:03:46 +05:00
Stanislav Seletskiy
0058e8664f doc: add link to options for #Anon() 2016-01-13 15:55:10 +06:00
Stanislav Seletskiy
ec9b292ba4 fix typos in doc/UltiSnips.txt 2016-01-12 10:32:11 +06:00
chemzqm
52ade8fed6 doc for all param of SnippetsInCurrentScope 2016-01-12 00:37:53 +08:00
Holger Rapp
2e9f12bfd6 Fixed doc/UltiSnips.txt for change of maintainer. 2015-11-28 11:40:37 +01:00
Holger Rapp
c9699feed1 Fix docs: "'" has no special meaning in snippets.
Fixes #565.
2015-11-02 09:10:02 +01:00
Stanislav Seletskiy
76ebfec3cf autotrigger: make snippets expand without <tab> 2015-10-09 16:00:24 +06:00
Eric Douglas
e603117f66 Fix Tabstops and Placeholders index 2015-09-14 12:27:16 -03:00
Neil Grogan
74bbca2f9c Fixed URL 2015-09-09 11:09:32 +01:00
Holger Rapp
e48d8a28e5 Rollback "Merge support for auto expand."
Due to performance degradation reported in #552.

This reverts commit 490430f91d, reversing
changes made to cf2c473a8e.
2015-08-21 07:38:34 +02:00
Stanislav Seletskiy
61e06bbc18 add note about version and fix tests 2015-08-12 17:35:28 +06:00
Stanislav Seletskiy
878f79ffda review fixes 2015-08-12 17:22:15 +06:00
Stanislav Seletskiy
14ea90385b tests and docs 2015-08-03 14:41:25 +06:00
Kris Dages
cc43d1251a Pipe-quoting helptag reference to UltiSnips-context-snippets 2015-07-31 10:46:02 -05:00
Stanislav Seletskiy
175e3ba521 fix doc 80 chars limit 2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
ba774c39ca review fixes 2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
972305725f fix expan_anon in pre-action, snip object, fixes 2015-07-29 20:08:49 +06:00
Stanislav Seletskiy
1ca82f76f7 pre/post-expand and post-jump actions 2015-07-29 20:08:34 +06:00
Holger Rapp
5c211b0e79 Clear up pathogen installation instructions.
Closes #535.
2015-07-27 09:22:05 +02:00
Holger Rapp
7f64510a7e Link to the Vimcasts about UltiSnips.
[ci skip]
2015-07-18 18:05:36 +02:00
Holger Rapp
992e094638 Add a warning about changing the buffer in autocommands. 2015-07-13 07:14:54 +02:00
Greg Hurrell
c4ee3ecf10 Fire autocommands when setting up and tearing down inner state
It can be useful to set up mappings that apply only during expansion of
a snippet. UltiSnips does this internally with the `_setup_inner_state`
and `_teardown_inner_state` methods.

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

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

- 0664b627e7
- 3740c248ee

Using this approach I've been able to get rid of Supertab and have a
more nuanced autocompletion experience that works exactly as I'd like
with YouCompleteMe.
2015-07-13 07:11:39 +02:00
Holger Rapp
33db8b4ab0 Update pathogen installation instructions.
Fixes #501.
2015-07-11 18:48:44 +02:00