pss
pss copied to clipboard
Support ackrc
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!
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?
@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.
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.
@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