Skip to content
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

[Feature] Watch included files (e.g. \input) to reflect changes #1

Open
DominikPeters opened this issue May 7, 2024 · 1 comment
Open

Comments

@DominikPeters
Copy link
Owner

This would require identifying all child files, sending their contents to TeXpresso (using the open command), and keeping a rope data structure for their contents. For identifying child files, code from the LaTeX Workshop extension could be adapted, see for example

https://github.com/James-Yu/LaTeX-Workshop/blob/fe6a08e9aa26ba4e2594d81a4b5baf636457d89e/src/utils/inputfilepath.ts#L18-L20

https://github.com/James-Yu/LaTeX-Workshop/blob/fe6a08e9aa26ba4e2594d81a4b5baf636457d89e/src/core/cache.ts#L278-L284

@let-def
Copy link

let-def commented May 7, 2024

Alternatively, I can extend TeXpresso to notify the editor when a file is included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants