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

go to template definition #17

Open
AdrienLemaire opened this issue Apr 18, 2019 · 3 comments
Open

go to template definition #17

AdrienLemaire opened this issue Apr 18, 2019 · 3 comments

Comments

@AdrienLemaire
Copy link

AdrienLemaire commented Apr 18, 2019

In a template with the code {% extends "base.html" %}, I would like to switch to the related base.html file by pressing CTRL-].

Can Django-plus add the configuration to auto-create the appropriate tags? Or can you suggest a proper way to get this done?

@AdrienLemaire
Copy link
Author

Created an SO thread on this topic (more generally talking about ctags, but also mentioning goto def for django templates)

@AdrienLemaire
Copy link
Author

@tweekmonster I wrotee another question on the vim SO and got a good hint: I'm not looking for tags but a better path to go to template extends/include file definition with `gf``.
A good plugin that handles path is vim-apathy. But it feels like django-plus should be the one to set path searching options for django files :)

@AdrienLemaire
Copy link
Author

For now, I'll manually set :se path+=** everytime I need to use gf on django templates, but we'd want to automate this with fine-tuned path selection (https://mobile.twitter.com/tpope/status/612991904897232898)

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

1 participant