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
3ae02653
Commit
3ae02653
authored
Dec 25, 2008
by
hjk
Committed by
Roberto Raggi
Dec 29, 2008
Browse files
implement plain ~
parent
10387642
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/handler.cpp
View file @
3ae02653
...
...
@@ -403,6 +403,15 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
finishMovement
();
}
else
if
(
key
==
'z'
)
{
m_submode
=
ZSubMode
;
}
else
if
(
key
==
'~'
)
{
m_tc
.
movePosition
(
Right
,
KeepAnchor
,
qMin
(
count
(),
rightDist
()));
QString
str
=
m_tc
.
selectedText
();
for
(
int
i
=
str
.
size
();
--
i
>=
0
;
)
{
QChar
c
=
str
.
at
(
i
);
str
[
i
]
=
c
.
isUpper
()
?
c
.
toLower
()
:
c
.
toUpper
();
}
m_tc
.
deleteChar
();
m_tc
.
insertText
(
str
);
}
else
if
(
key
==
Key_PageDown
||
key
==
control
(
'f'
))
{
m_tc
.
movePosition
(
Down
,
KeepAnchor
,
count
()
*
(
linesOnScreen
()
-
2
));
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