mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Make the 'q' map actually :quit #255

Closed benknoble closed 3 years ago

benknoble commented 5 years ago

:cclose and :lclose will refuse to close the quickfix window if it's the last window. :q doesn't care.

I'll also note that I discovered this because Ack was overriding maps I had set up in ~/.vim/after/ftplugin/qf.vim, which doesn't seem like a good idea. I think we could fix that with a hasmapto check or the <unique> modifier. Please let me know if I should open an issue for this.

ches commented 5 years ago

This seems reasonable, although I imagine there will be some people who will prefer that it does not quit Vim so easily… I'd definitely not like to solve that by adding a configuration option, I'd rather it be doable easily by normal means of Vim mappings customization as was your first instinct.

I agree that there are a host of problems with the way the quickfix mappings are handled, in fact see #170 for my sense that they shouldn't be a feature of this plugin at all anymore. If the Vim plugin ecosystem and plugin managers had common version number conventions to make a major release in Semantic Versioning terms, I'd probably remove it now.

How about we go one of two directions:

Apologies for the slow response to this issue and any others—I've been the last standing maintainer but I've not had time to give attention to ack.vim for awhile.

benknoble commented 5 years ago

@ches Thanks for the detailed and considerate response.

I'll investigate using hasmapto and <unique> and let you know. If it seems un-viable, then option number two may be the right move; I'll have to dig into the code a bit more (it's not completely fresh in my head).

I'll note post-investigation that some of the mappings seem like feature-creep (heck, I never use them), so I agree in spirit with your comments in #170 and above—it would be a pitchfork moment, though.

benknoble commented 5 years ago

@ches Are these PRs dead in the water? Is help needed?

benknoble commented 3 years ago

I'm closing this because #260 was supposed to supersede it, but I also don't use the plugin anymore.