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

feat: Now external file links like [[file:foo.org::* Heading]] work #569

Merged
merged 6 commits into from
Feb 18, 2022

Conversation

kaushalmodi
Copy link
Owner

Earlier, only [[file:foo.org::#custom_id]] worked.

Earlier, only [[file:foo.org::#custom_id]] worked.
@kaushalmodi
Copy link
Owner Author

This change breaks the links to other subtree posts in the same file.. Will need to dig deeper..

@kaushalmodi kaushalmodi marked this pull request as draft February 18, 2022 19:20
Also fix a test post subtree at wrong indentation level
  - An EXPORT_FILE_NAME subtree was nested inside another
    EXPORT_FILE_NAME subtree. Post subtrees are not supposed to be
    organized like that.
@kaushalmodi kaushalmodi marked this pull request as ready for review February 18, 2022 20:18
This applies only to the case where the search string is a target name
and the search is attempted in a different file.
Thanks to the magical Org Element API function
`org-element-target-parser` :)
Also fix a duplicate ID
@kaushalmodi kaushalmodi force-pushed the fix-links-to-headings-in-other-files branch from 2ea9167 to 0451eb9 Compare February 18, 2022 21:29
@kaushalmodi kaushalmodi force-pushed the fix-links-to-headings-in-other-files branch from 467c861 to 27c3cb1 Compare February 18, 2022 21:37
@kaushalmodi kaushalmodi merged commit f0d06bd into main Feb 18, 2022
@kaushalmodi kaushalmodi deleted the fix-links-to-headings-in-other-files branch February 18, 2022 21:37
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

Successfully merging this pull request may close these issues.

1 participant