Page 1 of 1
Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Mon May 11, 2020 8:58 pm
by chrispitude
When I double-click in the Oxygen editor, it selects a phrase for me. Currently, this phrase selection stops at underscores. However, I would like it to select through underscores, as almost all the labels we wrap in <codeph> in our documentation have underscores in the names.
It would be very useful to configure what character classes to *include* in phase selection, such as
[a-z][A-Z][0-9]_
or similar.
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Tue May 12, 2020 2:16 pm
by Radu
Hi Chris,
I added an internal issue with ID EXM-45612 to consider this. As this enhancement has not been asked before I'm not sure of a timeline in which it will get done. I think such a behavior could also be implemented with a plugin though. We have API to register mouse listeners.
Why do you usually select the label from inside the codeph? Do you do that to copy it somewhere else? Do you want to copy only the label or the entire codeph?
Regards,
Radu
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Tue May 12, 2020 3:33 pm
by chrispitude
Hi Radu,
Thanks for the reply and thought. It's more that we select the label text to wrap it in <codeph> (or another) tag. Or we might want to copy/paste the label into another window to search internal documentation or paste it into a terminal window. From a broad perspective, underscores are simply a part of content names we work with on a daily basis.
For instance, we might type
Code: Select all
Use the -dont_check_temporary_cells option of the check_design_legality command to ignore these cells during the check.
and now we want to wrap both
-dont_check_temporary_cells and
check_design_legality in <codeph>. (As I type this, I realize that having control over whether hyphens stop the selection or not is also useful!)
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Wed Jan 22, 2025 8:33 pm
by Richard
This is an upvote for this feature! In the meantime, using "Shift+Control+RightArrow" helps select across hyphens, text, and underscores.
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Thu Jan 23, 2025 8:39 am
by Radu
Hi,
Thanks, I added your remark to the opened internal issue!
Regards,
Radu
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Sat Feb 01, 2025 1:44 pm
by tatra603
chrispitude wrote: ↑Mon May 11, 2020 8:58 pm
When I double-click in the Oxygen editor, it selects a phrase for me. Currently, this phrase selection stops at underscores. It would be very useful to configure what character classes to *include* in phase selection, such as
[a-z][A-Z][0-9]_
...I am voting for such feature too. I prefer total configuration (option) freedom for users in such a way, that there will be two RegEx-s in menu -> Options -> Preferences -> Editor -> ...???:
RegExBeforeCursor and RegExAfterCursor
So the user can choose even if some character or sequence of characters will be included from left side of the mouse cursonr and the same or other ones from right side of the mouse cursor.
Thank You in advance, Stepan
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Mon Feb 03, 2025 9:59 am
by Radu
Hi,
I added your suggestion on the opened issue.
For this particular thread the opened internal issue is related to how double clicking works in the Author visual editing mode. Are you editing the content in the Text or Author modes?
Regards,
Radu
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Mon Feb 03, 2025 12:51 pm
by tatra603
> Are you editing the content in the Text or Author modes?
...Only in TEXT mode in oXygen XML Developer.
Re: Allow "stop" characters to be configured for double-clicking to select a phrase
Posted: Tue Feb 04, 2025 8:16 am
by Radu
I understand, I added another internal issue focused on the Text editing mode:
EXM-55254 Improve double click to select behavior in Text mode
Regards,
Radu