vim-qf icon indicating copy to clipboard operation
vim-qf copied to clipboard

Delete single item from quickfix list

Open timsofteng opened this issue 4 years ago • 5 comments

Hello. Can this plugin help me to delete single item from quickfix list?

timsofteng avatar Mar 27 '21 12:03 timsofteng

Not at the moment. I have had some discussion about this with other users in the past but it sadly went nowhere.

The ability to do something like :.Reject to reject the current line or :11,15Reject to reject lines 10 to 15 (actually entries 9 to 14) would probably be useful.

romainl avatar Mar 27 '21 15:03 romainl

@romainl Yep. It would be pretty nice if user can delete current item from itself or any other item from quickfix list buffer. I don't understand why it's not vim's built-in functionality.

timsofteng avatar Mar 27 '21 15:03 timsofteng

Vim now has :help :Cfilter, which is roughly equivalent to vim-qf's historic :Filter and works pretty much the same way. Maybe it actually is worth it to open a feature request for range support over at vim/vim?

romainl avatar Mar 27 '21 15:03 romainl

Vim now has :help :Cfilter, which is roughly equivalent to vim-qf's historic :Filter and works pretty much the same way. Maybe it actually is worth it to open a feature request for range support over at vim/vim?

Maybe it makes sense. Could you open it in vim repo? I'm sure you could describe problem better than me as a developer.

timsofteng avatar Mar 27 '21 16:03 timsofteng

I just pushed range support for :Keep and :Reject.

You can now do :.Reject to remove the currently selected entry or :10,15Reject to remove entries 10-15. Same for :Keep.

Happy to get any feedback.

romainl avatar Mar 28 '21 10:03 romainl