Commit Graph

291 Commits

Author SHA1 Message Date
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
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
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
Holger Rapp
3806a69874 Fix improper use of augroup in ftdetect. 2015-06-01 21:12:19 +02:00
Holger Rapp
ab1cc1afac Remove documentation for using the same trigger for jump and expand. 2015-05-01 14:36:41 +02:00
Holger Rapp
d6098193ef Merge pull request #446 from seletskiy/context-snippets
New feature: Context-aware snippets
2015-05-01 14:35:19 +02:00
Stanislav Seletskiy
2f355c233f another little fix in documentation 2015-04-29 22:25:21 +06:00
Stanislav Seletskiy
1b3ecf4a85 priority test, docs & fmt fixes 2015-04-27 15:42:21 +06:00
Stanislav Seletskiy
904fbdecf5 review fixes 2015-04-25 21:38:22 +06:00
Stanislav Seletskiy
709f8dc93f minor doc fix and new cursor variable 2015-04-19 11:08:14 +06:00
Stanislav Seletskiy
9861a6e6c3 typo fix in docs 2015-04-19 11:08:14 +06:00
Stanislav Seletskiy
66bc2e8f6e documentation, pull-requests fixes 2015-04-19 11:08:14 +06:00
Holger Rapp
00848d7d64 Merge pull request #483 from cwahbong/master
Update document for zero tabstop.
2015-04-18 22:45:04 +02:00