influx icon indicating copy to clipboard operation
influx copied to clipboard

Headers not being accurately detected

Open chuckharmston opened this issue 2 years ago • 5 comments

Describe the bug The header in the hierarchy is not being correctly identified if "Show headers" is enabled.

To Reproduce

  1. Create a note Test note with backlinks
  2. Create a note Test note with links, with the content:
## Test header 1
- Some text
## Test header 2
- [[Test note with backlinks]]
  1. View the Influx panel on Test note with backlinks

Expected behavior The header identified for the backlink will be "Test header 2"

Screenshots CleanShot 2023-02-14 at 02 36 00@2x CleanShot 2023-02-14 at 02 36 05@2x

Desktop (please complete the following information):

  • OS: macOS
  • Version [e.g. 22]

Additional context N/A

chuckharmston avatar Feb 14 '23 07:02 chuckharmston

I'm also having this issue, but inconsistently. For example, I record bulleted meeting notes all under a H1 heading, but only the heading appears in the linked file.

In another case from last week, the header connection worked just fine.

Benjamin-Medina avatar Feb 14 '23 19:02 Benjamin-Medina

I am also having this issue inconsistently. Also on MacOS, Ventura 13.3.1.

bn-bnelson avatar Apr 12 '23 15:04 bn-bnelson

I'm also having this issue. Apparently, all occurrences are reported under the first matching header.

alranel avatar Apr 19 '23 16:04 alranel

FWIW, I've triaged this issue by just keeping my expectations for usage simpler. I have just figured out a format that works with the current code and have changed my note taking to match it.

I based the style on the image in this repository that shows the usage examples. Basically, I've gone to more bulleted lists and less headers. I find the plugin useful enough that this trade-off works for me.

bn-bnelson avatar Apr 19 '23 17:04 bn-bnelson

I observed the same issue with a note like this:

[[A]]

# Heading

where Heading is detected as heading for the link [[A]].

I guess this is related to #32. It would be really nice if the closest headline would be used instead of the topmost one.

thequilo avatar Aug 04 '23 20:08 thequilo