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

Double square brackets in conflict with orgmode syntax #14

Closed
AtomicNess123 opened this issue Mar 7, 2022 · 6 comments
Closed

Double square brackets in conflict with orgmode syntax #14

AtomicNess123 opened this issue Mar 7, 2022 · 6 comments

Comments

@AtomicNess123
Copy link

Regarding the use of [[202012091130]] for links, doesn't this conflict with orgmode standard links?

@localauthor
Copy link
Owner

This is addressed in the README. https://github.com/localauthor/zk#using-org-mode-and-org-links

@AtomicNess123
Copy link
Author

Great:

(defun zk-org-try-to-follow-link (fn &optional arg)
  "When 'org-open-at-point' FN fails, try 'zk-follow-link-at-point'.
Optional ARG."
  (let ((org-link-search-must-match-exact-headline t))
    (condition-case nil
	(apply fn arg)
      (error (zk-follow-link-at-point)))))

(advice-add 'org-open-at-point :around #'zk-org-try-to-follow-link)

I suppose this coudl be done as well for zetteldeft links? I'm currently using zetteldeft.

@localauthor
Copy link
Owner

Have you tried it?

Also, that code snippet is derived from code in this thread, on the very topic: EFLS/zetteldeft#99

In the future, please be sure to read the relevant READMEs and existing issue threads before opening new issues and asking for help.

@AtomicNess123
Copy link
Author

Have you tried it?

Also, that code snippet is derived from code in this thread, on the very topic: EFLS/zetteldeft#99

In the future, please be sure to read the relevant READMEs and existing issue threads before opening new issues and asking for help.

Yes, I tried it and it works perfectly with zetteldeft, just needed to change zk-follow-link-at-point with zetteldeft-follow-link.

Sorry for opening this issue, I will read the docs next time.

One last question I couldn't find in the docs is the following: if I change the brackets to something else, will the previous files be updated with this change?

@localauthor
Copy link
Owner

Sorry for opening this issue, I will read the docs next time.

No worries!

One last question I couldn't find in the docs is the following: if I change the brackets to something else, will the previous files be updated with this change?

No, you would have to change them yourself.

@AtomicNess123
Copy link
Author

Thank you!

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

2 participants