Commit Graph

590 Commits

Author SHA1 Message Date
Martin Aumueller
5f5dfaaae8 fakevim: remove dead code 2009-02-17 09:13:32 +01:00
Martin Aumueller
bd29664c8c fakevim: make 'c$' repeatable with '.' 2009-02-17 09:13:32 +01:00
Martin Aumueller
d5f3c585ba fakevim: also repeat insertion with '.' 2009-02-17 09:13:32 +01:00
Martin Aumueller
5dc2f8ed0a fakevim: d$ and D would delete newline 2009-02-17 09:13:32 +01:00
Martin Aumueller
bf3c4a1562 fakevim: use QTextDocument's undo/redo operations
this has several advantages compared to an undo/redo stack private to fakevim:
- change marks in document correspond to actual changes
- mouse pasting does not invalidate the fakevim undo/redo stack
- menu commands (such as undo/redo from the Edit menu) do not invalidate the fakevim undo/redo stack
- possible other changes not caused by fakevim do not invalidate fakevim undo/redo stack

it is pretty bad if the fakevim undo/redo stack becomes invalid, as applying these invalid
undo/redo operations corrupts the document
2009-02-17 09:13:32 +01:00
Martin Aumueller
3be27a7040 fakevim: 0 would go to first non-blank instead of first character of a line,
implement ^ and 0
2009-02-11 14:48:18 +01:00
Martin Aumueller
f2940adb4d fakevim: implement indenting a block and autoindent 2009-02-11 14:48:18 +01:00
Martin Aumueller
c446f9efc6 fakevim: dj/dk would not delete whole lines 2009-02-11 14:48:18 +01:00
Martin Aumueller
06dfd937d8 fakevim: implement 'gg' for moving to first line 2009-02-11 14:48:18 +01:00
Martin Aumueller
23a9971ad2 fakevim: implement paren matching w/o making FakeVimHandler depend on Qt Creator's TextEditor 2009-02-11 14:48:18 +01:00
Martin Aumueller
1dc1a64e19 fakevim: if Escape key serves no function, ignore it and let it be handled by the application 2009-02-11 14:48:18 +01:00
hjk
65638f7cc2 Fixes: fakevim: <Space> moves right now
Details:  patch suggested by Bart van Deenen
2009-02-09 17:10:25 +01:00
hjk
58e8aed6f0 Fixes: fakevim: keep selection when moving in and out fakevim
mode
2009-02-05 17:06:45 +01:00
hjk
27c771343e Fixes: fakevim: rough Ctrl-O/Ctrl-I implementation 2009-01-28 19:22:54 +01:00
hjk
3f08a9d22f Fixes: fakevim: 'dd' and 'cc' are linewise motions 2009-01-28 19:01:10 +01:00
hjk
0193253433 Fixes: fakevim: fix cW 2009-01-28 18:48:22 +01:00
hjk
3e1032783b Fixes: fakevim: 'cw' was off by one again 2009-01-28 18:42:43 +01:00
hjk
53ab86dceb Fixes: fakevim: explicitly make 'l' an 'exclusive' motion 2009-01-28 18:35:05 +01:00
hjk
eb021724df Fixes: debugger: sort array and list indices numerically 2009-01-28 12:15:40 +01:00
hjk
32881501e1 Fixes: fakevim: ignore remaining Ctrl combinations in insert mode 2009-01-27 16:44:04 +01:00
hjk
d8005df09a Fixes: fakevim: put text cut by 'X' into proper register 2009-01-27 16:28:42 +01:00
hjk
5044d07e60 Fixes: fakevim: remove '-- PASSING --' message when 'passing'
mode is over.
2009-01-27 16:07:47 +01:00
hjk
5e941eec37 Fixes: fakevim: make 'd' use the yank buffer also in visual line mode
Details:
2009-01-27 15:17:03 +01:00
hjk
fd90f88866 Fixes: fakevim: disable main cursor in search mode 2009-01-27 15:09:56 +01:00
hjk
e71c9807e3 Fixes: fakevim: use proper QObject parent for handler
Details:  before that it was the plugin, so there was a lot of
inactive handlers left around
2009-01-27 14:50:36 +01:00
hjk
9d8fc28706 Fixes: fakevim: show column/line information in standalone application 2009-01-27 14:08:17 +01:00
hjk
f449bc6f91 Fixes: fakevim: fix cursor positioning after search 2009-01-27 13:23:02 +01:00
hjk
21f15207fb Fixes: fakevim: more 'z' commands 2009-01-27 12:44:42 +01:00
hjk
ccfbdf5b1b Fixes: fakevim: implement 'zz' 2009-01-27 12:29:14 +01:00
hjk
598df2baba Fixes: fakevim: implement 'z.' 2009-01-27 12:11:08 +01:00
hjk
6058a885f2 Fixes: fakevim: improvements for 'o' and 's' 2009-01-27 09:46:57 +01:00
hjk
1e6a62942a Fixes: fakevim: fix 'y' in visual line mode; also try to hide
cursor when in ex mode.
2009-01-26 12:08:39 +01:00
hjk
fb1da77ef5 Fixes: fakevim: implement ';'
Details:  also provide an inactive implementaion for ','
2009-01-26 10:48:37 +01:00
hjk
c97dfb8b32 Fixes: fakevim: suppress cursor when in ex mode 2009-01-26 10:31:49 +01:00
hjk
292d4bc3d5 Fixes: fakevim: provide an option in the text editor settings 2009-01-23 19:13:00 +01:00
hjk
8b3136f8b0 Fixes: fakevim: work on writing 2009-01-23 17:02:22 +01:00
hjk
2d67b9a0a1 Fixes: fakevim: clear selection after :w 2009-01-23 16:42:45 +01:00
hjk
ab8c038ed7 Fixes: fakwvim: fix recently broken selection in standalone application 2009-01-23 16:37:32 +01:00
hjk
8867568cb7 Fixes: fakevim: implement first approximation of Ctrl-D and Ctrl-U 2009-01-23 16:22:29 +01:00
hjk
4f1dd94945 Fixes: fakevim: work on 'e', 'w', 'b'... 2009-01-23 16:04:53 +01:00
hjk
153fd8a87b Fixes: fakevim: 'w' broken again.
Details:  exclusive motions seem to require extra thought
2009-01-23 15:40:43 +01:00
hjk
02ea86b5c2 Fixes: fakevim: use one handler per editor 2009-01-23 15:12:04 +01:00
hjk
51089fba74 Fixes: fakevim: fix behaviour of 'a' at the end of line as
reported by J Hseu

    Details:  also rename 'atEol' to 'atEndOfLine'
2009-01-23 10:13:12 +01:00
hjk
8d932e2adc Fixes: fakevim: improve handling of 'p' and 'Y'
Details:  tank count() into account, fix cursor positioning after undo
2009-01-22 15:38:03 +01:00
hjk
42a70000d1 Fixes: fakevim: 'x' was broken(!) 2009-01-22 15:15:42 +01:00
hjk
9a224d7e46 Fixes: fakevim: 'r' and 'R' revisited 2009-01-22 15:08:50 +01:00
hjk
d11475ad08 Fixes: fakevim
Details:  fix behaviour of 'r'
2009-01-22 14:19:42 +01:00
hjk
695aa639ca Fixes: fakevim: fix undo behaviour for Key_Delete
Details:  was not recorded onh the undo stck
2009-01-22 13:44:25 +01:00
hjk
bc0717d06a Fixes: fakevim: work on undo 2009-01-21 17:08:47 +01:00
hjk
7ce2676c6a Fixes: fakevim: better undo behaviour
Details:  prevent creation of empty "groups" that required
additional 'u' key strokes to 'undo'
2009-01-21 16:18:20 +01:00