summaryrefslogtreecommitdiffstatshomepage
path: root/nroam-backlinks.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix syntax errororg-roam-v2Gravatar Tom Willemse2024-06-081-1/+1
|
* Update showing backlinks to work for Org Roam v2Gravatar Tom Willemse2024-05-271-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't include backlinks from nodes within the same file. I've intentionally excluded these since they should be visible within the same file anyway. This is only for file nodes, doesn't include anything for headline nodes. If I get to adding backlinks for headline nodes as well I should show backlinks from headlines in the same file as well. - ‘org-roam--get-backlinks’ has been removed and is now replaced by ‘org-roam-backlinks-get’. The new function returns a list of ‘org-roam-backlink’ objects, which is different from what was returned before. - ‘org-roam-format-link’ has been removed. This was just a small wrapper around ‘org-link-make-string’. For now I've hard-coded the ‘file:’ link type since it's easy, but in the future this should probably use the org id instead so that it doesn't just go to the right file, but also the right heading. The line number could also be added. - In ‘nroam-backlinks--insert-backlink’ the ‘backlink’ argument is now an ‘org-roam-backlink’ object, not a string and a property list. - ‘nroam--fix-links’ has been removed for now since generally in org-roam v2 everything uses ‘id:’ links that are completely independent of where their source (or target) file are located.
* nroam-backlinks.el: Update levels due to pull request #14Gravatar Gustav Wikström2021-03-151-3/+3
| | | | | | | | | Adding a single backlinks heading changes the depth by 1 for most everything. Some things wasn't updated in that pull request. This pull request fixes some things missing. * nroam-backlinks.el (nroam-backlinks--insert-backlink-subtree) (nroam-backlinks--insert-subtree): Add one level of depth.
* Fix a byte-compiler warningGravatar Nicolas Petton2021-03-151-0/+1
| | | | * nroam-backlinks.el: Require org for `org-hide-drawer-toggle'.
* * nroam-backlinks.el (nroam-backlinks--insert-group): ↵Gravatar Nicolas Petton2021-03-151-5/+5
| | | | Fix a let(*).
* Organize backlinks under single headingGravatar Damien Pollet2021-03-141-9/+9
|
* Remove nroam sections from exportGravatar Damien Cassou2021-03-121-1/+1
| | | | | | | * nroam-backlinks.el (nroam-backlinks--insert-heading): * nroam-unlinked.el (nroam-unlinked--insert-heading): Add the :noexport: tag to prevent exporting nroam sections. See docstring of `org-export-exclude-tags'.
* Fix docstringsGravatar Nicolas Petton2021-03-081-1/+1
| | | | | | | | | * nroam-backlinks.el (nroam-backlinks-section): * nroam-unlinked.el (nroam-unlinked-section): * nroam.el (nroam-setup-maybe): (nroam-update): (nroam--org-roam-file-p): (nroam--update-maybe): Fix docstrings according to `checkdoc'.
* Only use package headers in nroam.elGravatar Nicolas Petton2021-03-081-4/+0
| | | | | | * nroam-backlinks.el: * nroam-unlinked.el: * nroam-utils.el: Remove package headers.
* Bump nroam to v0.9.0v0.9.0Gravatar Nicolas Petton2021-03-071-1/+1
|
* nroam-backlinks.el: Add logic for heading level for ↵Gravatar Gustav Wikström2021-03-051-2/+2
| | | | | | | | backlink subtree * nroam-backlinks.el (nroam-backlinks--insert-backlink-subtree): Use the existance (or not) of an outline to infer the subtree level of the content.
* Fix a let(*) definitionGravatar Nicolas Petton2021-03-041-7/+7
| | | | | * nroam-backlinks.el (nroam-backlinks--hide-drawers): Use `let*’ as `elt’ is used in other let forms.
* nroam-backlinks.el: Fix edge case (again)Gravatar Gustav Wikström2021-03-041-6/+7
| | | | | * nroam-backlinks.el (nroam-backlinks--crawl-source): Set full-outline to nil if point is before first heading using a built in org function.
* Refactoring: rename a functionGravatar Nicolas Petton2021-03-041-3/+3
| | | | | * nroam-backlinks.el (nroam-backlinks--insert-backlink-breadcrumbs): Rename from `nroam-backlinks--insert-backlink-outline’.
* Refactor nroam-backlinks--insert-backlinkGravatar Nicolas Petton2021-03-041-15/+27
| | | | | | | | * nroam-backlinks.el (nroam-backlinks--insert-backlink): Refactor by extracting new functions. (nroam-backlinks--insert-backlink-subtree): (nroam-backlinks--insert-backlink-content): (nroam-backlinks--insert-backlink-outline): New functions.
* Fix an edge case in `nroam-backlinks--crawl-source’Gravatar Nicolas Petton2021-03-031-7/+10
| | | | | * nroam-backlinks.el (nroam-backlinks--crawl-source): Do not attempt to get the full outline when outline is nil, as `org-get-outline-path’ will throw.
* nroam-backlinks.el: Add more context to backlinksGravatar Gustav Wikström2021-03-031-9/+22
| | | | | | * nroam-backlinks.el (nroam-backlinks--insert-backlink) (nroam-backlinks--crawl-source): Make sure the outline hierarchy is included in the backlinks section.
* Split nroam.elGravatar Nicolas Petton2021-03-011-0/+141
* nroam-backlinks.el: * nroam-utils.el: New files.