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

Add generated watch files (*_templ.txt) to file nesting #29

Open
DemonTPx opened this issue Jun 12, 2024 · 2 comments
Open

Add generated watch files (*_templ.txt) to file nesting #29

DemonTPx opened this issue Jun 12, 2024 · 2 comments

Comments

@DemonTPx
Copy link

When using templ generate -watch, files are generated with the _templ.txt suffix. Could these be added to the file nesting under the .templ file?

A workaround is to add it as a custom file nesting (in project view settings > file nesting), but for some reason that hides the generated _templ.go files...

@DemonTPx DemonTPx changed the title Add watch files to nesting Add generated watch files (*_templ.txt) to file nesting Jun 12, 2024
@joerdav
Copy link
Collaborator

joerdav commented Jun 12, 2024

I think that's a good idea, I considered it for the vscode plugin but haven't got to implementing it yet.

@fernandoacorreia
Copy link

It would be useful it both _templ.go and _templ.txt files were nested below .templ files.

Weidly, when trying to use GoLand's File Nesting feature to achieve that, the .txt file is nested but the .go file is hidden. I suspect that may be because with a conflict with the way this plugin is setting up nesting for .go files.

File_Nesting_and_checklist_app

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

3 participants