Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to treat a wiki-link date as a date value? #173

Closed
misaxi opened this issue May 1, 2021 · 3 comments
Closed

Is there a way to treat a wiki-link date as a date value? #173

misaxi opened this issue May 1, 2021 · 3 comments

Comments

@misaxi
Copy link

misaxi commented May 1, 2021

facing the trouble in the workflow and have to decide if to use a linked date:: [[2021-04-30]] or date:: 2021-04-30

Maybe i'm missing the proper way to handle this. but plaintext get recognized as date properly, but wikilink does not.

Tried to hack around file.field due to file not created , even replace('[', ''), but didn't work properly.

If the wikilink date can be recognized as date by default, would be a nice productivity boost.

@rishifter
Copy link

Agree with this. This speaks to a broader request for the date() method to accept varying kinds of text and extract date from it.

@CovetingEpiphany2152
Copy link

CovetingEpiphany2152 commented May 6, 2021

+1. We need some way to convert links to date.
One might argue that we can do field.file.day, however, if the link is a dangling link (unlinked reference), this would not work.
I also think that having the ability to extract the string in a link to be useful.

@blacksmithgu
Copy link
Owner

I've added date(<link>), which tries to infer the date from the (1) display, then (2) path, then (3) from the file.day property of the file if it exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants