-
Notifications
You must be signed in to change notification settings - Fork 82
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
Wrap selection in XML element #794
Comments
@adunning if I understand correctly, teh native emmet extension does the job, but you would like to just have completion for allowed XML tags in command palette, is that? |
Yes, exactly: giving users a list of available tags is an enormous help for beginners to a schema and prevents typos for everyone. I prefer an inline interface along the lines of what the extension already provides, but it's likely a question of what is easier to implement. Thank you again for your consideration! |
I fear it can be a long task, I'm not sure that we will implement that soon. If we see that we hav emore andmore user who want to have this feature, we could change the priority. @adunning don't hesitate to create any issue that you think it is important for RelaxNG and TEI. For instance I wonder if |
This similar to #605 I just want to add that this has been implemented both by the Scholarly XML (mentioned above) as well by TEI Publisher Extension for Visual Studio Code, but neither of them has the completion feature. |
Ok thanks @otichy for your feedback. I will see if it is easy to implement. |
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
@adunning @otichy I have started to implement inline wrap element at #813 (comment) but it requires to do some more work. |
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#794 Signed-off-by: azerr <azerr@redhat.com>
Fixes #794 Signed-off-by: azerr <azerr@redhat.com>
The prerelease containing this feature should be out December 9th. Please let us know if you run into any issues |
Looking forward to seeing it – very many thanks for your work on this! |
You are welcome! Please install the prerelease https://github.com/redhat-developer/vscode-xml#contributing to try the wrap element feature (see https://github.com/redhat-developer/vscode-xml/blob/main/docs/Refactor.md#surround-with-tags-wrap) and give us feedback |
Just tested this, very cool, thank you all very much! I have one very minor comment: when I select the action, the first item from the completion is selected and inserted automatically. When I decide to cancel the action e.g. using escape, the wrapping tag remains. I can of course undo, so no big deal. |
Thanks for your feedback! And we are glad that it pleases you.
I don't know how to cancel snippet mode. Could you create an issue for that just to invesitgate this improvement.Thanks. |
OK, will do. Is it also a good idea to start a new issue about possibly having the choice between documentation and multiline as discussed in #813 (comment) ? |
Yes please. In otherwords please create an issue per improvement to investiagte. |
And please create any issues if you think an important features from Oxygen is provided but not in vscode-xml. |
Most XML editors have a feature to wrap the current selection in an XML element, providing completion to suggest valid tags at that point in a file.
Within VS Code, the built-in 'Emmet: Wrap with Abbreviation' function provides part of this, but it is not XML-aware and does not give a list of the allowed tags in the current context. It would thus be brilliant if the XML extension could provide this.
There are at least two ways to implement this:
Many thanks for your work on this project and considering this request!
The text was updated successfully, but these errors were encountered: