-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend API to get links to headline and org file (#768)
* feat(api): Extend API to get links Considers id links, if org-id-link-to-org-use-id is set. Creates ids on file and headline level if needed. * chore: Remove stale require * chore: tiny refactoring to align similar methods Adapt the style of get_link_to_headline to new get_link_to_file - avoid empty declaration of `id` - move initialization of `path` close to it's usage * refactor: make get_link member functions Simplify the code by providing member functions on org.api.file and org.api.headline. * fix: handle unloaded buffers --------- Co-authored-by: Sebastian Flügge <[email protected]>
- Loading branch information
Showing
5 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters