Page 1 of 1

Repeat last action

Posted: Tue Oct 14, 2014 2:49 pm
by feedee
Hi,
In Oxygen XML Author, would it be possible to add a menu option/shortcut key to repeat your last action? This would be similar to the feature provided in Word, which enables you to perform the same operation on bits of text that are selected consecutively. Thanks

Re: Repeat last action

Posted: Tue Oct 21, 2014 10:07 am
by Radu
Hi,

Sorry for the delay.
We do not yet have such a feature. Could you tell me your use case?

Regards,
Radu

Re: Repeat last action

Posted: Fri May 13, 2016 5:09 pm
by mjp
This would be a nice enhancement. Several of our writers have also asked for this feature (similar to F4 in Word). Some use cases they have mentioned:

• Insert an element tag (I see you can do this for inline tags already with Ctrl /)
• Remove an element tag
• Apply an attribute
• Insert/delete a table row, insert/delete a table column, merge/split a table cell

Please add our vote for this issue =)

thanks,
Melanie

Re: Repeat last action

Posted: Mon May 16, 2016 4:09 pm
by Radu
Hi Melanie,

Right, I also added your vote on the opened issue. If we have any questions about how this could work we'll discuss this more on this thread.

Regards,
Radu

Re: Repeat last action

Posted: Mon Aug 30, 2021 6:44 pm
by Hyperion
Anything new about the "repeat last action"-function? I would second something like this, it's quite useful (and common in Word & Co.), esp. in authormode (when you forgot the sometimes complex keyboard-shortcut for a tailored authormode functionality realised via gui buttons :) )

Please add my vote for the issue!

Yours sincerely
Sven

Re: Repeat last action

Posted: Tue Aug 31, 2021 7:45 am
by Radu
Hi Sven,

Thanks for the feedback, I added it to the opened internal issue. So in your case this would be useful after you invoke a toolbar action, right? Does that action perform a surround operation for the selected text? Does it also prompt you to specify what the text should be surrounded with? Do you want the repeat last action to ask you again the same question or to perform the action based on the last answer?

Regards,
Radu

Re: Repeat last action

Posted: Wed Sep 01, 2021 2:38 pm
by Hyperion
Hi Radu,

thanks for your reply. I see, it's a bit more complicated than just plain repetition. Yes, you are right it's mostly about using more or less "complex" commands through the Toolbar in Authormode: for example, I press the button for the command: surround the selected text with the element <person> and a certain attribute, which I have to select also (via a little pop-up window for ex.). Of course there is a shortcut for the command, but I still have to select the attribute every time even it is the same. A repeat-function would repeat the last operation and apply it to the selected text.

Re: Repeat last action

Posted: Thu Sep 02, 2021 6:04 am
by Radu
Hi,

You seem to perform two operations (surround and then set attribute). I think in your case something like macro recordings would help, so a feature which would allow you to press a record button, perform the multiple actions, stop recording and then play again the actions later.
About your particular use case of surrounding with an element and then setting an attribute, you can also create an Oxygen code template:

https://www.oxygenxml.com/doc/versions/ ... ting2.html

Code templates can use inside them editor variables like ${selection}, so you can create a code template content like this:

Code: Select all

<person id="test">${selection}</person>
or if you want to be asked for the id attribute value every time, use another Oxygen editor variable which shows a dialog to the end user:

Code: Select all

<person id="{ask('ID Attribute Value?')}">${selection}</person>
Regards,
Radu

Re: Repeat last action

Posted: Thu Sep 02, 2021 6:33 pm
by Hyperion
@radu Thank you very much! You are right, 2 operations, of course, not suitable for repeat last action, my fault :lol: . Thanks for mentioning macros, I will take a look.