Reputation: 306
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 .
Upvotes: 2
Views: 3583
Reputation: 195029
does this little script help?
it can
Upvotes: 6
Reputation: 9273
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:
QFixToggle : Toggle the visibility of the quickfix window - changing the visibility would be equivalent to deleting, and make it easier to correct if you delete too much.
Upvotes: 2