eliben / pss

pss is a power-tool for searching inside source code files.
Other
327 stars 46 forks source link

Support ackrc #1

Open eliben opened 11 years ago

eliben commented 11 years ago

Migrated from issue #42 on bitbucket

I love pss as a drop-in replacement - who wants to install Perl? But it odesn't support config files yet - it'd be great it if supported the "standard" ackrc.

Thanks for a great clone!

benhoyt commented 11 years ago

I'm also liking pss. I don't know if this is related to ackrc, but I have some custom file extensions (.tmpl for mixed HTML templates, for example) that pss doesn't find. With ack I use --type-add or --type-set to achieve this. Should I open a new issue?

eliben commented 11 years ago

@benhoyt it is a separate issue, but just quickly - you can use a combination of -a and -G to do that. If this is not what you were asking about, please do open a separate issue.

vsajip commented 9 years ago

I've added a very simple configuration mechanism: if a file named .pss is found in the current directory, its contents are read in, treated as a list of command line arguments and inserted at the appropriate point in argv before passing to the command-line parser. This allows the addition of any project-specific command line flags (e.g. --ignore-dir for virtualenv subdirectories in project directories, custom file types, etc). You can see it here, if it's of interest I can submit a pull request.

eliben commented 8 years ago

@vsajip That approach sounds reasonable.

Sorry for the terrible delay. pss "just works" for me so I don't tend to muck with it often