New datepicker plugin

Hello everyone, I’m excited to say I’m working on a new datepicker plugin.
The goal is to create a simple popup that appears every time the editor cursor is placed on a text representing a date and time in a markup note, this is the link to the plugin: GitHub - joycode-hub/datepicker-plugin: Simple datepicker widget for Obsidian.

What do you think about this idea?
If you are willing to test it that would be great.
Your feedback is welcome and appreciated!

2 Likes

Elegant, I have been wanting a plugin like this that can be summoned at any time. :wink:

By the way, can you add a command to directly open the date selection interface?
image

And if I click on other place, just cancel the Process rather than inserting Invalid date might be more convinient?

1 Like

“By the way, can you add a command to directly open the date selection interface?”

Do you mean a keyboard shortcut?

“And if I click on other place, just cancel the Process rather than inserting Invalid date might be more convinient?”

Yes I just fixed this and created a new release, thanks to your report!

1 Like

I installed it, but then realized that I have a similar plug-in named Date Inserter already installed. It only offers the calendar interface, though. Anyway, I’ll be watching this thread, so feel free to bump it in case I forget to share my feedback!

One quick observation I’ve had since installation: when I insert a new date at the start of a new file, nothing happens.

Hey thanks so much for the observation, I fixed this in the latest release.

I took a quick look at the plugin you referred to, one difference is that my plugin automatically pops up whenever you place the editor cursor on a date time text in a note, and you can quickly edit the date and time using the datepicker.

It can also be used to insert new date or date and time using a command.

1 Like

image
Oh, what I mean is that now we need to click the Calander icon to see the “Date Picker” UI, is it possible to directly show the pop-up UI ?


And hope for an option to turn of the Auto Show Picker Feature when click on date text, because sometimes it would be triggered even when I don’t want :pleading_face:

Hello,

I have updated the plugin to include a setting to automatically open the calendar.

Also after the update the picker does not automatically get input focus, this has been moved into a setting if you want this behavior.

Thank you for your suggestions.

Great, Thanks for developing! :smiley: