vim: Add g?
convert to Rot13
/Rot47
(#27824)
Release Notes: - Added `g?` convert to `Rot13`/`Rot47` --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
7bc0dd1bf6
commit
57d7bc23ae
12 changed files with 252 additions and 23 deletions
|
@ -153,6 +153,8 @@ actions!(
|
|||
PushLowercase,
|
||||
PushUppercase,
|
||||
PushOppositeCase,
|
||||
PushRot13,
|
||||
PushRot47,
|
||||
ToggleRegistersView,
|
||||
PushRegister,
|
||||
PushRecordRegister,
|
||||
|
@ -619,6 +621,14 @@ impl Vim {
|
|||
vim.push_operator(Operator::OppositeCase, window, cx)
|
||||
});
|
||||
|
||||
Vim::action(editor, cx, |vim, _: &PushRot13, window, cx| {
|
||||
vim.push_operator(Operator::Rot13, window, cx)
|
||||
});
|
||||
|
||||
Vim::action(editor, cx, |vim, _: &PushRot47, window, cx| {
|
||||
vim.push_operator(Operator::Rot47, window, cx)
|
||||
});
|
||||
|
||||
Vim::action(editor, cx, |vim, _: &PushRegister, window, cx| {
|
||||
vim.push_operator(Operator::Register, window, cx)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue