Closed npearson72 closed 10 years ago
agree with @npearson72 and hope that it works with --color
+1. group and color would be sweet. basically making it look like the output in a color terminal. Thanks for a great plugin!
The best way that I found to group result was using fold, I got a result like that:
WDYT?
I found it on vim.wikia
I can add an option to auto fold results, would that be enough?
I think what’s nice about the group option is that you see all the results, but they’re displayed in indented format as a group under each file.
On Mar 20, 2014, at 7:33 PM, Kassio Borges notifications@github.com wrote:
I can add an option to auto fold results, would that be enough?
— Reply to this email directly or view it on GitHub.
I don't think it is possible with quickfix windows or location list windows. If you found a way to do this, please open a pull request. Thank's for the suggestion.
Take a look on its screencast (it's worth to see)
https://github.com/albfan/ag.vim#shell-mimic
It comes from a previous fork for ag (unmaintained now)
So if you find it interesting I can rework that pull request for this plugin.
@kassio did end up implementing something like this @albfan, let g:ack_autofold_results = 1
. It does have a valid problem though (#138) that I would like to address but just haven't taken the time yet, I don't use this feature myself.
I just shared my feelings about significant new features on an ag.vim thread that you're part of, but this is an existing feature so if you feel there are improvements in your implementation, I'm happy to review a pull request bringing the improvements to ack.vim (I haven't looked at your impl yet, but a workaround like the one Konfect suggested on #138 seems perfectly reasonable to me if you've already done something like it).
That's a good start point. Fixing something will help to understand codebase. I'll work on it and see what can be done.
I'm agree with "less is more" so let's keep this as simple and lightweight as possible, and discuss on new PR worth of new features.
Any chance to make this work with --group not just --nogroup?
--group looks nicer, more like Sublime text