Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Double click selection must select keywords

Open nickreserved opened this issue 2 years ago • 6 comments

We have this line:

subdivision.push_back(unique_ptr<SteelKinematicHardeningArea>
...

I double click on unique_ptr to select keyword unique_ptr but notepad3 selects the whole line white-character to white-character.

I feel double click must select keywords.

nickreserved avatar Jun 07 '22 09:06 nickreserved

Sounds like you have

Settings | Accelerated Word Navigation

enabled, disable it.

jupester avatar Jun 07 '22 23:06 jupester

Yes. Now it works. Although "Accelerated Word Navigation" is a very obscure option name.

If Notepad3 is complicated enough so selection works different on every type of file, then on XML files must recognize as part of keyword, the "-" character.

I mean in this XML line: <path stroke="green" fill="green" fill-opacity="0.2" stroke-width="0.005" stroke-linejoin="round" d="M -1,0.0238095 -1,-0.942857 1,-0.942857 1,0.0238095 0.5,0.0238095 0.5,-0.5 -0.5,-0.5 -0.5,0.0238095 z" /> when you double click fill-opacity whole keyword must be selected.

Of course this is not the case in C++ where - operator exists.

nickreserved avatar Jun 08 '22 09:06 nickreserved

Hello @nickreserved ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.22.829.1_beta.paf" or newer, see 1st list in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.22.829.1_beta_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar Aug 29 '22 13:08 hpwamr

XML code and C++ code follows.

cout << a-b << "\n";

Double click on XML code "property" must select "property-prop". Double click on C++ code "a" must select "a" only (not "a-b"). So, what a token is, depends on the language.

Στις Δευ 29 Αυγ 2022 στις 4:39 μ.μ., ο/η Pairi Daiza < @.***> έγραψε:

Hello @nickreserved https://github.com/nickreserved ,

Feel free to test the "BETA/RC PortableApps", version " Notepad3Portable_5.22.829.1_beta.paf" or newer, see 1st list in issue #1129 https://github.com/rizonesoft/Notepad3/issues/1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension https://workupload.com/file/URGb8YS6.

Also, feel free to test the "BETA/RC Setup", version " Notepad3_5.22.829.1_beta_Setup" or newer, see the 2nd list in issue #1129 https://github.com/rizonesoft/Notepad3/issues/1129.

Comments and suggestions are welcome... 😃

— Reply to this email directly, view it on GitHub https://github.com/rizonesoft/Notepad3/issues/4095#issuecomment-1230322626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3YX73QFA7EPPTX4VGNLDLV3S4R7ANCNFSM5YCIFI2A . You are receiving this because you were mentioned.Message ID: @.***>

nickreserved avatar Aug 29 '22 14:08 nickreserved

Hello, current beta version renames obscure Accelerated Word Navigation to Alternate Word Separators. If the word selection (e.g. double-click) is too much, you can limit it by settings: e.g. [Settings2] ExtendedWhiteSpaceChars=+#&%$ This will add these characters to the default set of "Alternate Word Separators". Above setting, for example, will select "blah-blub" as word, but not "blah+blub" (in Alternate Word Separators mode). (Whitespaces and Linebreaks are fixed separators)

RaiKoHoff avatar Sep 01 '22 08:09 RaiKoHoff

It would be nice to have Lexer dependant "token separators", but this is beyond current development scope 😢.

RaiKoHoff avatar Sep 01 '22 08:09 RaiKoHoff