-
Notifications
You must be signed in to change notification settings - Fork 34
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
[feature] Allow Keep and Reject operate on ranges (Visual Selection) #72
Comments
This is a very reasonable request and I already have all the necessary bits and pieces. I'll look into it |
Please checkout the latest commit. |
Yeah, my initial assumption is that the user visually selects a word or parts of a word. Does it really make sense to visually select multiple lines? Hmm… I see now that I may have misread your request. Something like |
You mean that if you select a word, it's sent to Keep/Reject as an argument? Hmm, to be honest, never thought of that, but I think it's also reasonable and convenient. As for multiple lines, sure, it makes sense. Before you explained your vision, only multiple line selection made sense to me when I created this request. It's just that I prefer to manually select lines that I want to keep/get rid of. Thus, my selection should not be treated as a pattern, just as a range. I guess vim plugin can differentiate between line and word selection? If it's a word selection, the old logic applies, if it's a line selection, the lines in the range should be removed/kept. That was my intuition and anticipation when I tried to use Keep/Reject on a block of lines. |
OK, now that it's clear I can move forward. |
It has been a while and I apologise for the delay. I just pushed range support for You can now do Happy to get any feedback. |
Hi. My use case is that I often filter out certain entries from quickfix window to reduce the scope. Even though Keep and Reject currently do the job, I believe it could be a bit more convenient to support exclusion (and inclusion) of results by visually selecting them (line selection) and calling Reject (or Keep) on the selected range. Could you please implement that?
Thank you!
The text was updated successfully, but these errors were encountered: