Closed DylanLukes closed 1 year ago
Hey @DylanLukes I see you marked this as resolved. Did you find a solution that worked for you?
I don't see a "Link Date Format" field in the plugin settings, and it looks like others are looking for something similar (here and #122).
If you found a workaround or scripted something, can you point me in the right direction so I can try to emulate it?
Edit: Nevermind! After a bit more reading I found we can accomplish this like so.
For example, if you have this folder structure: daily/2023/Januaray/23-Monday.md
use Date Format: [daily]/YYYY/MMMM/DD-dddd|YYYY-MM-DD
, which will link properly into your daily directory while displaying as the pattern presented after the |
.
What's Happening:
Currently, when I use
@today
, a link[[10-16-2022]]
is inserted.This presents an inconvenience, as my daily notes are inside a folder,
Daily/
.I can change the Date format option in the plugin settings to
[Daily/]YYYY-MM-DD
(square brackets escape literal text inmoment.js
)... but then@today
instead produces the link come out as[[Daily/10-16-2022]]
, which while correct, looks awkward when inserted into documents.Proposal:
Add a distinct option below Add dates as link? named Link date format, which is inserted as the display text for the automatically created links.