LiamRiddell / obsidian-solve

An unobtrusive Obsidian plugin that quietly processes equations and patterns in real time
MIT License
72 stars 0 forks source link

[Feature Request] YYYY-MM-DD Datetime Provider Parsing #50

Closed deonjo closed 4 months ago

deonjo commented 5 months ago

Is your feature request related to a problem? Please describe. I think this plugin is awesome, and very snappy. I also like the time manipulation aspect. Currently I add today's date by using a shortcut cmd + d. and it will add the date as a YYYY-MM-DD format. I see that Solve can output in ISO format. But I was wondering if it could also parse as an ISO format.

Describe the solution you'd like It would be great if this could happen:

Or what would be even more awesome is:

Screenshot of current behavior

Screenshot 2024-03-22 at 11 11 28 AM
LiamRiddell commented 5 months ago

Hi @deonjo! Welcome to the solve community. Thank you for feature request. I'll need to investigate this more.

LiamRiddell commented 4 months ago

Hi, it looks like the issue was because your 2024-03-22 is being processed as arithmetic expression 2024 - 03 - 22. I've added further improvements to the ISO datetime parser and bumped it's priority over the arithmetic provider. This should solve the above issue (I hope!).