문제

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