shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Button to open DatePicker #143

Closed ArneNostitz closed 5 months ago

ArneNostitz commented 1 year ago

hi, would it be somehow possible to integrate a date picker to open when a button is pushed and then to exchange the button for the selected date? thanks

shabegom commented 1 year ago

Not exactly a date picker, but using Natural Language Dates plugin you can get most of the way there:

```button
name Date Picker
type command
action Natural Language Dates: Date picker
remove [picker]
```
^button-picker
ArneNostitz commented 1 year ago

this is a great solution, thanks. there is some great applications as well. but here i am looking for an option that works without keystrokes as this can sometimes be faster. is there a way to implement a real point and click picker ?

shabegom commented 1 year ago

If another plugin presented a date picker we could use it. It's unlikely I would build a date picker directly in Buttons.

ArneNostitz commented 1 year ago

would it be complicated to implement js-datepicker? https://www.npmjs.com/package/js-datepicker ... this has no dependencies so I hope its not a complicaterd task ... but i am no developer so I´d love your estimation in how complicated this could be before i try to do this :) thanks for the active feedback and your great tool!