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

Separate link date from display date format. #115

Closed
DylanLukes opened this issue Oct 16, 2022 · 1 comment
Closed

Separate link date from display date format. #115

DylanLukes opened this issue Oct 16, 2022 · 1 comment

Comments

@DylanLukes
Copy link

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 in moment.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.

@sf1tzp
Copy link

sf1tzp commented Jan 23, 2023

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 |.

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

2 participants