Commit Graph

60 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
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
cecc7aad88 Fixed a typo that might make problems when there is no python available. 2014-02-19 22:54:37 +01:00
Holger Rapp
c1b41d0fbf Adds 'priority' keyword and removes '!' option. 2014-02-19 21:04:52 +01:00
Holger Rapp
d6ebf85fc8 Added deprecation warnings for old functions. 2014-02-19 20:30:46 +01:00
Holger Rapp
ba772b0d14 after script maps Keys again. Needed some refactorings. This fixes supertab integration and closes #212. 2014-02-17 08:15:04 +01:00
Holger Rapp
82ca377aaf Moved the core of the plugin into autoload. This will not really impact loading times because UltiSnips is loaded on the first CursorMovedI command anyways, but it might fix some issues with --noplugin. 2014-02-11 07:56:56 +01:00
Holger Rapp
7c9d0c0c71 Refactored retaining of unnamed register to be done in VimState. 2014-02-10 21:27:51 +01:00
Holger Rapp
4005608bab Follow the Vim 7.4 convention where to place python files. 2014-02-07 10:38:44 +01:00
Holger Rapp
bd132bc379 More linting warnings and a small bug fix. 2014-02-07 09:50:20 +01:00
Holger Rapp
dc00dd983d Added a preliminary pylintrc to the project.
and started to fix linting errors.
2014-02-05 23:20:53 +01:00
Holger Rapp
2cdaac1b1c Merge branch 'master' into mMontu-master 2014-02-05 17:21:33 +01:00
LFDM
bf3bfdac9c Adds eventhandler to restore the unnamed register 2014-01-31 16:33:46 +01:00
mMontu
ecb7dfdf64 Change default value/check, fix for nested snippets 2013-11-10 21:15:24 -02:00
mMontu
6d7f52bb6e Include handling for expansion from list_snippets 2013-10-05 15:59:21 -03:00
mMontu
a32473a5d4 Option for JumpTrigger only during snippet expansion 2013-10-05 13:19:20 -03:00
Holger Rapp
5d6f72949d Added UltiSnips_SnippetsInCurrentScope(). Patch by Jorge (skeept) 2013-06-10 18:27:48 +02:00
Holger Rapp
61291ecd83 Completion for UltiSnipsEdit. Patch by Zhao Cai. 2013-04-21 17:18:14 +02:00
Stanislav Golovanov
1269fd26e4 add python module path to global variable 2013-02-08 21:57:29 +04:00
Holger Rapp
27cae38529 DEL and c-h now behave as BS in select mode. Patch partly by buztard 2012-10-14 11:41:22 +02:00
Aaron Schrab
0f08e2e553 Allow suppressing warning about python support
Don't warn about missing python support if the UltiSnipsNoPythonWarning
variable is defined.  This allows users to use a common set of vim
configuration files across a range of systems, even if some of them do
not have python support compiled into vim.
2012-07-31 15:42:35 -04:00
Aaron Schrab
c9bb2921dc Dummy version of UltiSnips_FileTypeChanged()
Define a dummy version of the UltiSnips_FileTypeChanged function before
checking for python support.  If that function isn't defined, the
autocommand defined in ftdetect/UltiSnips.vim will cause an error any
time a new file is opened.  That autocommand is setup before the
function is defined, so we can't setup the autocommand only when the
function exists.
2012-07-31 15:25:36 -04:00
Holger Rapp
2ddb5b7263 Small bug fix for last commit 2012-04-01 16:50:50 +02:00
Holger Rapp
bfce5af642 Implemented UltiSnipsAddFiletypes
It makes it possible to add filetypes in ftplugin/ft.vim or manually while editing.
2012-04-01 16:42:34 +02:00
Holger Rapp
5640013a9a Fixed critical bug in last commit. Sorry 2012-03-28 09:21:37 +02:00
Holger Rapp
c5bf7dc6cc Also leave snippets when exiting the buffer, not only when exiting the window 2012-03-28 07:42:05 +02:00
Holger Rapp
8a7af50154 Load snippets as soon as filetype is set. This avoids a delay in the first expansion in a file 2012-02-21 21:47:12 +01:00
Holger Rapp
30875494e4 Made python version configurable 2012-02-08 16:28:39 +01:00
Holger Rapp
2dc4148f0f We now require py >= 2.6 2012-01-28 17:07:37 +01:00
Holger Rapp
89f720c91c Improved ${VISUAL} support
- make a difference between V and v selection
- Keep proper indenting even when used inside other TextObjects
2012-01-28 17:07:35 +01:00
Holger Rapp
947b7dc3e8 Enabled normal mode editing. All tests pass but there are some errors lurking 2012-01-28 17:07:34 +01:00
Holger Rapp
59dd11690a Lots of code cleanups and smaller bug fixes
- Removed some dead code
- Added some unittests, mainly for debugging
2012-01-28 17:07:33 +01:00
Holger Rapp
994074d920 More mirror tests passing 2012-01-28 17:07:32 +01:00
Holger Rapp
f203e59147 More tricky Multiline Mirrors 2012-01-28 17:07:32 +01:00
Holger Rapp
042c382b46 Worked a little further 2012-01-28 17:07:18 +01:00
Holger Rapp
3a7674bca0 First hooks into vim. Very slow atm 2012-01-28 17:06:23 +01:00
Holger Rapp
da49b4b7c4 Work around an awkward py3 <-> py bug on vim on ubuntu 2012-01-24 15:30:05 +01:00
Holger Rapp
0c63f205aa Added basic support for the token. No documentation yet, but 16 new tests 2012-01-11 19:17:13 +01:00
Holger Rapp
1653eb89ea UltiSnips loads in python3 now, but does not work so far 2012-01-10 14:16:25 +01:00
Holger Rapp
3237960a75 Move python online commands into vim functions for better profiling 2011-12-29 21:05:19 +01:00
Holger Rapp
83de7a3e66 Fixed the problem that you could not switch windows/tabs while inside a snippet 2011-06-28 22:48:05 +02:00
Holger Rapp
9e712a9a39 Removed UltiSnipsReset. It is no longer needed 2011-04-28 08:27:09 +02:00
rygwdn@gmail.com
ad84c346d0 - extracted and cleaned up searching for snippets files
- cleaned up UltiSnipsEdit by rewriting in python reusing existing code
2011-04-27 15:26:12 -03:00
rygwdn@gmail.com
dbeecdbe24 use consistent spacing in vim file 2011-04-27 12:37:07 -03:00
Holger Rapp
a63c3f9a18 Improvements to UltiSnipsEdit command by jmcantrell which partially fixes bug 748433 2011-04-09 17:58:30 +02:00
Holger Rapp
8513aa48d8 Added a new variable for snippet directory names. UltiSnips directories can be excluded to not make the shipped plugins available 2011-03-31 07:40:56 +02:00
rygwdn@gmail.com
30738b2176 Use faster, cleaner method for modifying the path. 2011-02-04 20:02:30 -04:00
rygwdn@gmail.com
98b396ff24 Fixes Bug #427676.
- Adds the idea of anonymous snippets with new method on SnippetManager to expand a snippet without adding it.
- Adds two new functions for adding new snippets, and expanding anonymous snippets.
- Adds tests for the above functionality.
2010-12-18 13:07:46 -04:00
Holger Rapp
c095147fa1 Added commands UltiSnipsReset and UltiSnipsEdit by JCEB 2010-09-22 13:01:04 +02:00
Holger Rapp
5aac3f5836 Implemented a fix for select mode mappings along the lines of the suggestions by Ryan. Added tests. Documentation is still missing 2010-08-20 09:32:12 +02:00