Commit Graph

1049 Commits

Author SHA1 Message Date
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
Aaron Schrab
2f7317ed8f Document UltiSnipsNoPythonWarning variable
As requested in SirVer/ultisnips#24
2012-08-06 15:45:48 -04:00
Holger Rapp
a1f9776037 Improved HTML and PHP snippets. Patch by Jacek Wysocki 2012-08-06 11:21:50 +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
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
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
Holger Rapp
2c3db308d3 Merge pull request #12 from iiijjjii/master
Documentation update
2012-03-11 09:27:42 -07:00
Jim Karsten
80d36d7492 Documentation improvements 2012-03-10 15:41:47 -05:00