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

Default figure filename to YYYY-MM-DD_hh-mm-ss #497

Merged
merged 2 commits into from
May 3, 2023

Conversation

Tom-TBT
Copy link
Contributor

@Tom-TBT Tom-TBT commented Feb 8, 2023

Hello Will,
tiny PR to replace : by - for the default figure filename, to solve #314

That also includes the padding of date and time with zeros

If you would rather keep the :, I can revert to that format but keep the padding (otherwise reject the PR :D).

Side note, could you also close those solved issues:

Best,
Tom

@@ -550,9 +550,14 @@
},

getDefaultFigureName: function() {
const padL = (nr, len = 2, chr = `0`) => `${nr}`.padStart(2, chr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len argument isn't used in padStart(), but you only ever use the first argument anyway, so you could remove the len and chr args?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that, corrected in the last commit

@will-moore
Copy link
Member

Issues closed, thx.

If you include e.g. "Fixes #314" in your PRs, that should auto-close the issue when the PR is merged.

@Tom-TBT
Copy link
Contributor Author

Tom-TBT commented Feb 9, 2023

Thanks for the tip about auto close issues, will add the right keyword from now on.

Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/scalebar-width-adjustement/78827/3

@jburel jburel added the include label Mar 27, 2023
@will-moore will-moore merged commit 4d23a44 into ome:master May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants