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

Feature indexZeroPrefixed #29

Closed
wants to merge 1 commit into from

Conversation

clouless
Copy link

I would love to have an index prefixed with zeros.
Here is my first draft of the feature with unit Tests to discuss further.

Readme Additions

image

@75lb
Copy link
Owner

75lb commented Sep 17, 2017

hi, thanks for the input - nice patch! However, it's a very specific use case - something more suited to an external plugin.. Please use this feature on your own fork temporarily while I upgrade renamer to accept plugins as input.

@clouless
Copy link
Author

ok no problem :) Then we close this PR and maybe you can ping me once renamer supports plugins :)

@clouless clouless closed this Sep 17, 2017
@75lb
Copy link
Owner

75lb commented Jul 9, 2018

In version v1 of renamer, you can specify a printf format with --index-format. So, to get the 0001, 0002 etc numbering scheme:

$ renamer -r "Image{{index}}" --index-format "%04d" --dry-run *

Install the prerelease:

$ npm install -g renamer@next

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

Successfully merging this pull request may close these issues.

None yet

2 participants