Repeat last action

Are you missing a feature? Request its implementation here.
feedee
Posts: 5
Joined: Sun Feb 23, 2014 1:24 am

Repeat last action

Post 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
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Repeat last action

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mjp
Posts: 12
Joined: Wed Feb 10, 2016 11:32 pm

Re: Repeat last action

Post 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
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Repeat last action

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Hyperion
Posts: 5
Joined: Tue Aug 04, 2020 1:58 pm

Re: Repeat last action

Post 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
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Repeat last action

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Hyperion
Posts: 5
Joined: Tue Aug 04, 2020 1:58 pm

Re: Repeat last action

Post 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.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Repeat last action

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Hyperion
Posts: 5
Joined: Tue Aug 04, 2020 1:58 pm

Re: Repeat last action

Post 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.
Post Reply