amber icon indicating copy to clipboard operation
amber copied to clipboard

Add support to delete entire line

Open hassek opened this issue 6 years ago • 2 comments

sometimes, instead of wanting to replace a text with another, I want to delete the entire line of a matched value. Adding support to this would be great!

hassek avatar May 22 '19 12:05 hassek

Thank you for your proposal. Does this mean "delete line" command support in interactive replacing like below?

$ ambr test test2
./benches/path_finder.rs: #![feature(test)]
Replace keyword? [Y]es/[n]o/[a]ll/[d]elete line/[q]uit:

dalance avatar May 27 '19 01:05 dalance

I was thinking more on the first match only, something like this:

ambr test --delete-line

If the intention is to delete the whole line, I don't think there should be a need to add the test2 argument.

hassek avatar May 27 '19 10:05 hassek