links failed for IDs longer than 12 characters
XLramones opened this issue · 4 comments
I have my zk-id-time-string-format set to %Y%m%d%H%M%S (14 digits), but when calling the zk-new-note function and inserting link, the console reports that Search failed: "\\[\\[\\([0-9]\\{12\\}\\)]]"
.
I am not very competent in elisp, but is there anyway to aid this ?
Yes! Per the docstring for zk-id-time-string-format, you'll need to alter zk-id-regexp appropriately. Try adding the following to your config:
(setq zk-id-regexp "\([0-9]\{14\}\)")
Thank you! I am still having an issue with the zk-new-note function. whenever I call it with the option of inserting the link at point, the same Search failed: "\\[\\[\\([0-9]\\{12\\}\\)]]"
message is displayed and the note is not created, just a dead link is inserted.
notes created and linked to without the insert at point functionality work just fine.
thank you so much