Highlight Date/Timestamps #44
Replies: 2 comments 2 replies
-
Nicely done! Regarding your plugin idea, check out https://github.com/replit/Codemirror-CSS-color-picker The Obsidian markdown syntax tree will look different than the tree they're traversing but there should be some good examples to leverage in that code base as it's a similar use case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this! I modified it a bunch to concisely display dates in the format It's ugly and hacky since I'm not a frontend dev and I'd welcome any improvements (especially number/divider bar alignment on all font sizes). Snippet:
|
Beta Was this translation helpful? Give feedback.
-
Here's the latest version of the Highlight Datetime snippet:
To add, simply click "Import" from the Dynamic Highlights settings page. Then paste in the following:
Original Post
This is still a work-in-progress but sharing in case anyone wants to try these snippets out.TODO
YYYY-MM-dd HH:mm
I'm a bit jealous of other apps that have date/timestamps as first class citizens (see: SuperNotes, Thunk Notes, etc). Honestly, this doesn't quite fit the bill, but at least it looks a bit nicer.
Next step is learning enough CM6 to get a decoration with a real date/time picker and a click event.
Highlight Date/Time
(PS, I borrowed a lot of the CSS from @lguenth. So thanks!)
Beta Was this translation helpful? Give feedback.
All reactions