Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
bbe5332f
Commit
bbe5332f
authored
Dec 27, 2008
by
hjk
Committed by
Roberto Raggi
Dec 29, 2008
Browse files
implement 'a'
parent
f932c51a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/handler.cpp
View file @
bbe5332f
...
...
@@ -374,8 +374,13 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
}
else
if
(
key
==
'$'
||
key
==
Key_End
)
{
m_tc
.
movePosition
(
EndOfLine
,
KeepAnchor
);
finishMovement
();
}
else
if
(
key
==
'a'
)
{
m_lastInsertion
.
clear
();
m_tc
.
movePosition
(
Right
,
MoveAnchor
,
1
);
m_mode
=
InsertMode
;
}
else
if
(
key
==
'A'
)
{
m_tc
.
movePosition
(
EndOfLine
,
MoveAnchor
);
m_lastInsertion
.
clear
();
m_mode
=
InsertMode
;
}
else
if
(
key
==
'b'
)
{
moveToWordBoundary
(
false
,
false
);
...
...
@@ -435,6 +440,7 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
m_tc
.
movePosition
(
Down
,
KeepAnchor
,
count
());
finishMovement
();
}
else
if
(
key
==
'J'
)
{
m_tc
.
beginEditBlock
();
if
(
m_submode
==
NoSubMode
)
{
for
(
int
i
=
qMax
(
count
(),
2
)
-
1
;
--
i
>=
0
;
)
{
m_tc
.
movePosition
(
EndOfLine
);
...
...
@@ -445,6 +451,7 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
if
(
!
m_gflag
)
m_tc
.
movePosition
(
Left
,
MoveAnchor
,
1
);
}
m_tc
.
endEditBlock
();
}
else
if
(
key
==
'k'
||
key
==
Key_Up
)
{
m_tc
.
movePosition
(
Up
,
KeepAnchor
,
count
());
finishMovement
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment