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

extend/include autocomplete ignores template directories #146

Open
Martmists-GH opened this issue Sep 14, 2022 · 2 comments
Open

extend/include autocomplete ignores template directories #146

Martmists-GH opened this issue Sep 14, 2022 · 2 comments

Comments

@Martmists-GH
Copy link

Martmists-GH commented Sep 14, 2022

When typing {% extends "..." %} or {% include "..." %}, it only autocompletes files relative to the current files, rather than autocompleting them relative to directories marked as "Template Folder" in IntelliJ:

image

@bjansen
Copy link
Owner

bjansen commented Oct 2, 2022

I don't see any "Template Folder" option in https://www.jetbrains.com/help/idea/content-roots.html, are you talking about something else?

Anyway, the difficulty is that you could theoretically set any folder as a template folder when building a PebbleLoader.
And on the other hand, marking a directory as a "template folder" is not enough for PebbleLoader to use it :/

@Martmists-GH
Copy link
Author

After doing a bit of research, it seems the Python plugin may be providing this.

While I'm aware the PebbleLoader is unaware of project settings, having the autocomplete be aware of project settings (even if it's a different content root than the one provided by the python plugin) would be a great QoL feature to have.

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