vim S (#2929)
Release Notes: - vim: Add `S` to substitute line ([#1897](https://github.com/zed-industries/community/issues/1897)).
This commit is contained in:
commit
c2c04616b4
5 changed files with 129 additions and 11 deletions
|
@ -27,7 +27,6 @@ use self::{
|
|||
case::change_case,
|
||||
change::{change_motion, change_object},
|
||||
delete::{delete_motion, delete_object},
|
||||
substitute::substitute,
|
||||
yank::{yank_motion, yank_object},
|
||||
};
|
||||
|
||||
|
@ -44,7 +43,6 @@ actions!(
|
|||
ChangeToEndOfLine,
|
||||
DeleteToEndOfLine,
|
||||
Yank,
|
||||
Substitute,
|
||||
ChangeCase,
|
||||
]
|
||||
);
|
||||
|
@ -56,13 +54,8 @@ pub fn init(cx: &mut AppContext) {
|
|||
cx.add_action(insert_line_above);
|
||||
cx.add_action(insert_line_below);
|
||||
cx.add_action(change_case);
|
||||
substitute::init(cx);
|
||||
search::init(cx);
|
||||
cx.add_action(|_: &mut Workspace, _: &Substitute, cx| {
|
||||
Vim::update(cx, |vim, cx| {
|
||||
let times = vim.pop_number_operator(cx);
|
||||
substitute(vim, times, cx);
|
||||
})
|
||||
});
|
||||
cx.add_action(|_: &mut Workspace, _: &DeleteLeft, cx| {
|
||||
Vim::update(cx, |vim, cx| {
|
||||
let times = vim.pop_number_operator(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue