tth05 / obsidian-completr

Auto-completion plugin for the obsidian editor.
MIT License
291 stars 18 forks source link

Latex Autocomplete stop working after a certain document length #43

Closed jensenraylight closed 1 year ago

jensenraylight commented 1 year ago

by the way, i used completr for months now and really happy with the Latex Autocomplete. i used it everyday, it boost my latex typing speed.

but today, the Latex autocomplete stop working, when write latex, it didn't trigger any pop up.

i already tested it, i checked if there was anything that stop the autocomplete from triggering, or if there was any loose "block" that prevent it. but i don't think that was the problem.

and i think the Autocomplete stop working after either it hit a certain document length or if you use too many latex equation, because, when i delete some equation, it start working again, but when it reach a certain length, it stop working again.

i'm using obsidian v1.0, and i didn't auto update my obsidian and completr, so, it's not something that was caused by update.

i didn't use any other autocomplete, only latex autocomplete

my workflow always required me to work in a long document, and use Header Outline to move around the document. therefore, it'll be unecessary to cut the document everytime the autocomplete stop working. so, i really wish the problem could be resolved

i include the gif in the attachment, it compared when i type at the bottom of the document vs the upper part of the document.

completr bug.webm

tth05 commented 1 year ago

This issue is caused by an arbitrary limit of 1000 lines that I added, to save performance when checking for LaTeX blocks. I guess this was a bit too low. I'll fix it.

jensenraylight commented 1 year ago

Thanks for the response, i didn't know about the limit, i thought my obsidian somehow acting up.

by the way, Thanks in Advance, the plugins really great, i really like it

tth05 commented 1 year ago

2994ffef293ea1aa3291b477bca3c15e1b579abd