[GH-ISSUE #916] [FR] Option to autoincrement file number if a file with the same name already exists #707

Closed
opened 2026-02-26 09:32:22 +03:00 by kerem · 11 comments
Owner

Originally created by @wenfangdu on GitHub (Jun 14, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/916

If the Overwrite (if already exists) under Save the file to a folder of your choice is not checked, I think it makes sense to add an option to autoincrement the file number instead of manual incrementing, if the proposed option is not checked, people can still have the same file name check.

image
image

Originally created by @wenfangdu on GitHub (Jun 14, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/916 If the `Overwrite (if already exists)` under `Save the file to a folder of your choice` is not checked, I think it makes sense to add an option to autoincrement the file number instead of manual incrementing, if the proposed option is not checked, people can still have the `same file name` check. ![image](https://user-images.githubusercontent.com/28700378/121970448-29d62800-cda9-11eb-8842-2ad2da1add62.png) ![image](https://user-images.githubusercontent.com/28700378/121970232-aae0ef80-cda8-11eb-927e-485d662b3f6f.png)
kerem 2026-02-26 09:32:22 +03:00
Author
Owner

@NickeManarin commented on GitHub (Jun 15, 2021):

Ok, I was thinking to add another checkbox that unchecks the Override one when enabled.

<!-- gh-comment-id:861126241 --> @NickeManarin commented on GitHub (Jun 15, 2021): Ok, I was thinking to add another checkbox that unchecks the Override one when enabled.
Author
Owner

@NickeManarin commented on GitHub (Jun 15, 2021):

Btw, you can also use DateTime formats as an automatic file naming scheme.

? dd-MM-yyyy HH-mm-ss?

<!-- gh-comment-id:861126507 --> @NickeManarin commented on GitHub (Jun 15, 2021): Btw, you can also use DateTime formats as an automatic file naming scheme. > ? dd-MM-yyyy HH-mm-ss?
Author
Owner

@wenfangdu commented on GitHub (Jun 16, 2021):

Btw, you can also use DateTime formats as an automatic file naming scheme.

?dd-MM-yyyy HH-mm-ss?

I've tried this, worked really well, maybe an option for turning this on as well? Plus i18n for the time format, e.g. ?yyyy-MM-dd HH_mm_ss? for Chinese.

<!-- gh-comment-id:862792324 --> @wenfangdu commented on GitHub (Jun 16, 2021): > Btw, you can also use DateTime formats as an automatic file naming scheme. > > > ?dd-MM-yyyy HH-mm-ss? I've tried this, worked really well, maybe an option for turning this on as well? Plus i18n for the time format, e.g. `?yyyy-MM-dd HH_mm_ss?` for Chinese.
Author
Owner

@wenfangdu commented on GitHub (Jun 16, 2021):

@NickeManarin Yes, just about to edit the comment. The current UI is really hard to find this feature, many people simply don't do the hover. A better UI like a separate tip on how to construct the time format etc. would be better.

<!-- gh-comment-id:862795176 --> @wenfangdu commented on GitHub (Jun 16, 2021): @NickeManarin Yes, just about to edit the comment. The current UI is really hard to find this feature, many people simply don't do the hover. A better UI like a separate tip on how to construct the time format etc. would be better.
Author
Owner

@keytrap-x86 commented on GitHub (Mar 11, 2022):

Hey @NickeManarin , I came here because I didn't unerstand that you were supposed to put this format ?dd-MM-yyyy HH-mm-ss? to get the filename with a date, I think that maybe the tooltip should be updated so it's more explicit. For now (in french version) it's only:
image

<!-- gh-comment-id:1064968701 --> @keytrap-x86 commented on GitHub (Mar 11, 2022): Hey @NickeManarin , I came here because I didn't unerstand that you were supposed to put this format `?dd-MM-yyyy HH-mm-ss?` to get the filename with a date, I think that maybe the tooltip should be updated so it's more explicit. For now (in french version) it's only: ![image](https://user-images.githubusercontent.com/17864005/157847474-84695393-e61b-4a31-9cdc-65df17bc6e08.png)
Author
Owner

@Combinacijus commented on GitHub (Feb 9, 2023):

I propose changing default "save as" file name from Animation.gif to gif_?yyyyMMdd_HHmmss?.gif. This clearly shows formatting capabilities and that you can add text outside ??.
Next add tooltip with example (incase person already deleted default one and don't remember correct modifiers) and explanations of available modifiers.

Tooltip example:

Name of a file e.g "gif_?yyyyMMdd_HHmmss?"
Text between ?...? are for Date/Time formatting e.g "?yyyyMM_dd?" will be saved as "202209_25.gif"
Available modifiers:
yyyy - current year, MM - month, dd - day, HH - hour, mm - minute, ss - second

Bonus feature would be to display formatted string under file name input field so you could see current date as final file name

<!-- gh-comment-id:1423949231 --> @Combinacijus commented on GitHub (Feb 9, 2023): I propose changing default "save as" file name from `Animation.gif` to `gif_?yyyyMMdd_HHmmss?.gif`. This clearly shows formatting capabilities and that you can add text outside ??. Next add tooltip with example (incase person already deleted default one and don't remember correct modifiers) and explanations of available modifiers. Tooltip example: ``` Name of a file e.g "gif_?yyyyMMdd_HHmmss?" Text between ?...? are for Date/Time formatting e.g "?yyyyMM_dd?" will be saved as "202209_25.gif" Available modifiers: yyyy - current year, MM - month, dd - day, HH - hour, mm - minute, ss - second ``` Bonus feature would be to display formatted string under file name input field so you could see current date as final file name
Author
Owner

@NickeManarin commented on GitHub (Feb 9, 2023):

@Combinacijus

I'm currently working on the next major release.
Here's the current implementation of the file name automation:

image

UI is not final, but basically, it's supposed to be easier to add/edit/remove automated sections of the filename.
And the field tells you which parts are dynamic.

When inserting the dynamic field, you can select the format:

image

Or you can edit it yourself.

<!-- gh-comment-id:1424988270 --> @NickeManarin commented on GitHub (Feb 9, 2023): @Combinacijus I'm currently working on the next major release. Here's the current implementation of the file name automation: ![image](https://user-images.githubusercontent.com/14798947/217964146-6059f52b-be1e-4c5d-b22f-24421f7d3e2d.png) UI is not final, but basically, it's supposed to be easier to add/edit/remove automated sections of the filename. And the field tells you which parts are dynamic. When inserting the dynamic field, you can select the format: ![image](https://user-images.githubusercontent.com/14798947/217964565-43b6271e-15f0-46e9-bd19-4b871dc223cd.png) Or you can edit it yourself.
Author
Owner

@Combinacijus commented on GitHub (Feb 10, 2023):

@NickeManarin Oh wow that's amazing. This is miles beyond my suggestion. Great work 👍

<!-- gh-comment-id:1425400415 --> @Combinacijus commented on GitHub (Feb 10, 2023): @NickeManarin Oh wow that's amazing. This is miles beyond my suggestion. Great work 👍
Author
Owner

@NickeManarin commented on GitHub (Feb 21, 2023):

It will be available in the next version (v3).

<!-- gh-comment-id:1439001165 --> @NickeManarin commented on GitHub (Feb 21, 2023): It will be available in the next version (v3).
Author
Owner

@eblabs commented on GitHub (Sep 8, 2025):

Hi, This looks great. Was a v3 released? I didnt see it. Thanks!

<!-- gh-comment-id:3267619387 --> @eblabs commented on GitHub (Sep 8, 2025): Hi, This looks great. Was a v3 released? I didnt see it. Thanks!
Author
Owner

@NickeManarin commented on GitHub (Sep 9, 2025):

Hi, This looks great. Was a v3 released? I didnt see it. Thanks!

No, it snowballed into something way bigger an I got busy with my full time job.
I hope to release it by the end of the year.

<!-- gh-comment-id:3272334657 --> @NickeManarin commented on GitHub (Sep 9, 2025): > Hi, This looks great. Was a v3 released? I didnt see it. Thanks! No, it snowballed into something way bigger an I got busy with my full time job. I hope to release it by the end of the year.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#707
No description provided.