Open rvanlaak opened 9 years ago
@Haehnchen what do you think about adding extra stubs speed up things?
Now ALT + ins
only shows "Generate > XML tag", but it could always result in generators for the following tags and place the cursor at the place of the ‡ sign.
{% ‡ %}
{{ ‡ }}
{{ '‡' }}
{{ '‡'|trans }}
We could also think of other tags where the filter is located after quotes, and require intensive navigating with the keyboard arrows.
it only make sense with a dialog to select a translation and the "trans style" to insert. all other are more like "code templates"
Would the plugin be able to add code templates then?
poc is ready, sweet stuff ;) same logic as translation extraction to detection domains and provide a preselected list
While adding translations in my templates, it would be great if that could speed up by generating the stub code for a translation. Currently no generators are there, except the XML tag while pressing
ALT + Insert
.Would be great a stub for a Twig translation filter could be added from that menu. Especially because the filter has to be added after the quote characters, so now that takes lot of presses on the arrow keys.