I want to filter results in my quickfix buffer , after reading some answers on SO I tried setting the buffer to modifiable , but the problem is if I delete a line and enter on the same line to jump to that file , It still takes me to the previous result (which has been deleted).
Example
1 file1
2 file 2
lets say I delete file 1 from quickfix window now
1 file2 (press enter)
It takes me to file 1 instead of file 2 .

有帮助吗?

解决方案 2

You could use getqflist() to retrieve the contents of the quickfix window, filter it, and the use setqflist() to replace the contents, then it should behave properly.

There are some plugins that you could check:

其他提示

does this little script help?

QFGrep

it can

  • filter(Grep) entries in Quickfix
  • restore original Quickfix entries
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top