Allow "stop" characters to be configured for double-clicking to select a phrase

Are you missing a feature? Request its implementation here.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Allow "stop" characters to be configured for double-clicking to select a phrase

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

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post 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!)
Richard
Posts: 2
Joined: Wed Jan 22, 2025 8:21 pm

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post by Richard »

This is an upvote for this feature! In the meantime, using "Shift+Control+RightArrow" helps select across hyphens, text, and underscores.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post by Radu »

Hi,
Thanks, I added your remark to the opened internal issue!
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tatra603
Posts: 83
Joined: Fri Sep 17, 2004 10:53 am
Location: Prague, the Czech Republic, Europe

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

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

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tatra603
Posts: 83
Joined: Fri Sep 17, 2004 10:53 am
Location: Prague, the Czech Republic, Europe

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

Post by tatra603 »

> Are you editing the content in the Text or Author modes?
...Only in TEXT mode in oXygen XML Developer.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Allow "stop" characters to be configured for double-clicking to select a phrase

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