bew / dotfiles

All my dotfiles in one place!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to filter (with fzf?) the qf/loc list (or any buffer) and apply it

bew opened this issue · comments

Extracted from #61

I'd love to be able to filter (delete/keep some lines) the currently opened list (with fzf?) then apply the filtered list ❤️

NOTE: To reset it to no-filter if needed I can use :colder/:lolder
(TODO: map M-h/l for older/newer with visual feedback ?)


With #63 the scope expanded a bit, as the filtering should work on arbitrary buffers (like the thinglist one from that issue).
In addition I want to be able to filter only a few lines in an arbitrary buffer.
-> This would allow to have a header that doesn't move (with some info/metadata of the buffer), and lines below it that can be filtered.

Small plugin, that can help in the meantime: https://github.com/stevearc/qf_helper.nvim

The goal of this plugin is to be small and unobtrusive. It should make your normal quickfix workflows smoother, but it does not aim to change your workflows.

Allows to:

  • Keep the quickfix location in sync with cursor location in the file
  • Have one keybinding for next/prev that intelligently chooses between quickfix and loclist
    (^^^^ that I kind of already have, but naively implemented, with many bugs..)

It also allows basic filtering with :Keep & :Reject to keep or reject certain qf/loc lines