argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
497 stars 46 forks source link

Include a configuration option to keep the original text as an alias #8

Closed Bejasc closed 2 years ago

Bejasc commented 3 years ago

Mostly explained by the title.

Would work for some workflows, and be not so great for others.

I use the dates almost exclusively in my Daily Notes - where I will often refer to "next week", "tomorrow", "on Wednesday", etc. My date format is quite large YYYY-MM-DD (ddd Do MMM), and in a "daily" context, not as easy to mentally parse/process as "tomorrow" in the context of a daily note.

In the case of using the plugin to resolve "next monday", I can do this manually by modifying the markdown to read as [[2020-11-23 (Mon 23rd Nov)|next monday]], for it to read in preview mode as simply next monday

It would be great to include a config option to keep the original text as an alias (or even as a separate command in the command palette)

pyjamads commented 3 years ago

I did this locally, I'll make a pull request for it but it basically changes [[date]] to [tag](date) so the selected text becomes a link to that date instead...

Pull-request here: https://github.com/argenos/nldates-obsidian/pull/16

argenos commented 3 years ago

@Bejasc v0.3.2 includes the changes in #16 in case you want to give it a try!

liamcain commented 3 years ago

I think this can be closed now, right @argenos?

yasanglass commented 2 years ago

Is there a way to use this feature on mobile? I can only use it on the desktop.