Commit Graph

286 Commits

Author SHA1 Message Date
Holger Rapp
45b1d09d53 Fixed bug: / could not be escaped in Visual default text 2012-02-24 09:42:02 +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
fd03a1c7d9 Fixed a bug in snippet listing and silenced tests 2012-02-01 23:37:37 +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
e34fac23ff One error in last commit 2012-01-29 17:03:11 +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
d537d1d438 A few more tests. 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
f2ce576fbd Fixed various smaller bugs I encountered 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
Holger Rapp
0caa5be256 Small refactoring 2012-01-28 17:07:36 +01:00
Holger Rapp
ced34ee36a Made simple insertion and deletion a little more robust 2012-01-28 17:07:36 +01:00
Holger Rapp
4e1d340a10 Remove debug output 2012-01-28 17:07:36 +01:00
Holger Rapp
13ea92dd31 More test that I thought could make trouble. 2012-01-28 17:07:36 +01:00
Holger Rapp
e8416d868d - More cleanups and fixes 2012-01-28 17:07:36 +01:00
Holger Rapp
35439b579e Now reall all TODOs in TextObjects. Also final proofread. 2012-01-28 17:07:35 +01:00
Holger Rapp
89f720c91c Improved ${VISUAL} support
- make a difference between V and v selection
- Keep proper indenting even when used inside other TextObjects
2012-01-28 17:07:35 +01:00
Holger Rapp
cf2c2ff5bc Code fixes and cleanups
- Removed code duplication in transformation and mirror
- Opening the scratch buffer will reset the current snippet
- Move is now a method of Position
- Removed Position.copy method which was not used
2012-01-28 17:07:35 +01:00
Holger Rapp
fe4d0c7117 Some fixes when handling deletions 2012-01-28 17:07:34 +01:00
Holger Rapp
947b7dc3e8 Enabled normal mode editing. All tests pass but there are some errors lurking 2012-01-28 17:07:34 +01:00
Holger Rapp
36a1bc1c17 Be less clever again about Where to check for changes.
- Remove duplicate lines from last and current text. Still,
this needs to traverse the whole buffer.
- Removed functionality from VimState that had nothing
to do with 'State'.
2012-01-28 17:07:34 +01:00
Holger Rapp
5982bdf6c3 Removed a duplicate test 2012-01-28 17:07:33 +01:00
Holger Rapp
3c65e369c2 All tests pass 2012-01-28 17:07:33 +01:00
Holger Rapp
54d946c81e Recursive Snippets and various other tests 2012-01-28 17:07:33 +01:00
Holger Rapp
da6347947f More tests enabled 2012-01-28 17:07:33 +01:00
Holger Rapp
15bb3ff34b Python code 2012-01-28 17:07:33 +01:00
Holger Rapp
71b1bb687f ShellCode and VimScript Interpolation 2012-01-28 17:07:33 +01:00
Holger Rapp
9044a955ce TabStops and Mirror Tests now all pass again 2012-01-28 17:07:33 +01:00
Holger Rapp
f1f6e9abff 7 failures. Now weeding out abs_start and abs_end 2012-01-28 17:07:33 +01:00
Holger Rapp
b057d6332e More mirror tests 2012-01-28 17:07:32 +01:00
Holger Rapp
994074d920 More mirror tests passing 2012-01-28 17:07:32 +01:00
Holger Rapp
f203e59147 More tricky Multiline Mirrors 2012-01-28 17:07:32 +01:00
Holger Rapp
a47f6ab98a Need a new metrik for editing distance 2012-01-28 17:07:18 +01:00
Holger Rapp
5c476983d7 All enabled tests pass for the moment 2012-01-28 17:07:18 +01:00
Holger Rapp
b49d5482fa Mor fixes and refactorings 2012-01-28 17:07:18 +01:00
Holger Rapp
544af97bff Reenabled SimpleExpands 2012-01-28 17:07:18 +01:00
Holger Rapp
717bdd7673 Reordered tests. Disabled most tests to bring back features incrementally 2012-01-28 17:07:18 +01:00
Holger Rapp
042c382b46 Worked a little further 2012-01-28 17:07:18 +01:00
Holger Rapp
ac31677eff Simple Expands are working again 2012-01-28 17:06:23 +01:00
Holger Rapp
9a7e7603f1 Reworked adding of Zero Tabstop if not explicitly defined. All test pass 2012-01-14 20:02:52 +01:00
Holger Rapp
a8a157284a More test. Still one failure 2012-01-14 16:09:32 +01:00
Holger Rapp
0a554c57ca Intermediate commit: All but one test pass 2012-01-14 15:51:36 +01:00
Holger Rapp
32754e9d2e Fixed py3 problems with sunmap 2012-01-11 20:59:21 +01:00
Holger Rapp
0c63f205aa Added basic support for the token. No documentation yet, but 16 new tests 2012-01-11 19:17:13 +01:00
Holger Rapp
88f2c863aa More Umlaut fixes 2012-01-11 15:47:11 +01:00
Holger Rapp
324681d8cc Support for unicode in Langmap. This fixes bug 871357 2012-01-10 20:11:52 +01:00
Holger Rapp
bc7bf73cf5 Fixed plenty of bugs in handling of unicode snippets 2012-01-10 19:56:09 +01:00
Holger Rapp
c1b60dc367 All tests pass now for python 2 and python 3 2012-01-10 18:11:34 +01:00
Holger Rapp
f191cefb1f Fixed transformations. Only one test fails 2012-01-10 18:11:30 +01:00
Holger Rapp
1653eb89ea UltiSnips loads in python3 now, but does not work so far 2012-01-10 14:16:25 +01:00
Holger Rapp
cebf11eda0 Better handling of unicode in snippet definitions and names 2011-12-26 08:44:13 +01:00
Holger Rapp
499ac4f4bc Fixed bug with mirrors of tabstops-in-tabstops 2011-09-12 09:08:25 +02:00
Holger Rapp
f29c3ac63a Added two more tests I wrote while searching a bug that wasn't even there 2011-07-27 12:29:42 +02:00
Holger Rapp
72ed530746 Anonymous triggers with empty trigger string where not expanded after whitespaces. 2011-07-26 16:21:39 +02:00
Holger Rapp
b774ce8f11 Merged my new parser implementation that can handle irregular cases and is generally more flexible. 2011-07-24 19:32:48 +02:00
Holger Rapp
b91e97fa5d Homing in on a design 2011-07-24 09:31:25 +02:00
Holger Rapp
3508ee2e51 Fixed some test cases that got wrong because of the new sorting of the snippet list 2011-07-17 13:10:36 +02:00
rygwdn@gmail.com
4e145d7f79 Added tests and a fix for bug #774923. 2011-05-02 16:20:36 -03:00
rygwdn@gmail.com
cd375f976c Added fix for bug #774917. 2011-05-02 14:56:27 -03:00
rygwdn@gmail.com
e566419c91 added tests for Bug #774917 2011-05-02 14:36:00 -03:00
rygwdn@gmail.com
6b86dcae2b added fallback for crc and ability to disable hashing on entry.
also disabled hashing in parsing tests to avoid having the test files
overwritten in the process.
2011-04-27 23:41:30 -03:00
Holger Rapp
eeb8dc4831 Disable vims auto-wrapping inside snippets
- Disable autowrapping inside of snippets
- renable it when the snippet has been completely handled
- added snippet option 'f' to avoid disabling text wrapping
- added docs and tests
2011-04-09 17:48:14 +02:00
Holger Rapp
4fe0cd4da3 Added a failing test that can not be corrected with our current parser 2011-04-01 20:12:15 +02:00
Holger Rapp
2def1b4ce1 Escaping of \ didn't work 2011-04-01 16:50:49 +02:00
Holger Rapp
1b782e1218 Compatibility changes for python 2.6, mainly for windows 2011-03-30 08:23:59 +02:00
Holger Rapp
86ae63635e Skip a bogus test on windows 2011-03-29 07:15:31 +02:00
Holger Rapp
0f50245882 Leave initial indent of line alone, only reindent snippet definition 2011-03-29 07:02:14 +02:00
Holger Rapp
a0a2b54f52 Catch errors and show them in a scratch buffer instead of posting useless lines in the statusbar 2011-03-28 23:02:58 +02:00
Holger Rapp
db82894c02 Added a testcase for verification of a question on launchpad 2011-03-28 20:54:30 +02:00
Holger Rapp
20742d3a6c Added a test case for bug 719649 2011-03-25 09:09:46 +01:00
Holger Rapp
7f7adc1b9e Removed some unicode symbols that confuse windows 2011-03-25 08:27:19 +01:00
Holger Rapp
09e4b7a708 We sent the keys for testing as unicode and expect vim to write the output as utf-8. 2011-03-25 08:21:48 +01:00
Holger Rapp
cacecfc9e2 Correct encoding of test.py 2011-03-25 07:45:22 +01:00
Holger Rapp
62231439f0 More windows test case fixing action 2011-03-25 07:36:55 +01:00
Holger Rapp
52c50db0e9 ork around for testing on windows. Some systems expect a second keystroke after ` and ´. 2011-03-24 08:49:33 +01:00
Holger Rapp
066b1d2bb4 Merged Ryans fixes to test on windows 2011-03-14 21:38:40 +01:00
Holger Rapp
093a27a5b1 Do not mess with clipboard while testing. Fix by Daniel Hahler (blueyed) 2011-03-14 20:18:58 +01:00
rygwdn@gmail.com
53f3df59db added ability to skip tests depending on platform 2011-02-28 22:41:04 -04:00
rygwdn@gmail.com
45bad8667c try to ensure that the GVIM window is open before sending keys to it 2011-02-28 22:00:47 -04:00
rygwdn@gmail.com
da3f4077ee merged with trunk 2011-02-28 20:49:15 -04:00
Holger Rapp
e5591e2517 Dummy commit to overwrite old tags on launchpad 2011-02-21 09:34:12 +01:00
Holger Rapp
81be10835c Initialize output variable in tests, so that less timing errors occure. This makes testing more stable on my system 2011-02-20 23:15:04 +01:00
Holger Rapp
9eb0e5b810 Parsing ultisnips takes even longer 2011-02-20 21:22:37 +01:00
Holger Rapp
cee3b423fc Fix some 'No such mapping' warnings which led to random test failures on my system 2011-02-20 21:18:45 +01:00
Holger Rapp
37f28fe580 Sleep a bit after sourcing widelands in tests. Increases reliability on my system 2011-02-20 21:18:25 +01:00
Holger Rapp
91520a2160 Refactored test cases 2011-02-20 20:58:43 +01:00
Holger Rapp
70ba6f0083 Added another test case that encloses the snippet 2011-02-20 20:54:16 +01:00
Holger Rapp
461e81d6a2 Added stricter test case that show the problem and implement fixes for them 2011-02-20 20:49:32 +01:00
rygwdn@gmail.com
e66d4adfda Added initial support for testing on windows.
Focuses a GVim window, which is assumed to be in the ultisnips directory,
then starts sending key presses to it. Please don't change the active
window while it's running!
2011-02-20 13:11:51 -04:00
rygwdn@gmail.com
1e068f102a Add test to ensure that anon snippets aren't added to the list of snippets. 2010-12-18 13:59:00 -04:00
rygwdn@gmail.com
98b396ff24 Fixes Bug #427676.
- Adds the idea of anonymous snippets with new method on SnippetManager to expand a snippet without adding it.
- Adds two new functions for adding new snippets, and expanding anonymous snippets.
- Adds tests for the above functionality.
2010-12-18 13:07:46 -04:00