argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
474 stars 42 forks source link

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

Open pm64 opened 1 year ago

pm64 commented 1 year ago

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 commented 1 year ago

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.