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

Support link text containing only the date when using "Add dates as link" feature #122

Open
pm64 opened this issue Dec 29, 2022 · 1 comment

Comments

@pm64
Copy link

pm64 commented Dec 29, 2022

The "Add dates as link" feature is an amazing productivity booster. But users would probably like to have the option for the generated link text to not contain the full path to the corresponding daily note.

Currently, "next thursday" produces the following:

[[Daily/2023-01-05]]

I propose giving the user the choice of generating this instead:

[2023-01-05](Daily/2023-01-05)

For example, an option could be added that is enabled by default and labeled "Include full path in link text".

@sxwd4ever
Copy link

sxwd4ever commented Jan 9, 2023

How about adding another template for 'add dates as link'?

My solution is setting the date format as YYYY-MM-DD or [[Daily/YYYY-MM-DD|DD/MM/YY]]. This template will show 'YYYY-MM-DD' instead of 'Daily/YYY-MM-DD', however, it displays the wrong text for the 'insert current date' function.

I suppose two different templates for each case would be better since Currently, nldates use one single template for both 'add dates as link' and 'insert current date/date and time', which may lead to confusion.

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