Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to delete entire line #18

Open
hassek opened this issue May 22, 2019 · 2 comments
Open

Add support to delete entire line #18

hassek opened this issue May 22, 2019 · 2 comments

Comments

@hassek
Copy link

hassek commented May 22, 2019

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!

@dalance
Copy link
Owner

dalance commented May 27, 2019

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:

@hassek
Copy link
Author

hassek commented May 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants