Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Creates loops #2

Open
cdzombak opened this issue May 14, 2021 · 0 comments
Open

Creates loops #2

cdzombak opened this issue May 14, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cdzombak
Copy link
Owner

Given the following:

  • Note A links to Note B, and has a Backlinks section
  • Note B does not link to Note A, and has a Backlinks section

On first run, Note B's Backlinks section will get a link to Note A, as expected.

On second run, the program detects that backlink as a link to Note A, and adds Note B to Note A's backlinks section. This should not happen; backlinks shouldn't count as links for the purpose of populating the backlinks section.

After this, the situation stabilizes; no infinite loop occurs or anything.

See this in my personal bear notes with 072BBB0D-15AD-457E-B504-08C9DA9BDB57-474-00004D22C86BF9D8.

Probably the fix is to use some more hacky text manipulation to check if the note outside the backlinks section contains the link before counting it as an actual backlink.

@cdzombak cdzombak added the bug Something isn't working label May 14, 2021
@cdzombak cdzombak self-assigned this May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant