Commit Graph

1048 Commits

Author SHA1 Message Date
Daniel Hahler
c57c717e33 Delete autocommands when Bootstrap failed
When bootstrapping fails to setup `g:_uspy` (e.g. without Python),
the functions used in the autocommands are not being defined.

Since it makes no sense to have autocommands defined for UltiSnips in this
case, this patch deletes them (via a new augroup 'UltiSnips').
2014-04-09 19:04:30 +02:00
Daniel Hahler
2ad6ad4493 Fix E168: :finish used outside of a sourced file 2014-04-09 19:04:08 +02:00
Holger Rapp
a3e654fc54 _vimfiles -> vimfiles. Patch b Oberon. 2014-04-06 16:33:02 +02:00
Holger Rapp
b6d545ecdf Properly escape locations on windows. 2014-03-30 11:13:34 +02:00
skeept
ae70ec8956 Escape correctly file names in windows.
In windows when expanding snippets the names of the snippet files look weird because \ is not escaped properly.

Also I think there should be an option to show only part of the file name, say the path relative to ~/.vim, because this way most of the screen is taken with the paths of the file.

Going even further I think it would it look nicer if you had some kind of alignment for the string. Say "%2i: %-15s (%s)".
Of course this last suggestion might not be consensual, but maybe a option might be offered to the user.
2014-03-30 05:57:44 +00:00
Holger Rapp
4b4ee48858 Overwrite all snippets with lower priority on expansion.
Fixes #233.
2014-03-23 17:30:44 +01:00
Holger Rapp
5116001246 Documentation fixes. 2014-03-23 09:54:41 +01:00
Ches Martin
fee999a71f Docs: remove a reference to defunct ! snippet option
Removed in c1b41d0fbf for priority system.
2014-03-23 15:36:14 +07:00
Holger Rapp
360f58dbf6 Show where snippets are defined in selection.
Fixes #184.
2014-03-22 20:20:56 +01:00
Holger Rapp
7c34a3400b Escape \ when asking for snippets.
Fixes #176.
2014-03-22 19:53:01 +01:00
Holger Rapp
cd99bdd3b3 selection=old cannot work with UltiSnips.
Kind of fixes #173.
2014-03-22 19:47:59 +01:00
Holger Rapp
69e0acd58a Change the way placeholders are selected.
Fixes #157.
2014-03-22 16:43:57 +01:00
Holger Rapp
5aaeae5e85 Do not delete child that is already gone.
Fixes #154
2014-03-22 11:28:44 +01:00
Holger Rapp
1b21741a2d Update ChangeLog. 2014-03-22 11:06:24 +01:00
Holger Rapp
f40c3ac5e0 Made UltiSnipsEdit! more consistent with multiple filetypes. 2014-03-15 15:55:03 +01:00
Holger Rapp
5ac0436694 Retry unmapping when we switched buffers.
Fixes #229.
2014-03-14 20:35:14 +01:00
Holger Rapp
b0a3266a61 More tweaking. 2014-03-12 08:23:22 +01:00
Holger Rapp
940f4d9f27 tweaked readme 2014-03-12 08:22:58 +01:00
Holger Rapp
5fe88fdc94 Use the demo in the README. 2014-03-12 08:21:00 +01:00
Holger Rapp
764fd65a78 Added a nice interactive demo. 2014-03-12 08:12:47 +01:00
Holger Rapp
001c2a9673 Added realname of petobens. 2014-03-08 09:09:21 +01:00
Holger Rapp
c6906d85be Fixed a bug in UltiSnipsEdit!
Closes #237
2014-03-07 10:51:04 +01:00
Holger Rapp
6398a598b5 Made UltiSnipsEdit more useful and consistent.
It now by default only edits private files, add a ! if you want to edit
non private files.
2014-03-06 09:10:48 +01:00
Holger Rapp
f446409230 Mention neocomplete in the docs. 2014-03-06 07:07:49 +01:00
Holger Rapp
ba2f30fdf9 Adapted neosnippets source. Examples by petobens. 2014-03-06 06:47:55 +01:00
Holger Rapp
e6d335aa40 Make the cloning direcotory explicit on stdout. 2014-03-06 06:47:29 +01:00
Holger Rapp
96557f3972 Added integration test for SuperTab. 2014-03-05 19:22:55 +01:00
Holger Rapp
a800b51e0e Removed no longer planned TODOs 2014-03-05 19:04:16 +01:00
Holger Rapp
147df653ae Snippet sources can now be registered.
It was not clearly supported though possible before. Now there is a
tested and documented API.
2014-03-05 19:02:30 +01:00
Holger Rapp
1ce706e3a9 Adapted neocomplete integration. 2014-03-05 08:55:16 +01:00
Holger Rapp
a23911f7f9 Add option to only clone and immediately exit the test runner. 2014-03-05 08:39:37 +01:00
Holger Rapp
c017806b1d Added preliminary support for neocomplete.
Patch by lervag. Closes #228
2014-03-05 08:14:53 +01:00
Holger Rapp
1ec523801d Added version checking for other plugins. 2014-03-05 07:50:23 +01:00
Holger Rapp
f4cda88027 Add integration tests with YouCompleteMe. 2014-03-04 20:36:27 +01:00
Holger Rapp
b65efa5aa7 Added quickstart to readme.
And reworded a bit.
2014-03-04 18:09:26 +01:00
Holger Rapp
7b51ec6f6b Removed snippet contributors from README. 2014-03-04 17:54:30 +01:00
Holger Rapp
35e57fad0b Removes snippets. Please track honza/vim-snippets. 2014-03-04 17:44:51 +01:00
Holger Rapp
c4fa2c03bd Barf when using "snipmate" for UltiSnips.
Fixes #224
2014-02-26 20:40:01 +01:00
Holger Rapp
c9681051ce Small fixes to the documentation. 2014-02-26 08:23:01 +01:00
Holger Rapp
1ec2f187b0 Updated ChangeLog. 2014-02-26 08:22:16 +01:00
Holger Rapp
c690a36102 Empty lines do not end a snippet for snipMate. 2014-02-25 23:17:05 +01:00
Holger Rapp
14fca85231 Ups. Forgot to add this. 2014-02-25 23:01:58 +01:00
Holger Rapp
fe7cb4cf8d Makes UltiSnips a drop in replacement for snipMate.
This includes massive refactorings and lots of new features.
2014-02-25 22:51:45 +01:00
Holger Rapp
6b8bb1b642 Launch and exit vim for each test.
This makes the testsuite slower, but avoids leaking state. Also the code
has to be less aware of being under test. It will also allow to to more
integration tests with other plugins that have support for UltiSnips or
that UltiSnips supports.
2014-02-22 09:26:03 +01:00
Holger Rapp
2c28b51dbd Allow tests to write arbitrary files into the runtimepath, not just snippet files. 2014-02-20 20:08:47 +01:00
Holger Rapp
48dcaa02bc Attempted fix at several startup problems. 2014-02-20 14:32:28 +01:00
Holger Rapp
2d18d53656 Change initialization to make session work.
Fixes #216.
2014-02-20 11:06:45 +01:00
Holger Rapp
cecc7aad88 Fixed a typo that might make problems when there is no python available. 2014-02-19 22:54:37 +01:00
Holger Rapp
bb047c70ca Fix priorities to work with partial matches.
Do not delete all lower priority snippets, only those that are defined
elsewhere too.
2014-02-19 22:09:22 +01:00
Holger Rapp
980891c3df Dedent visual line selections before using them.
Fixes #217.
2014-02-19 21:49:33 +01:00