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

Hotkeys for inserting current date do not add dates as wikilinks #126

Open
jasht1 opened this issue Feb 24, 2023 · 2 comments
Open

Hotkeys for inserting current date do not add dates as wikilinks #126

jasht1 opened this issue Feb 24, 2023 · 2 comments

Comments

@jasht1
Copy link

jasht1 commented Feb 24, 2023

Thank you very much for this plugin, It is a fantastic time saver!

I use the "Natural Language Dates: insert current date and time" hotkey to timestamp a lot of my work, but would like the ability to chose to add the date as a wiki link by default.
image
Especially if "add dates as links" is enabled for the rest of the plugin's functionality.
image
Though perhaps an even more powerful solution would be to have the custom format option support additional syntax like link brackets as currently it behaves like this when wikilink brackets are added:
image
image
Perhaps also have a way to customise the format for 'date & time' like is possible to do with 'date' and 'time' individually.

@jasht1
Copy link
Author

jasht1 commented Apr 4, 2024

A work around for this is adding \[\[ before and \]\] after in the date formatting section in the settings like so : \[\[YYYY-MM-DD\]\]
Though you should then disable the "Add dates as link?" option else you will get 4 sets of square brackets whenever you insert a date any other way.

@jasht1
Copy link
Author

jasht1 commented Jun 6, 2024

A work around for this is adding \[\[ before and \]\] after in the date formatting section in the settings like so : \[\[YYYY-MM-DD\]\] Though you should then disable the "Add dates as link?" option else you will get 4 sets of square brackets whenever you insert a date any other way.

Note that this work around will break the functionality of Shift+Enter to keep input text as an alias as the plug-in doesn't see your dates as links.

Until the main issue is fixed you must choose between linked hotkey timestamps &
"Typing @today Enter will automatically be expanded to the current date. Press Shift at the same time to keep the input text as an alias (e.g. @today → [[202112-27|today]])."

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

1 participant