Community
    • Login

    Double clicking over a word function works great, but it can be much greater than ever

    Scheduled Pinned Locked Moved General Discussion
    enhancement req
    27 Posts 4 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterJonesP
      PeterJones @W TX
      last edited by

      @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

      1. Can it add a single key stroke to reverse search a word, for example, “F4”?

      There are three “Find Previous”, akin to the three “Find Next”, already built in and listed in the Find menu:
      5296dc50-eb5f-499f-9b6c-8556c3d4e409-image.png

      I’m not sure how those three don’t meet your needs for “reverse search a word”.

      If you don’t like the default keystrokes, you can change them using Settings > Shortcut Mapper:
      874b7f3d-b2b4-4b8b-94da-030701539c08-image.png

      1 Reply Last reply Reply Quote 1
      • W TXW
        W TX @Alan Kilborn
        last edited by

        @Alan-Kilborn Thank you for your advice. But how to pop up the “smart highlights” window?

        PeterJonesP 1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @W TX
          last edited by

          @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

          But how to pop up the “smart highlights” window?

          Settings > Preferences > Highlighting

          W TXW 1 Reply Last reply Reply Quote 0
          • W TXW
            W TX @PeterJones
            last edited by

            @PeterJones Great! Thank you very much!

            Notepad++ is the best software for editing a source code file!

            1 Reply Last reply Reply Quote 0
            • W TXW
              W TX @Alan Kilborn
              last edited by

              @Alan-Kilborn said in Double clicking over a word function works great, but it can be much greater than ever:

              how your suggested change might negatively impact them? No? I thought not.

              Could you please give an example to support your opinion: I thought not.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @W TX
                last edited by PeterJones

                @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

                Could you please give an example to support your opinion: I thought not.

                It’s really easy to give an example of it breaking someone’s workflow, even by someone else than the person who brought up the point.

                I rarely use the “Select and Find Next” or “Find (Volatile) Next” actions. But I quite frequently double-click. For example, I double-click then type over the selection (or paste over the selection, or what have you). If double-click automatically selected the word, then found the next occurrence of that word, then when I started typing (or pasting) to overwrite that word, it would edit the wrong instance of that word. ⇒ QED: I was able to supply an example to support @Alan-Kilborn’s (and my) opinion that changing the double-click behavior as you describe would negatively impact my double-click general use-case.

                Also, assuming you haven’t re-mapped the keys, Ctrl+F3 is the “Select and Find Next” command, as shown in my screenshot above. Note that the first part of that command is “Select”: it already starts by selecting the active word, which is equivalent to the double-click you are doing first. So if you really wanted to make things more efficient for you, just type Ctrl+F3 rather than double-click-then-Ctrl+F3.

                PeterJonesP W TXW 2 Replies Last reply Reply Quote 1
                • PeterJonesP
                  PeterJones @PeterJones
                  last edited by PeterJones

                  Further, Notepad++'s double-click behavior is the expected behavior, to anyone who has used MS Notepad, or MS Word, or any other word processing or text editing software I’ve used … and even other software, such as my web-browsers or my linux terminal programs: it selects the active word. Making it behave differently just in Notepad++, would break the expectation of many people.

                  W TXW 1 Reply Last reply Reply Quote 2
                  • W TXW
                    W TX @PeterJones
                    last edited by

                    @PeterJones said in Double clicking over a word function works great, but it can be much greater than ever:

                    I rarely use the “Select and Find Next” or “Find (Volatile) Next” actions. But I quite frequently double-click. For example, I double-click then type over the selection (or paste over the selection, or what have you). If double-click automatically selected the word, then found the next occurrence of that word, then when I started typing (or pasting) to overwrite that word, it would edit the wrong instance of that word. ⇒ QED: I was able to supply an example to support @Alan-Kilborn’s (and my) opinion that changing the double-click behavior as you describe would negatively impact my double-click general use-case.
                    Also, assuming you haven’t re-mapped the keys, Ctrl+F3 is the “Select and Find Next” command, as shown in my screenshot above. Note that the first part of that command is “Select”: it already starts by selecting the active word, which is equivalent to the double-click you are doing first. So if you really wanted to make things more efficient for you, just type Ctrl+F3 rather than double-click-then-Ctrl+F3.

                    Sorry I have made a mistake. What I really want is to include “Ctrl” + “F3” and leaving cursor position unchanged, so your mentioned inconvenience really does not exist, and if you type further or go to find next word, it will not cause any conflict.

                    PeterJonesP 1 Reply Last reply Reply Quote 0
                    • PeterJonesP
                      PeterJones @W TX
                      last edited by

                      @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

                      What I really want is to include “Ctrl” + “F3” and leaving cursor position unchanged

                      It appears you are still under a misunderstanding of what Ctrl+F3 does. It is a highlight-and-find-next command. If you do not want it to find the next instance, then the behavior you want is not Ctrl+F3, and you should stop calling it that. Inherent in the Ctrl+F3 is moving the cursor.

                      If you have behavior that you would like to replicate, you are going to have to describe the actual behavior of what state cursor, selection, and find-buffer should be in, rather than relying on your understandings as to what the keyboard shortcuts do.

                      Alan KilbornA 1 Reply Last reply Reply Quote 0
                      • Alan KilbornA
                        Alan Kilborn @PeterJones
                        last edited by Alan Kilborn

                        Of course, one could write a script to do something special on the double-click notification. Like grab the selected text and so a find-next on it.

                        EDIT: Well, I guess I haven’t kept up with this thread…but when I try to I get really confused.

                        W TXW 1 Reply Last reply Reply Quote 0
                        • W TXW
                          W TX @Alan Kilborn
                          last edited by

                          @Alan-Kilborn said in Double clicking over a word function works great, but it can be much greater than ever:

                          Of course, one could write a script to do something special on the double-click notification. Like grab the selected text and so a find-next on it.
                          EDIT: Well, I guess I haven’t kept up with this thread…but when I try to I get really confused.

                          What I want is to enhance double click function not only to highlight the word as usual, but also to trig a find function to get the word into search target without moving cursor position, saving two key strokes “Ctrl”+“F3”. So after that , one can press “F3” to start searching next.

                          This is a practice of paid Textpad software I used before and find the function really useful.

                          PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote 0
                          • PeterJonesP
                            PeterJones @W TX
                            last edited by

                            @W-TX ,

                            get the word into search target without moving cursor position

                            Thank you for the better description.

                            Personally, I still think it’s a bad idea: if I already have something I want in the search target so that F3 will find the next instance of that search, but want to double-click a word to type over it in the meantime, I’d be pretty upset if the developers decided that suddenly my desired F3 target would be replaced just because I happened to use the mouse double-click to select a word.

                            find the function really useful.

                            I don’t, as described above; but I can see how someone with a different standard workflow might. We can disagree on this opinion.

                            to enhance double click function

                            This Forum is not the feature request / bug tracker for Notepad++ … we are here to help others use the software. Development is tracked in github, as mentioned in the FAQs on this Forum.

                            That said, you may feel free to make a feature request in the official location, as described in the Forum FAQ: if you do make a feature request as a result of this discussion, it’s considered polite to paste a link to that request here in the discussion. However, I would personally not want to see this implemented, because it will interfere with my standard workflow.

                            As an alternative, and thus avoiding messing up the application for me and many others who want search to remain independent of selection, @Alan-Kilborn gave an idea for a way to customize the behavior for yourself: use PythonScript or another of the scripting plugins to hook into the double-click notification, and insert the contents of the current word into the search buffer. If you don’t have the skills to research how to do that yourself, someone here might take pity on you if you ask nicely – but please remember that this isn’t a code-writing forum, and anything you might get will be from the generosity of volunteers.

                            1 Reply Last reply Reply Quote 0
                            • Alan KilbornA
                              Alan Kilborn @W TX
                              last edited by

                              @W-TX

                              You seem to be in love with this idea.
                              You first brought it up over a year ago HERE

                              Also Ctrl+F3 isn’t 2 keystrokes, it is 1.
                              Nobody would call “A”, which you get by pressing Shift+a, two keystrokes.
                              But if you insist that Ctrl+F3 is two keystrokes, use the Shortcut Mapper to reassign it to a “single” keystroke.

                              As I read it, you’ve got two actions you want to do here:

                              • double-click to select a word
                              • press a keycombo (when you are ready) to do a find-next

                              I would do it this way:

                              • click the desired word (or move the caret to it)
                              • execute a Select and Find Next operation, again, when I’m ready (of course after assigning it to a single keycombo of my liking)

                              The differences seem, well, just semantics.

                              W TXW 1 Reply Last reply Reply Quote 1
                              • Alan KilbornA
                                Alan Kilborn
                                last edited by

                                Considering it a bit more, I’ve changed my mind about a script doing it.
                                I was thinking that it was all wanted in one step via the double-click, but as more discussion has occurred, it appears to be a two-step thing.

                                Thus, I’ve already given what I think is an acceptable solution (which is really no more than standard N++ already does).

                                Plus, there is no way to “set the search buffer term” via a script, without bringing up the Find window, and I don’t think that would be deemed desirable here.

                                1 Reply Last reply Reply Quote 1
                                • W TXW
                                  W TX @Alan Kilborn
                                  last edited by

                                  @Alan-Kilborn said in Double clicking over a word function works great, but it can be much greater than ever:

                                  But if you insist that Ctrl+F3 is two keystrokes, use the Shortcut Mapper to reassign it to a “single” keystroke.

                                  Could you please tell where to find Shortcut Mapper.

                                  Alan KilbornA 1 Reply Last reply Reply Quote 0
                                  • Alan KilbornA
                                    Alan Kilborn @W TX
                                    last edited by

                                    @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

                                    Could you please tell where to find Shortcut Mapper.

                                    Peter told you about Shortcut Mapper, including where to find it, 7 hours ago. But maybe pictures work where the written word apparently fails:

                                    3458a402-0999-4b49-9496-93f15e0d2be7-image.png

                                    W TXW 1 Reply Last reply Reply Quote 1
                                    • W TXW
                                      W TX @Alan Kilborn
                                      last edited by

                                      @Alan-Kilborn Thank you. I changed F4 key from searching previous result to CTRL+F4, and SHIFT +F3 to F4, so F4 key, one stroke, does searching previous word function. Work great!

                                      Through this post, I really get my 2 requests satisfied:

                                      1. Find a way to show the highlighted word in 2 windows.

                                      2. Find a way to use F4 key to search previous word!

                                      I remember that last time I visited this site, no shortcut mapper was available. But now it works great! I want to know on which version the shortcut mapper was added.

                                      Thank you for everyone who helps.

                                      Alan KilbornA 1 Reply Last reply Reply Quote 2
                                      • Alan KilbornA
                                        Alan Kilborn @W TX
                                        last edited by

                                        @W-TX said in Double clicking over a word function works great, but it can be much greater than ever:

                                        Through this post, I really get my 2 requests satisfied

                                        I am absolutely stunned by this statement. :-)

                                        I remember that last time I visited this site, no shortcut mapper was available.

                                        This is not a true statement.

                                        I want to know on which version the shortcut mapper was added.

                                        TBH, I’m not sure (and it isn’t worth looking through really old/ancient versions to find exactly where), but it has been around at the very least 7 years, and I’d believe, a lot longer than that. Maybe the Research Dept. will figure out the answer.

                                        PeterJonesP 1 Reply Last reply Reply Quote 1
                                        • PeterJonesP
                                          PeterJones @Alan Kilborn
                                          last edited by PeterJones

                                          @Alan-Kilborn said in Double clicking over a word function works great, but it can be much greater than ever:

                                          Maybe the Research Dept. will figure out the answer.

                                          • 7.0 from 2016 has Shortcut Mapper
                                          • 6.0 from 2012 has Shortcut Mapper
                                          • 4.0 from 2006 has Shortcut Mapper

                                          @W-TX joined May 21, 2019, when v7.7 (May 19) was brand new, and asked the earlier question in Nov 2019 (when v7.8.1 was the newest).

                                          Because I was curious:

                                          IiIiIGRvdWJsZWNsaWNrRXh0cmEucHkNCg0KaHR0cHM6Ly9jb21tdW5pdHkubm90
                                          ZXBhZC1wbHVzLXBsdXMub3JnL3RvcGljLzE5ODc5L2RvdWJsZS1jbGlja2luZy1v
                                          dmVyLWEtd29yZC1mdW5jdGlvbi13b3Jrcy1ncmVhdC1idXQtaXQtY2FuLWJlLW11
                                          Y2gtZ3JlYXRlci10aGFuLWV2ZXINCg0KSGlnaGphY2tzIHRoZSBkb3VibGUtY2xp
                                          Y2sgYWN0aW9uOg0KKiBzYXZlcyBjdXJyZW50IHNlbGVjdGlvbiBsb2NhdGlvbg0K
                                          KiBydW5zIEN0cmwrRjMgKFNlbGVjdCBhbmQgRmluZCBOZXh0KSB0byBnZXQgdGhl
                                          IGN1cnJlbnQgc2VsZWN0aW9uIGludG8gdGhlIHNlYXJjaCBidWZmZXINCiogZ29l
                                          cyBiYWNrIHRvIHRoZSBvcmlnaW5hbCBwb3NpdGlvbg0KKiBzZWFyY2hlcyBiYWNr
                                          d2FyZCBvbmNlIGFuZCBmb3J3YXJkIG9uY2UgdG8gcmUtYWN0aXZhdGUgYW55IHNt
                                          YXJ0bWF0Y2hlcw0KKiBBdCB0aGlzIHBvaW50LCB0aGUgYWN0aXZlIHNlbGVjdGlv
                                          biBpcyBpbiB0aGUgc2VhcmNoIGJ1ZmZlciBhbmQgRjMgd2lsbCB0YWtlIHlvdSB0
                                          byB0aGUgbmV4dCBpbnN0YW5jZS4NCg0KVG8gcnVuIGl0IGV2ZXJ5IHRpbWUsIHB1
                                          dCBpdCBpbiB5b3VyIHVzZXIgc2NyaXB0cyBmb2xkZXIgYXMgImRvdWJsZWNsaWNr
                                          RXh0cmEucHkiLCBhbmQgYWRkIHRoZSBmb2xsb3dpbmcgdG8geW91ciB1c2VyIHN0
                                          YXJ0dXAucHk6DQp+fn4NCmZyb20gTnBwIGltcG9ydCAqDQppbXBvcnQgc3lzDQpk
                                          ID0gbm90ZXBhZC5nZXRQbHVnaW5Db25maWdEaXIoKSArIHInXFB5dGhvblNjcmlw
                                          dFxTY3JpcHRzJw0KaWYgbm90IGQgaW4gc3lzLnBhdGg6DQogICAgc3lzLnBhdGgu
                                          YXBwZW5kKGQpDQoNCmltcG9ydCBkb3VibGVjbGlja0V4dHJhDQp+fn4NCg0KIiIi
                                          DQpmcm9tIE5wcCBpbXBvcnQgKg0KDQpkZWYgZG91YmxlY2xpY2tfZXh0cmEoYXJn
                                          cyk6DQogICAgc3MgPSBlZGl0b3IuZ2V0U2VsZWN0aW9uU3RhcnQoKQ0KICAgIHNl
                                          ID0gZWRpdG9yLmdldFNlbGVjdGlvbkVuZCgpDQogICAgbm90ZXBhZC5tZW51Q29t
                                          bWFuZCg0MzA0OCkgICMgc2VsZWN0IGFuZCBmaW5kIG5leHQgLi4uIGNhbm5vdCBm
                                          aW5kIHRoZSByaWdodCBNRU5VQ09NTUFORC5TRUFSQ0hfLi4uLiBlbnVtDQogICAg
                                          ZWRpdG9yLmdvdG9Qb3Moc2UpDQogICAgZWRpdG9yLnNldFNlbGVjdGlvbihzcyxz
                                          ZSkNCiAgICBub3RlcGFkLm1lbnVDb21tYW5kKE1FTlVDT01NQU5ELlNFQVJDSF9G
                                          SU5EUFJFVikNCiAgICBub3RlcGFkLm1lbnVDb21tYW5kKE1FTlVDT01NQU5ELlNF
                                          QVJDSF9GSU5ETkVYVCkNCg0KDQplZGl0b3IuY2FsbGJhY2soZG91YmxlY2xpY2tf
                                          ZXh0cmEsIFtTQ0lOVElMTEFOT1RJRklDQVRJT04uRE9VQkxFQ0xJQ0tdKQ0KDQoj
                                          IHVzZSBlZGl0b3IuY2xlYXJDYWxsYmFja3MoW1NDSU5USUxMQU5PVElGSUNBVElP
                                          Ti5ET1VCTEVDTElDS10pIGJlZm9yZSByZS1ydW5uaW5nIHRoaXMgc2NyaXB0IGR1
                                          cmluZyBkZWJ1Zw0K
                                          
                                          1 Reply Last reply Reply Quote 1
                                          • W TXW
                                            W TX @PeterJones
                                            last edited by

                                            @PeterJones said in Double clicking over a word function works great, but it can be much greater than ever:

                                            Further, Notepad++'s double-click behavior is the expected behavior, to anyone who has used MS Notepad, or MS Word, or any other word processing or text editing software I’ve used … and even other software, such as my web-browsers or my linux terminal programs: it selects the active word. Making it behave differently just in Notepad++, would break the expectation of many people.

                                            Here is my further thought that meets your practice custom and have nothing to change but will bring more convenience:

                                            1. Double clicking a word or highlighting a few words by pressing and moving cursor changes nothing. No code change.

                                            2. Press F3 key: if no words are highlighted, search is as usual; if words are highlighted, then the highlighted words becomes new search target. It does not change current Notepad++ user’s practice custom in following 2 situations:

                                            a. If a user continuously press F3 key, because when F3 key is pressed the target key is highlighted.

                                            b. If user moves cursor and types something, there is no highlighted word, press F3 key still keeps its search target words unchanged.

                                            The user practice custom only changes when double clicking or highlighting a few words by pressing and moving cursor and pressing F3 key, then the highlighted words will be used as new search target.

                                            It will save key strokes:
                                            You don’t have to use Ctrl+F to pop up the find window to enter new search target.
                                            You don’t have to use Ctrl+F3 to enter new search target, just use F3.

                                            It is a suggestion!

                                            W TXW PeterJonesP 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            The Community of users of the Notepad++ text editor.
                                            Powered by NodeBB | Contributors