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
Holger Rapp
3b2eb436b7
Buffer local overwrite for snippet directory. Patch by jszakmeister.
2013-06-19 08:00:52 +02: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
Holger Rapp
e10285b382
Fix for bug 1073816 and some improvements to debug utilities.
2013-04-14 13:09:33 +02:00
Holger Rapp
9333a5112b
Enhancements to shell code intepolation: Try hard to find a directory where we actually can execute something. Patch by Keith Welch.
2013-04-12 06:55:37 +02:00
Holger Rapp
971778b93a
Fix problems with replaying tab keys in macros. US now needs a very recent version of supertab or no supertab at all.
2013-02-25 10:18:19 +01:00
Holger Rapp
831b3460ca
Easy access to UltiSnips python modules. Patch by Stanislav Golovanov.
2013-02-18 20:41:54 +01:00
Holger Rapp
2398bd1c82
Use normal!
2013-02-18 20:23:43 +01:00
Stanislav Golovanov
1269fd26e4
add python module path to global variable
2013-02-08 21:57:29 +04:00
Holger Rapp
bf375682b3
Fixed a problem with supertab, sparkup and ultisnips. Patch by Eric Van Dewoestine.
2013-01-02 18:49:21 +01:00
Pedro Algarvio
bbb98007de
Remove un-used imports. PEP8 fixes.
2012-12-11 12:42:11 +00:00
Holger Rapp
4c068bd008
New snippet option to strip whitespaces in front of cursor. Patch by aschrab
2012-11-27 09:54:24 +01:00
Aaron Schrab
3a4991fb32
Add option for stripping of trailing whitespace
...
Add "s" snippet option which, if set, will cause trailing whitespace to
be stripped from lines before jumping to the next tab stop.
When used with a snippet like the following this will allow the text
from the $1 tabstop to be removed and have the space in front of that
automatically deleted when the user jumps to $2. This will work even if
using the same key for snippet expansion and jumping to the next
tabstop, whereas if the space was manually removed the key would cause
the snippet to be expanded again.
snippet do "do block" s
do `!p snip.rv = "|" if t[1] else""`${1:args}`!p snip.rv = "|" if t[1] else""`
$2
end
$0
endsnippet
2012-11-24 13:25:29 -05:00