-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anchor completion limited to first 500 lines of a file #644
Labels
bug
Something isn't working
Comments
raisin-loaf
changed the title
Anchor Completion Limited To First 500 Lines Of A File
Anchor completion limited to first 500 lines of a file
Jul 5, 2024
epwalsh
added a commit
that referenced
this issue
Jul 11, 2024
Hey @raisin-loaf, I believe #647 should fix this. |
epwalsh
added a commit
that referenced
this issue
Jul 11, 2024
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. 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 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
The text was updated successfully, but these errors were encountered: