Skip to content

How to fill zeros before problem id in file name? #595

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

Open
SLKyrim opened this issue Jul 9, 2020 · 1 comment
Open

How to fill zeros before problem id in file name? #595

SLKyrim opened this issue Jul 9, 2020 · 1 comment

Comments

@SLKyrim
Copy link

SLKyrim commented Jul 9, 2020

Cannot find solution in Customize the Relative Folder and the File Name of the Problem File

💬 Questions

The format of my file name is

"filename": "${id}-${kebab-case-name}.${ext}"

Now I want ${id} to be four digits so that the files can be sorted by their IDs on my Github repo.
For example, I click "Show Problem" and generate a file named "1.两数之和.py" and I want it to be "0001.两数之和.py". How can I implement this setting?

@yihong0618
Copy link
Contributor

See #582 maybe add later.

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