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
2398bd1c82
Use normal!
2013-02-18 20:23:43 +01: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
Aaron Schrab
d4d1e86962
Make Snippet object available to SnippetInstance
...
When a Snippet object creates a SnippetInstance it should pass itself as
an argument, so that the instance can later get additional information
about the snippet.
2012-11-24 13:05:55 -05:00
Aaron Schrab
18b081b7fe
Add has_option method to Snippet class
...
Encapsulate the fact that options are stored as the original string that
was pulled from the definition. This will simplify things if that ever
needs to be changed.
2012-11-24 13:05:55 -05:00
Aaron Schrab
a6171d022b
Avoid repetition in creating SnippetInstance
...
There's no need to use different code to create a SnippetInstance based
on whether or not there's a parent. The arguments passed either way are
the same.
2012-11-24 13:05:55 -05:00
Holger Rapp
1690986d23
Indicate success or failure of expansions and jumps
...
Patch by Jorge Rodrigues.
2012-09-06 19:38:41 +02:00
Holger Rapp
3fc86a36a8
Fix for folding problem by Aaron
2012-08-22 11:55:31 +02:00
Holger Rapp
b319569b7b
Fixed bug 1034805: Langmap with escaped characters where a problem
2012-08-15 14:13:50 +02:00
Aaron Schrab
c04b6aa7bb
Leave new scratch buffers in command mode
...
Modify new_scratch_buffer method to leave the created buffer in command
rather than insert mode. Currently the only use of this method is for
showing stack traces for errors, when that happens it's much more likely
that the user will want to use command mode to move around than to use
insert mode to add text to the beginning of the buffer.
2012-08-13 12:13:03 -04:00
Aaron Schrab
73352257e4
Fix opening folds inserted by snippets
...
Commit 13331a8
added code to show the current line after insertions, but
later changes caused that to be called too soon. This left folds
created by a snippet closed, and the cursor at the end of the insertion.
2012-07-31 15:01:15 -04:00
Holger Rapp
72715d3143
Made an error message more sensible
2012-06-26 11:22:24 +02:00
Holger Rapp
50254a3a77
Ignore unicode/decode errors. This is so that UltiSnips tries harder to stay out of your way
2012-06-26 10:10:42 +02:00
Holger Rapp
c7e78522fd
Fix a bug with localisation
2012-06-01 14:33:55 +02:00
Laurent Peuch
af2f762e07
avoid crashing if trig list is empty
2012-05-22 11:29:03 +02:00
Holger Rapp
d28259d8b8
added pavel to the lists of contributors
2012-05-06 18:15:06 +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
c5bf7dc6cc
Also leave snippets when exiting the buffer, not only when exiting the window
2012-03-28 07:42:05 +02:00
Holger Rapp
d49db703e5
Fixed bug with mkline and noexpandtab
2012-03-24 20:15:43 +01:00
Holger Rapp
45b1d09d53
Fixed bug: / could not be escaped in Visual default text
2012-02-24 09:42:02 +01: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
874cb89401
Fixed a bug when visual expand was used after umlauts or tabs.
2012-02-16 21:42:26 +01:00
Holger Rapp
bed41564c0
Python code has access to text for VISUAL via snip.v
2012-02-12 12:33:53 +01:00
Holger Rapp
c1e5bb6c5f
Visual now supports transformations
2012-02-12 12:15:54 +01:00
Holger Rapp
92209f99d2
Fixed jumping back bug after killing the current tabstop
2012-02-12 09:37:59 +01:00
Holger Rapp
164bcbc714
Fixed bug triggered by deleting the last few lines of a snippet in normal mode
2012-02-12 08:53:42 +01:00
Holger Rapp
6d6fe9dbb6
Fixed a bug when tabstop zero was deleted and then a jump attemted
2012-02-12 08:14:21 +01:00
Holger Rapp
1b71a872b2
Disable Deprecation warnings for fetching strings.
2012-02-07 21:54:03 +01:00
Holger Rapp
fd03a1c7d9
Fixed a bug in snippet listing and silenced tests
2012-02-01 23:37:37 +01:00
Holger Rapp
aedd4851d5
Don't <esc> out of normal mode
2012-02-01 23:13:23 +01:00
Holger Rapp
8dd7720c29
Fix bug: List snippets didn't work after whitespace.
2012-02-01 21:39:33 +01:00
Holger Rapp
46f3258af9
Fixed a bug in snippet selection when using selection=exclusive
2012-02-01 20:31:03 +01:00
Holger Rapp
13aadb5def
$VISUAL now supports default text
2012-01-31 14:20:49 +01:00
Holger Rapp
8c9bf502f2
Fixed a bug that could happen when a whole snippet was deleted.
2012-01-31 08:12:05 +01:00
Holger Rapp
634fdeb282
Fixed two small bugs with text object positioning.
2012-01-31 07:53:43 +01:00
Holger Rapp
36cba73046
Removed a no longer needed todo
2012-01-30 20:43:49 +01:00
Holger Rapp
da71206fce
Significant bug fixes for windows.
2012-01-29 16:51:22 +01:00
Holger Rapp
ee607db3be
Guess when a tabstop is overwritten
2012-01-28 17:07:37 +01:00
Holger Rapp
bcf8cc8a6d
Change globbing patterns for snippets to follow Vim more closely
2012-01-28 17:07:37 +01:00
Holger Rapp
5ebad7351c
Fixes for Python 3
2012-01-28 17:07:37 +01:00
Holger Rapp
e69838c4bf
UltiSnips should now be able to cope with formatoptions. Removed turning them off and the corresponding snippet option "f"
2012-01-28 17:07:37 +01:00
Holger Rapp
5325d3bfa4
Fixed a bug in the last commit
2012-01-28 17:07:37 +01:00
Holger Rapp
f2ce576fbd
Fixed various smaller bugs I encountered
2012-01-28 17:07:37 +01:00
Holger Rapp
0f37d62f8a
No longer cache the whole buffer, only the last range
2012-01-28 17:07:37 +01:00
Holger Rapp
6226b29fb5
Added and fixed a failing test case
2012-01-28 17:07:37 +01:00