-
Notifications
You must be signed in to change notification settings - Fork 163
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
Insert today's date (shortcut: ctrl+;) #1929
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## qa #1929 +/- ##
=======================================
Coverage 91.17% 91.17%
=======================================
Files 246 246
Lines 54247 54247
=======================================
Hits 49459 49459
Misses 4788 4788 ☔ View full report in Codecov by Sentry. |
const sheet = sheets.sheet; | ||
const cursor = sheet.cursor; | ||
const today = new Date(); | ||
const formattedDate = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a date utilities file for stuff like this.
const sheet = sheets.sheet; | ||
const cursor = sheet.cursor; | ||
const today = new Date(); | ||
const formattedDate = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here. I've seen this repeat several times, ripe to be refactored into a reusable function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking comment to make things DRYer.
This inserts today's date when pressing ctrl+; (or via the command palette). This is an Excel shortcut.