Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
bc5b7aa7
Commit
bc5b7aa7
authored
Aug 04, 2022
by
Pablo Rauzy
Committed by
Christoph Cullmann
Aug 14, 2022
Browse files
rename kmremove to kmdelete (km[r] prefix may be useful for [r]ecord in the future)
parent
00d389e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/keyboardmacros/keyboardmacrosplugin.cpp
View file @
bc5b7aa7
...
...
@@ -365,7 +365,7 @@ KeyboardMacrosPluginView::~KeyboardMacrosPluginView()
// BEGIN Plugin commands to manage named keyboard macros
KeyboardMacrosPluginCommands
::
KeyboardMacrosPluginCommands
(
KeyboardMacrosPlugin
*
plugin
)
:
KTextEditor
::
Command
(
QStringList
()
<<
QStringLiteral
(
"kmsave"
)
<<
QStringLiteral
(
"kmload"
)
<<
QStringLiteral
(
"km
remove
"
)
<<
QStringLiteral
(
"km
play
"
),
:
KTextEditor
::
Command
(
QStringList
()
<<
QStringLiteral
(
"kmsave"
)
<<
QStringLiteral
(
"kmload"
)
<<
QStringLiteral
(
"km
play
"
)
<<
QStringLiteral
(
"km
delete
"
),
plugin
)
,
m_plugin
(
plugin
)
{
...
...
@@ -392,7 +392,7 @@ bool KeyboardMacrosPluginCommands::exec(KTextEditor::View *view, const QString &
return
false
;
}
return
true
;
}
else
if
(
action
==
QStringLiteral
(
"km
remov
e"
))
{
}
else
if
(
action
==
QStringLiteral
(
"km
delet
e"
))
{
if
(
!
m_plugin
->
remove
(
name
))
{
msg
=
i18n
(
"No keyboard macro named '%1' found."
,
name
);
return
false
;
...
...
@@ -431,8 +431,8 @@ bool KeyboardMacrosPluginCommands::help(KTextEditor::View *, const QString &cmd,
msg
=
i18n
(
"<qt><p>Usage: <code>kmload <name></code></p><p>Load saved keyboard macro <code><name></code> as current macro.</p>%1</qt>"
,
namedMacros
);
return
true
;
}
else
if
(
cmd
==
QStringLiteral
(
"km
remov
e"
))
{
msg
=
i18n
(
"<qt><p>Usage: <code>km
remov
e <name></code></p><p>
Remov
e saved keyboard macro <code><name></code>.</p>%1</qt>"
,
namedMacros
);
}
else
if
(
cmd
==
QStringLiteral
(
"km
delet
e"
))
{
msg
=
i18n
(
"<qt><p>Usage: <code>km
delet
e <name></code></p><p>
Delet
e saved keyboard macro <code><name></code>.</p>%1</qt>"
,
namedMacros
);
return
true
;
}
else
if
(
cmd
==
QStringLiteral
(
"kmplay"
))
{
msg
=
i18n
(
"<qt><p>Usage: <code>kmplay <name></code></p><p>Play saved keyboard macro <code><name></code> without loading it.</p>%1</qt>"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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