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

Autocomplete filenames based on graphicspath #590

Closed
MarcelRobitaille opened this issue Apr 2, 2022 · 4 comments
Closed

Autocomplete filenames based on graphicspath #590

MarcelRobitaille opened this issue Apr 2, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@MarcelRobitaille
Copy link

It would be amazing if autocomplete suggestions could be recommended based on graphicspath. For example:

\graphicspath{{../figures/}}
\begin{document}
\includegraphics{_

If my cursor is the _, I would like to be prompted with the files present in ../figures in addition to the files in the current folder. I think the graphicspath should take precedence since this is explicitly saying "here is where I want to store my figures.

pfoerster added a commit that referenced this issue Apr 3, 2022
@pfoerster pfoerster added the enhancement New feature or request label Apr 3, 2022
@pfoerster
Copy link
Member

Thanks for the suggestion! 68a901e now implements this feature 👍

@MarcelRobitaille
Copy link
Author

Amazing. That's the second issue you've solved for me extremely quickly. Can I send a donation to you and/or this project to say thanks?

@pfoerster
Copy link
Member

Amazing. That's the second issue you've solved for me extremely quickly

You're welcome :)

Can I send a donation to you and/or this project to say thanks?

Thanks for the generous offer! texlab has always been a part of my spare time and I would like to keep it as a hobby. The fact that there are people using this project for their work or studies is thanks enough for me :)

@MarcelRobitaille
Copy link
Author

Suit yourself. Lots of open-source hobby projects take donations, though. I don't see any harm in that.

The fact that there are people using this project for their work or studies is thanks enough for me :)

I am using it for my studies. I recently set up LSP and I have been loving texlab!

pfoerster added a commit that referenced this issue Apr 4, 2022
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue May 29, 2022
## [4.0.0] - 25.05.2022

### Added

- Add `--version` command line flag
- Provide pre-built binaries for `aarch64-apple-darwin` architecture ([#591](latex-lsp/texlab#591))
- Autocomplete files based on `\graphicspath` ([#590](latex-lsp/texlab#590))
- Release `texlab` on `crates.io` ([#399](latex-lsp/texlab#399))

### Changed

- _BREAKING_: Use client-side file watching instead of server-side notifications (`workspace/didChangeWatchedFiles`)
- _BREAKING_: Bump minimum supported Rust version to 1.58.1
- _BREAKING_: Do not use `citeproc-rs` to render citations. Instead, use a custom approach that tries to resemble the `BibLaTeX` output ([#629](latex-lsp/texlab#629))

### Fixed

- Parse `\subinputfrom` command correctly ([#610](latex-lsp/texlab#610))
- Parse verbatim environments correctly ([#490](latex-lsp/texlab#490))
- Stop capturing stdout when build exits ([#588](latex-lsp/texlab#588))
- Fix parsing of key-value pairs ([#573](latex-lsp/texlab#573))
- Normalize `texlab.rootDirectory` when resolving includes ([#571](latex-lsp/texlab#571))
- Allow optional arguments in environment definitions ([#570](latex-lsp/texlab#570))
- Allow `=` in include paths ([#568](latex-lsp/texlab#568))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants