How to assign a keystroke to "Insert Tag" rather than "Surround with Tag"

Questions about XML that are not covered by the other forums should go here.
menkalos
Posts: 3

How to assign a keystroke to "Insert Tag" rather than "Surround with Tag"

Thu May 19, 2016 7:27 pm

We use the <xref> tag extensively in our docs to link to topics in the same guide. There is no text, only a linkend and endterm attribute pair that we have to fill out.

I use this (and other similar tags) so often that I'd very much like to assign a keystroke to a general "Insert Tag" function that displays the valid tags at that point and lets me select one (identically to how "Surround With Tags" works) but without requiring that text is already selected.

How can I do that? Why do I have to have text pre-selected in order to insert a tag from the keyboard? As it stands, I have to use the mouse in the Elements pane. What a pain!

Please help! Thank you!!!
Radu
Posts: 5213

Re: How to assign a keystroke to "Insert Tag" rather than "Surround with Tag"

Fri May 20, 2016 8:47 am

Hi,

Could you tell me if you are editing content in the Text or in the Author visual editing mode?
Also, are you editing a custom XML vocabulary or is it Docbook? Because for Docbook we have in the Author visual editing mode special toolbar buttons for inserting links.
Anyway, in the Oxygen Preferences->Editor / Templates / Code Templates page you can create a code template (assign a name to a small piece of XML which can be inserted on demand) and if you are using Oxygen 17.1 or newer you can also assign a keyboard shortcut to it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 2 guests