keyboard shortcut for repeated text

Having trouble installing Oxygen? Got a bug to report? Post it all here.
lopresti
Posts: 13
Joined: Mon Mar 24, 2014 11:22 pm

keyboard shortcut for repeated text

Post 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
adrian_sorop
Posts: 73
Joined: Wed Jun 22, 2016 2:48 pm

Re: keyboard shortcut for repeated text

Post 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
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply