I rewrite the datepicker modal to be more keyboard-friendly. Now after opening the modal, you can type a date and press Enter to submit.
or with my theme applied:
Other side-effects:
I made a couple assumptions here:
changing "Insert as link" and "moment format" will no longer save the settings. This makes it more of a one-time change which could be more desirable in cases. I can change this behavior back though
If you don't insert anything, it will insert today's date
Some other future improvements could be:
display the parsed date onChange (to make it super obvious what will in inserted)
autosuggest with common dates ('tomorrow', 'next week', etc)
Edit: I went ahead and added too more improvements to the modal:
there's now a live preview of the date that will be inserted
if you append a | to the date input, it will keep the inserted text as the alias. e.g. Next Friday will output 2021-04-30|Next Friday
I rewrite the datepicker modal to be more keyboard-friendly. Now after opening the modal, you can type a date and press Enter to submit.
or with my theme applied:
Other side-effects:
I made a couple assumptions here:
Some other future improvements could be:
display the parsed date onChange (to make it super obvious what will in inserted)Edit: I went ahead and added too more improvements to the modal:
|
to the date input, it will keep the inserted text as the alias. e.g.Next Friday
will output2021-04-30|Next Friday
Here's a screenshot with the latest version
solves #23 solves #24