ack.vim
ack.vim copied to clipboard
Close the quickfix window altogether with the preview window
Is it possible to add a new feature to close the quick fix window altogether with the preview window? Maybe just another keyboard shortcut in the quickfix window?
Hi, sorry for the very slow response—I'm not sure I understand the question.
ack.vim's notion of "preview" is a misnomer (i.e. it's not :help preview-window
), the mappings like go in the quickfix list just open a normal buffer but leave the cursor in the results list. So you have the ability already to use mappings like O to open a result and close the results list at the same time, but if you mean that the behavior you want is like "close the quickfix list and reopen whatever buffer I was in before I started an ack.vim search", no that isn't currently possible.
You could probably implement something like this yourself by having a wrapper function/command that saves your current buffer number in a variable and then runs :Ack*
, and a mapping to reopen it and :cclose
.
This might be obviated if #135 was brought up-to-date and finished, which I think would be nice, but I haven't had time to try myself.
Let me know if I've misunderstood the question/feature request completely.