Commit Graph

685 Commits

Author SHA1 Message Date
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
a4f8e12c24 VimBuffer.cursor.line is no 0 based 2012-01-28 17:07:36 +01:00
Holger Rapp
30286f5446 Introduced _vim as wrapper around vim that makes compatibility stuff transparent to users. Remove usage of vim from everywhere else. 2012-01-28 17:07:36 +01:00
Holger Rapp
c1c10b1c34 Renamed all modules to lower_case to be more PEP8y 2012-01-28 17:07:36 +01:00
Holger Rapp
c01230e2cf Moved unittests for various components into own files 2012-01-28 17:07:35 +01:00
Holger Rapp
400ac852d2 Remove Span class
It was not really in much use
2012-01-28 17:07:35 +01:00
Holger Rapp
f8d6285e49 Fix selection of tabstop when selection=exclusive 2012-01-28 17:07:35 +01:00
Holger Rapp
35439b579e Now reall all TODOs in TextObjects. Also final proofread. 2012-01-28 17:07:35 +01:00
Holger Rapp
f9566d1fc7 Remaining TODOs in TextObjects 2012-01-28 17:07:35 +01:00
Holger Rapp
08e099bacb More refactorings and cleanups. Fixed various TODOs 2012-01-28 17:07:35 +01:00
Holger Rapp
ca63cbdf57 Code cleanup and fixes
- Removed _add_tabstop function and move it to TabStop __init__
- replace initital text is now a function of snippet instance
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
2bddcdb76c Even smarter about comparision 2012-01-28 17:07:34 +01:00
Holger Rapp
a483218f70 Become a little smarter about the area that actually changed in an edit 2012-01-28 17:07:34 +01:00
Holger Rapp
7e05d49bce Refactored TextObjects.py into a package 2012-01-28 17:07:33 +01:00
Holger Rapp
59dd11690a Lots of code cleanups and smaller bug fixes
- Removed some dead code
- Added some unittests, mainly for debugging
2012-01-28 17:07:33 +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
9cc97cd7cb All enabled tests pass again 2012-01-28 17:07:18 +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
3568275158 Intermediate Commit TabStop_Escaping tests pass 2012-01-28 17:06:23 +01:00
Holger Rapp
ac31677eff Simple Expands are working again 2012-01-28 17:06:23 +01:00
Holger Rapp
3a7674bca0 First hooks into vim. Very slow atm 2012-01-28 17:06:23 +01:00
Holger Rapp
96f4068329 initial version of edit script. 2012-01-28 17:06:23 +01:00
Holger Rapp
03942a16a5 __repr__ has no second argument 2012-01-26 11:23:02 +01:00
Holger Rapp
f3d396b84e Reverting to using .vim and vimfiles.
_vim is not supported by vims documentation.

This reverts commit cd34039b02.
2012-01-25 15:19:37 +01:00
Holger Rapp
91ecf6aec4 Fix error in def snippet when inside of a class 2012-01-25 08:14:54 +01:00
Holger Rapp
da49b4b7c4 Work around an awkward py3 <-> py bug on vim on ubuntu 2012-01-24 15:30:05 +01:00
Holger Rapp
11c69a853f Make box and bigbox snippet aware of &comments setting 2012-01-23 17:22:22 +01:00
Holger Rapp
ea14690099 Fixed: Empty args string in python's def snippet 2012-01-20 22:31:18 +01:00