Domanda

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 .

È stato utile?

Soluzione 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:

Altri suggerimenti

does this little script help?

QFGrep

it can

  • filter(Grep) entries in Quickfix
  • restore original Quickfix entries
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top