Commit Graph

651 Commits

Author SHA1 Message Date
stardiviner
736698469e improve snipVar matches, like 10 100 etc 2012-08-15 14:15:37 +02:00
Holger Rapp
b319569b7b Fixed bug 1034805: Langmap with escaped characters where a problem 2012-08-15 14:13:50 +02:00
Holger Rapp
aae704bd1a Merged Patch by Aaron Schrab 2012-08-15 11:41:16 +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
Holger Rapp
f98bcd6f53 Test script refactorings by Aaron Schrab 2012-08-09 15:42:16 +02:00
Aaron Schrab
8e3f419c44 Fix tests to work with new version of screen
Debian unstable currently has a pre-release version of screen 4.1.0.
This version changes the "stuff" command so that special characters get
parsed, breaking many of the tests.

Detect if the version of screen being used to run tests does this
parsing, and if so do additional escaping of characters so that tests
again work.

With this change, all tests pass with both old and new versions of
screen.
2012-08-08 19:57:55 -04:00
Aaron Schrab
2ab17b6cca Move getting buffer data into interface class
Put the code that instructs vim to write its buffer to a temporary file
and then reads that file into a python string into the VimInterface
class.  This will allow that to be done by code outside of tests.
2012-08-08 19:57:55 -04:00
Aaron Schrab
fc22af0d1e Use classes for managing vim interaction
Create classes for interacting with vim, a base class with common
methods, a class for interacting via screen, and one for interacting on
Windows.

At startup time an instance of one of these classes is created, and that
object is passed to all of the tests instead of the session.

I haven't been able to get UltiSnips working in vim on Windows to really
test this, but I have verified that vim interactions still work.
2012-08-08 19:57:33 -04:00
Aaron Schrab
461a475d2a Have test script set vim buffer type to nofile
Instruct vim not to complain about quitting without writing the buffer
used to run tests by setting the buftype option to nofile.
2012-08-08 19:39:50 -04:00
Holger Rapp
a1f9776037 Improved HTML and PHP snippets. Patch by Jacek Wysocki 2012-08-06 11:21:50 +02:00
Holger Rapp
890291e42d Adhere to pseudostandard of length of sections in Vim help. Patch by Martin Krauskopf 2012-07-08 12:01:25 +02:00
Alexander Kondratskiy
e9a783857b Better commentboxes. Patch by Alexander Kondratskiy. 2012-07-02 13:14:10 +02:00
Holger Rapp
9cc7c92b5e Updated ChangeLog 2012-06-27 11:43:32 +02:00
Holger Rapp
632ebf5147 added full name of pavel 2012-06-26 11:29:14 +02:00
Holger Rapp
3860ca8d8c Merge pull request #19 from neoascetic/master
Fixes for Markdown
2012-06-26 02:28:20 -07:00
Holger Rapp
44b03675b5 Added exu to the list of contributors 2012-06-26 11:25:29 +02:00
Holger Rapp
066a83d25c Merge branch 'exu' 2012-06-26 11:24:11 +02:00
Holger Rapp
72715d3143 Made an error message more sensible 2012-06-26 11:22:24 +02:00
Pavel Puchkin
ff79899ac3 "markdown" is right filetype, not "mkd" 2012-06-26 19:31:29 +11:00
Pavel Puchkin
7df7896235 Merge branch 'master' of git://github.com/SirVer/ultisnips 2012-06-26 19:18:48 +11:00
Pavel Puchkin
5256107d5f Typo fix in markdown snippet 2012-06-26 19:17:25 +11: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
Jacek Wysocki
92f393b245 added optional __construct to class name 2012-06-22 12:03:04 +02:00
Jacek Wysocki
41d50aff77 order removed $options load from contruct 2012-06-22 12:00:15 +02:00
Jacek Wysocki
74bd536002 added my custom php snippets 2012-06-22 11:50:22 +02:00
Holger Rapp
c7e78522fd Fix a bug with localisation 2012-06-01 14:33:55 +02:00
Holger Rapp
30795ee030 Added Laurent to the list of contributors 2012-05-22 11:29:51 +02:00
Laurent Peuch
af2f762e07 avoid crashing if trig list is empty 2012-05-22 11:29:03 +02:00
Holger Rapp
d62714492a Added luca to the list of contributors 2012-05-22 11:24:38 +02:00
Holger Rapp
cf7839b4da Merge branch 'master' of https://github.com/lucapette/ultisnips 2012-05-22 11:23:56 +02:00
Holger Rapp
e41bb29792 Merge pull request #16 from graudeejs/master
Updated ruby snippets by graudeejs
2012-05-22 02:19:14 -07:00
Holger Rapp
0423ee5073 Coffee and Jasmine snippets by Ches Martin 2012-05-22 11:14:58 +02:00
Aldis Berjoza
25be45de10 Update ruby snippets 2012-05-19 14:55:09 +03:00
lucapette
d203e69c58 Change visualmode to visual-mode 2012-05-15 18:27:16 +02:00
Holger Rapp
3406aca82a Added fgalassi to the list of contributors 2012-05-14 09:56:27 +02:00
Federico Galassi
17954d27e3 fixed error in documentation about file pattern for snippets files 2012-05-11 10:24:22 +02:00
Holger Rapp
d28259d8b8 added pavel to the lists of contributors 2012-05-06 18:15:06 +02:00
Holger Rapp
95cff58cc6 Merge pull request #13 from neoascetic/pdb
Added PDB breakpoint snippet (by Pavel)
2012-05-06 09:12:43 -07:00
Pavel Puchkin
6f223dcd3f ...only on new line 2012-05-05 18:11:13 +11:00
Pavel Puchkin
4f80d6c084 Added PDB breakpoint snippet 2012-05-05 17:50:50 +11:00
Holger Rapp
93b480ab6f html: added doctype for html 5.0. Suggested by harry 2012-04-25 09:49:04 +02:00
Holger Rapp
5782180811 Added chapter and part to RST snippets. Suggested by Chen Houwu 2012-04-25 09:14:19 +02:00
Holger Rapp
98799115e3 rst: Parts should be marked with '#' 2012-04-24 11:33:17 +02: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
9d35d72a25 Links to fourth screencast about python interpolation 2012-03-31 16:40:12 +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
d49db703e5 Fixed bug with mkline and noexpandtab 2012-03-24 20:15:43 +01:00
Holger Rapp
4be8a92bf6 Added Jim to the list of contributors 2012-03-11 17:30:05 +01:00