Closed raisin-loaf closed 3 months ago
Hey @raisin-loaf, I believe #647 should fix this.
Let me know if you still have issues. It's possible I missed another call where this option needs to get propagated.
Let me know if you still have issues. It's possible I missed another call where this option needs to get propagated.
This looks to have fixed it, thanks so much for the speedy response, and for a terrific plugin in general. π
π Describe the bug
I have a few large notes, some > 2000 lines. I noticed that when attempting to link to these files not all the anchors appeared in the completion menu. After experimenting, it appeared anchors past 500 lines were unavailable. I found the search_max_lines option in the docs but wasn't confident cause the default is 1000. I set it to 2000 but didn't see a change.
I then searched the codebase and found a DEFAULT_MAX_LINES local variable set to 500. After upping this to 2000 the anchors I was missing appeared in the completion menu.
I'm no Lua dev, but it looks like DEFAULT_MAX_LINES is optionally overriden by
opts.max_lines
, although I'm guessing this isn't happening for whichever invocation ofNote.from_lines
is used for completion. Is it possible to expose an option for this use case? How would I go about trying to do that? πConfig
Environment