Commit Graph

386 Commits

Author SHA1 Message Date
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
c78a54b158 More linting. 2014-02-07 10:20:30 +01:00
Holger Rapp
bd132bc379 More linting warnings and a small bug fix. 2014-02-07 09:50:20 +01:00
Holger Rapp
2377a4405b More linting and some code simplifications. 2014-02-07 09:03:24 +01:00
Holger Rapp
4f7cec61ae More linter warnings down. 2014-02-07 08:50:38 +01:00
Holger Rapp
fefef4e39f More lint warnings gone and simplified some code. 2014-02-06 21:42:07 +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
ec8bc5b1b5 util -> indent_util 2014-02-05 21:06:46 +01:00
Holger Rapp
47479ea802 Done with simplifying __init__.py. 2014-02-05 20:58:40 +01:00
Holger Rapp
3d4e408b32 Moved SnippetsFileParser into a file of its own. 2014-02-05 20:47:05 +01:00
Holger Rapp
975aca0c8e Moved SnippetDictionary into a file of its own. 2014-02-05 20:37:07 +01:00
Holger Rapp
03bb556799 Moved VisualContentPreserver into its own file. 2014-02-05 20:31:47 +01:00
Holger Rapp
98a676f8ac Moved some code from __init__.py into a file of its own. 2014-02-05 20:26:33 +01:00
Holger Rapp
a408ba5ce9 Whitespace cleanups. 2014-02-05 20:17:23 +01:00
Holger Rapp
daf778f59c Some minor refactorings. 2014-02-05 20:12:21 +01:00
Holger Rapp
2cdaac1b1c Merge branch 'master' into mMontu-master 2014-02-05 17:21:33 +01:00
LFDM
60f1089d9d Escapes the cached string 2014-01-31 16:55:42 +01:00
LFDM
bf3bfdac9c Adds eventhandler to restore the unnamed register 2014-01-31 16:33:46 +01:00
LFDM
fee8a23d2d Retains the unnamed register during jumps 2014-01-31 16:33:38 +01:00
Holger Rapp
1545b8327d Do not use xrange since py3 does not define it. 2014-01-07 07:01:52 +01:00
Holger Rapp
728cec37d1 Merge branch 'bug_1179630/autodetect_path_search_order' of git://github.com/saikobee/ultisnips into saikobee-bug_1179630/autodetect_path_search_order 2014-01-05 08:02:42 +01:00
Holger Rapp
fc5d2e61dd Small refactoring. 2014-01-05 08:01:42 +01:00
Brian Mock
ccbefbc209 Fixed search order detection for symlinked vim dir 2014-01-03 23:08:29 -08:00
Holger Rapp
f596d98065 Pulled from master. 2014-01-04 07:42:15 +01:00
Holger Rapp
8622753d3b Pulled from saikobee's branch. 2014-01-04 07:30:01 +01:00
Sergey Alexandrov
dc313f8c7b Fix for bug 1251994
See: https://bugs.launchpad.net/ultisnips/+bug/1251994
2013-12-29 01:56:09 +04:00
Brian Mock
bc391a330d Fixed contributors list; saner plugin dir checking. 2013-12-27 10:21:51 -08:00
Brian Mock
e9c00a746b More style cleanup; added docstrings 2013-12-25 10:47:48 -08:00
Brian Mock
9695633b21 Cleaned up code; updated docs. 2013-12-24 11:34:06 -08:00
guns
7cd4434a99 Evaluate word boundaries with Vim, not r'\b'
Certain non ALGOL-derived languages (notably LISP derivatives) do not
share the alphanumeric + underscore definition of a word character.

Fortunately, each language FileType has its own definition of a word
character, which Vim's regex engine uses when matching against the
boundary classes \< and \>.

We change the word matching routine of 'w' snippets to use Vim's regex
engine instead of a static pattern.
2013-12-23 16:34:45 -06:00
Brian Mock
0d17585bf8 Launchpad bug-1179630 Autodetect path search order 2013-12-12 23:55:28 -08:00
mMontu
ecb7dfdf64 Change default value/check, fix for nested snippets 2013-11-10 21:15:24 -02:00
marshall-lee
cf51610c3a fixed KeyboardInterrupt bug when listing snippets 2013-10-30 03:50:30 +03:00
mohd-akram
49e633b4ec Fix for Python 3 2013-10-23 09:55:24 -07:00
Holger Rapp
ce28c27285 Fixed a small bug. 2013-10-23 08:10:58 +02:00
Holger Rapp
ef2c657721 Merge branch 'master' of git://github.com/rgiot/ultisnips into rgiot-master 2013-10-21 06:30:38 +02:00
Holger Rapp
b8e0a6167d Fixed a bug in displaying error messages. 2013-10-15 11:02:12 +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
Romain Giot
449255a060 Add an error message when unidecode is not installed. The message is displayed only one time 2013-10-03 09:11:36 +02:00
Romain Giot
a150220cf2 Allow to use the flag 'a' in the transformation commands.
This way, in a Latex file written with accentueted letters, the label use non accentueted letters instead of _.
2013-10-02 13:48:12 +02:00
John Szakmeister
31f318cb7e Teach list_snippets_dict to escape apostrophes in the description.
This was discovered while trying to use
UltiSnips_SnippetsInCurrentScope() with some snippets that have
apostrophes in the description (such as printf('...', ...)).
2013-08-05 16:43:58 -04:00
Holger Rapp
cd83608df3 Pass <s-tab> through to supertab. 2013-07-16 07:05:42 +02:00
Holger Rapp
5a3190e65c Fixed b1191617. 2013-06-29 15:44:02 +02:00