argenos / nldates-obsidian

Work with dates in natural language in Obsidian

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pm64 opened this issue · comments

commented

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

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.