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

Context.project_name is all lowercase #89

Closed
OrangeUtan opened this issue Jun 15, 2021 · 3 comments
Closed

Context.project_name is all lowercase #89

OrangeUtan opened this issue Jun 15, 2021 · 3 comments

Comments

@OrangeUtan
Copy link
Contributor

Context.author, Context.project_description, etc are all as in the configuration file, only Context.project_name is converted to all lowercase.

This makes using the original capitalized project name akward, having to add a redundant meta variable.

Example:

# beet.json
{
  "name": "TheQuickBrownFox"
}

Context.project_name results in thequickbrownfox

@vberlier
Copy link
Member

This is actually intentional because there are a few places where it's useful to be able to use the project name as a normalized id. But I agree that it's confusing so I've been meaning to introduce a separate project_id for that and leave the project_name as defined in the config file.

@OrangeUtan
Copy link
Contributor Author

I thought as much. Adding a seperate variable seems like a great idea

@vberlier
Copy link
Member

Now the project_name attribute is left untouched and you can use project_id if you need something that can be used as a normalized id. I also made the project_id configurable with the id config option, but by default it's automatically derived from the project name.

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

No branches or pull requests

2 participants