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

Better org link handling #22

Open
mclearc opened this issue Dec 25, 2022 · 0 comments
Open

Better org link handling #22

mclearc opened this issue Dec 25, 2022 · 0 comments

Comments

@mclearc
Copy link

mclearc commented Dec 25, 2022

Right now org-autolist checks if the thing at point has org-link as a face, in which case it then follows the link. This isn't very robust as there are registered org-links that might not use the org-link face (e.g. denote links in org). What about a check using something like the following?

(and is-listitem
     (not
      (and org-return-follows-link
           (org-in-regexp org-link-any-re))))

this will check whether the link is any registered one.

EDIT: you could also just do an or with the face as one check and the regexp as the other -- that might be the best solution.

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