Indicate LaTeX tags and page numbers for references#68
Open
ivlis wants to merge 2 commits into
Open
Conversation
References parsing is moved to get-ref-completions.coffee. The new module uses an .aux file to extract references, which is much faster, then scanning all tex files. Also, it is possible to extract information about tags and pages. Drawback? The completions do not work if the tex file is not complied. But this should not be a big deal, as we use this package to compile tex files anyway.
Collaborator
|
Wouldn't it be better to use the .aux file, if present, but to fall-back to the current method if it isn't for whatever reason? Also will this work with |
Author
|
The method was inspired by LaTeXbox for vim, which works with multiple files. I will check this. It is not a big deal to implement the fallback, but direct scanning of tex files is very slow. I feel it rather painfully for my files having over 1000 lines. |
If no aux file is found, we fallback to tex files scanning
Author
|
@ig0774 I added a fallback function, which implements the old functionality. The |
Author
|
@msiniscalchi Any progress on this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References parsing is moved to get-ref-completions.coffee. The new module uses
an .aux file to extract references, which is much faster, then scanning all tex
files. Also, it is possible to extract information about tags and pages.
Drawback? The completions do not work if the tex file is not complied. But this
should not be a big deal, as we use this package to compile tex files anyway.