New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how create a preference file? #111
Comments
Ag doesn't support this. Instead, you can try using aliases. Also, .agignore files can come in handy. I'm loathe to add support for a ~/.agrc. The complications are numerous and it doesn't add anything that aliases can't do. |
@ggreer Sorry to bring this up again after 2 weeks but I didn't want to create a new issue. So my .ackrc looks like this: --type-add=ruby=.haml,.rake,.ru,.rsel,.builder,.rb,.gemspec,.palette
--type-add=vim=.vim,.snippets
--type-add=html=.html,.html.erb,.html.slim,.html.haml,.mustache,.jst,.ejs
--type-add=js=.js,.coffee,.js.erb
--type-add=css=.sass,.less,.scss
--type-set=cucumber=.feature
--type-set=markdown=.markdown,.md
--type-set=sh=.env,.aliases,.plugin,.completion,.theme,.compdef,.zsh,.sh
--ignore-dir=vendor
--ignore-dir=doc
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=coverage
--ignore-dir=public/assets
--ignore-dir=public/system
--ignore-dir=public/coffeescripts
--sort-files
--color
--follow
--group
--smart-case Now obviously the ignore-dir stuff can go away which is awesome: --type-add=ruby=.haml,.rake,.ru,.rsel,.builder,.rb,.gemspec,.palette
--type-add=vim=.vim,.snippets
--type-add=html=.html,.html.erb,.html.slim,.html.haml,.mustache,.jst,.ejs
--type-add=js=.js,.coffee,.js.erb
--type-add=css=.sass,.less,.scss
--type-set=cucumber=.feature
--type-set=markdown=.markdown,.md
--type-set=sh=.env,.aliases,.plugin,.completion,.theme,.compdef,.zsh,.sh
--sort-files
--color
--follow
--group
--smart-case But the rest of it is a lot of stuff to put into an alias and it'll also make it quite a bit less readable. Am I doing something wrong with all the |
A config file could help set personal sensible defaults where |
See #257 for a PR. |
👍 for this feature... People coming from Perhaps the implementation could be quick and dirty: simply check for an |
I'd just like to say this would be very useful for me. Its a shame that the only way to do this is with aliases. |
I'd like to bump this. I'm surprised that such an awesome package doesn't already feature something like this. |
one question, how create a .ackrc style preference file?
The text was updated successfully, but these errors were encountered: