pss icon indicating copy to clipboard operation
pss copied to clipboard

Support ackrc

Open eliben opened this issue 11 years ago • 4 comments

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!

eliben avatar May 28 '13 13:05 eliben

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 avatar Jul 10 '13 04:07 benhoyt

@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.

eliben avatar Jul 10 '13 13:07 eliben

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 avatar May 22 '15 16:05 vsajip

@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

eliben avatar Oct 16 '16 21:10 eliben