Commit Graph

1396 Commits

Author SHA1 Message Date
solawing
b7fcce30e0 fix visual placeholder multi call 2016-08-13 11:32:10 +08:00
Stanislav Seletskiy
b4c7a5788a Merge pull request #730 from tweekmonster/django-plus
Add support for django-plus.vim
2016-08-05 13:05:21 +07:00
Tommy Allen
104e571c4a Allow file type to be passed into UltiSnips#FileTypeChanged() 2016-08-04 12:36:03 -04:00
Stanislav Seletskiy
e8c485eb3c Merge pull request #720 from thalesmello/master
Include examples about how to create postfix snippets
2016-07-07 12:10:24 +05: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
1c6b4f75a0 fix 107: error, introduced in 47d343d 2016-05-16 09:32:05 +06: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
0cf51055fc README.md: link to seletskiy and new article 2016-05-06 11:15:34 +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
Stanislav Seletskiy
aaa89bf0d6 actions: do not break cursor on single line change 2016-04-27 22:29:50 +06:00
Stanislav Seletskiy
6cd168c5b4 print errors in regexp triggers 2016-04-27 20:26:40 +06:00
Stanislav Seletskiy
8250d33bca Merge pull request #686 from kovetskiy/ultisnipsedit
UltiSnipsEdit should try to find non-empty snippet files
2016-04-18 12:05:58 +06:00
Egor Kovetskiy
eb7240ff7d UltiSnipsEdit look for non empty files in snippets directories 2016-04-14 13:31:49 +06:00
Stanislav Seletskiy
4c71935cba Merge pull request #684 from kovetskiy/master
allow specify context using special header
2016-04-14 13:31:01 +06:00
Egor Kovetskiy
47d343d5c4 highlight context syntax as python code 2016-04-13 17:50:38 +06:00
Egor Kovetskiy
2e62906c33 allow specify context using special header 2016-04-13 17:37:58 +06:00
Stanislav Seletskiy
5d4094b2bb quick and dirty fix tests for vanilla vim 2016-04-13 17:28:17 +06:00
Stanislav Seletskiy
ea8094c506 syntax: treat python in context/actions as string
However, highlight it as python code. It's required for some tools,
which are based on syntax files to run actions.
2016-04-01 15:27:31 +06:00
Stanislav Seletskiy
61df32722b syntax highlighting: fix context highlighting 2016-03-29 21:26:21 +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
Stanislav Seletskiy
059c9a9da2 Merge pull request #679 from SirVer/overwrite-tabstops-from-py-interpolation
Overwrite tabstops from py interpolation
2016-03-29 21:18:25 +06:00
Stanislav Seletskiy
23a6ec87cd Merge pull request #663 from kmarius/fix-transformation
Fix escapes in conditional tabstob transformation
2016-03-29 21:17:41 +06:00
marius
8fdfde1905 Fix escapes in conditional tabstob transformation
check if the delimiters :, (, and ) are actually escaped, not
only if the previous char is a backslash
2016-03-28 11:18:33 +02:00
Stanislav Seletskiy
7536ac9002 tabstops can be overwritten from interpolation
It adds new type of flexibility, where just entered text can be
dynamically modified if some conditions are satisfied (e.g. dynamically
add line wraps).
2016-03-28 12:21:09 +06:00
Stanislav Seletskiy
a514585cde ignore .ropeproject 2016-03-28 12:21:07 +06:00
marius
ed40bebabf Add test cases for conditional transformations
and make sure it does not break the desired behaviour
2016-02-24 14:25:43 +01:00
Stanislav Seletskiy
25882e95cd add testcase for #658 2016-02-13 20:42:38 +06:00
Stanislav Seletskiy
0657e61e61 Merge pull request #643 from dNItro/master
Add support to do transformation on multiple lines
2016-01-27 15:45:13 +05:00
dNItro
4b27b7152d Testcase added! 2016-01-25 04:25:15 -08:00
Stanislav Seletskiy
bdd9012eb5 Merge pull request #647 from alexlafroscia/master
Allow Deoplete entries to show up with existing matches
2016-01-25 09:47:10 +05:00
Alex LaFroscia
6d38cad14c Allow Deoplete entries to show up with existing matches
I encountered an issue with Deoplete where Ultisnips suggestiosn wouldn't appear if there was a match in the current buffer with the same name as a Ultisnip snippet.  This change allows the snippet and buffer match to appear side-by-side, which is less confusing.

More information can be found on the issue on the Deoplete repo here:

https://github.com/Shougo/deoplete.nvim/issues/138#issuecomment-174050309
2016-01-22 16:32:59 -05: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
dNItro
b057f633ef Add support to do transformation on multiple lines 2016-01-20 13:51:50 -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
chemzqm
4e2e897de8 change g:current_ulti_dict_all to g:current_ulti_dict_info 2016-01-11 23:58:42 +08:00
Stanislav Seletskiy
319ccddcdc Merge pull request #628 from kmarius/fix_syntax
Fix highlighting for nested visual tabstob
2016-01-11 12:21:55 +05:00
marius
9a73473e7a Fix highlighting for nested visual tabstob
Consider the snippet

snippet test
${1:${VISUAL}}
endsnippet

A missing 'extend' keyword caused the inner closing bracket to end both
the inner 'snipVisual' and the outer 'snipTabStop' regions. Anything
after the inner bracket was considered 'snipSnippetBody' and thus
highlighted incorrectly.
2015-12-30 20:57:35 +01:00
chemzqm
6a69a44154 add all param to UltiSnips#SnippetsInCurrentScope 2015-12-28 20:01:26 +08:00
Stanislav Seletskiy
dbd43ad27c Merge pull request #624 from chemzqm/patch-1
syntax highlight for unite ultisnips
2015-12-22 12:21:16 +05:00
Qiming zhao
3a70765f40 syntax highlight for unite ultisnips 2015-12-21 22:06:16 +08:00
Stanislav Seletskiy
5a2dcc5cbf disable tests in vanilla vim for #616 2015-12-09 19:59:50 +06:00
Stanislav Seletskiy
45e3775c18 fix #616: update state on edit w/o cursor move
UltiSnips tracks changes in buffer and apply user changes only on
CursorMoved event. So, if placeholder is replaced completely by using
<BS>, CursorMoved is not triggered and internal snippet representation
is not updated, causing placeholder boundaries go out-of-sync.

Fixed by triggering text objects sync forcefully if change without
cursor move is detected.
2015-12-08 13:40:31 +06:00