Motivation for this PR: I'm using the Add dates as link? option, and 95% of the time, I do want to insert a link, but for the other 5%, it's tedious to delete the automatically inserted brackets.
Accordingly, this PR adds Alt as a hotkey modifier for the suggestion modal (like the current Shift hotkey) to do one of two things if held on confirmation:
If the user has enabled the option in question, it inserts the date as plain text
If the user has not enabled the option, it inserts the date as a link (to help users in the opposite situation who may occasionally want to insert a link)
I also considered using a separate trigger character for "inverted" insertions, but I felt that adding a hotkey to the modal was the least intrusive option (and has the advantages of requiring no additional configuration + having a higher level of discoverability).
Motivation for this PR: I'm using the
Add dates as link?
option, and 95% of the time, I do want to insert a link, but for the other 5%, it's tedious to delete the automatically inserted brackets.Accordingly, this PR adds
Alt
as a hotkey modifier for the suggestion modal (like the currentShift
hotkey) to do one of two things if held on confirmation:I also considered using a separate trigger character for "inverted" insertions, but I felt that adding a hotkey to the modal was the least intrusive option (and has the advantages of requiring no additional configuration + having a higher level of discoverability).