ack.vim icon indicating copy to clipboard operation
ack.vim copied to clipboard

[Key: ?] Change help menu to backward search in quicklist

Open PezCoder opened this issue 6 years ago • 0 comments

I have:

Description

When I run ack, there are times when i want to search for a particular file or keyword in the search results it provides & I end up searching using / normally but sometimes when i'm quite below or at the end of the opened quickfix list, I without thinking press ? which opens up help.

It would be really useful, if there is a way to disable it & just make it behave like a normal vim's ? to search backwards

My experiments

When i read this in the doc: https://github.com/mileszs/ack.vim/blob/eede0425f50d92be89ee8fb4560a5afb707c2a54/doc/ack.txt#L263 I thought i might be able to simply reset the mapping for ? by doing so:

let g:ack_mappings = { '?': '' }
// but this just closes the menu instead

Later i realised that maybe the behaviour of ? is not configurable when I saw this line: https://github.com/mileszs/ack.vim/blob/36e40f9ec91bdbf6f1adf408522a73a6925c3042/autoload/ack.vim#L117

Questions

Is there way this can be achieved ? Or if you think it could be useful can we make this as configuration ? (I would be happy to help.)

PezCoder avatar May 25 '18 21:05 PezCoder