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
Set max length of each argument separately in filename template #814
Comments
Are you sure? I just did the test and the extension , i.e. Edit: I did the test in the extension. I'll do another test with the CLI. The CLI should behave the same, otherwise I need to fix this. |
Yep, I am sure, but it hadn't happened when working with cli, but browser plugin(1.19.21), sometimes the ".html" part will lose. |
|
For the record, I confirm I cannot reproduce the issue when using the CLI. The command below produces a filename with |
|
Well, it would be a substantial amount of work :p. I think I would maybe prefer to implement a new syntax in the template language, e.g. |
|
Hmmm, this feature already exists actually. It's even already documented in the help page! I totally forgot about it... Use |
I haven't noticed about the section ‘Template variables’ in the help page, it should be work as excepted, thanks! |
|
@gildas-lormeau I think this issue need to reopen, because its behavior is not work as we excepted. The filename for saving is: |
|
@scruel The issue you're seeing is not related to this bug. The problem is that the SHA-1 cannot be computed on http pages, it only works with https pages unfortunately. |
Got it, so could it be fixed? Should I post a new issue for this? |

Is your feature request related to a problem? Please describe.
For now, if the filename is exceeded the maximum length of filename on Windows, the file will sometimes lose ".html" extension in filename when saving it, the global filename length property is not enough, because it may lose the important information which I want to keep in filename.
For example, if I set
{page-title} - {digest-sha-256}.html, if the length of page title exceeded the limitation, the digest info will be truncated, the ".html" part will also not be included in the filename.Describe the solution you'd like
An option which can specify the maximum length of each argument if it should be limited(e.g. page-title).
If the maximum length of page-title is 100, the syntax may:
{page-title-\<max-length\>}The text was updated successfully, but these errors were encountered: