Page 1 of 1
keyboard shortcut for repeated text
Posted: Thu Feb 13, 2020 12:56 am
by lopresti
Hi Oxygen,
I'm trying to set up a keyboard shortcut that will insert
Code: Select all
<!-- ${date(yyyy-MM-dd) ${author.name} -->
when I need it. Can you tell me where/how to do this?
Thanks,
Kate
Re: keyboard shortcut for repeated text
Posted: Thu Feb 13, 2020 1:25 pm
by adrian_sorop
Hi Kate,
You can create a custom
Operation that will insert the fragment in
Author page.
To create the custom operation, open the
Document Type Association Preferences page and double click to edit your current framework.
Go to the Author->Actions tab and create the new action (fill in the
ID ,
Name and
Shortcut key fields).
Choose
Code: Select all
ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation
as Operation.
Edit the
fragment argument and set
Code: Select all
<!-- ${date(yyyy-MM-dd)} ${author.name} -->
When the action is invoked, the fragment will be inserted at caret position.
Regards,
Adrian
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com