Skip to content
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

Propose new default filter_by for name #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rob-raitch
Copy link

I would like to propose this modification to make the default filter allow the dash and underscore characters but disallow the other special characters.

Not sure how this affects unicode and other language support.

Rob Aitchison and others added 2 commits August 21, 2018 16:47
I just tested this so that I can allow dashes and underscores in filenames but disallow the others. Effectively an alphanumeric with the two character exceptions.
@manneohrstrom
Copy link
Contributor

Hey! Great suggestion! The reason we haven't added understcore by default is because some of the tokens in the templates are separated by underscore (eg. {sequence}_{shot}) and this can currently lead to ambiguities in the template resolution in toolkit! But we should change the syntax around to use the regex syntax (but avoiding the underscore) to make it easier for a user to add it in should they need it. And add some comments in the config to explain this reasoning too! Thanks for pointing this out!!

@rob-aitchison
Copy link
Contributor

Leaving this PR open as Manne's comment above is very insightful for anyone thinking about making this change, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants