Double clicking over a word function works great, but it can be much greater than ever
-
You seem to be in love with this idea.
You first brought it up over a year ago HEREAlso 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.
-
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.
-
@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.
-
@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:
-
@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:
-
Find a way to show the highlighted word in 2 windows.
-
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.
-
-
@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.
-
@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 dCBpdCBpbiB5b3VyIHVzZXIgc2Ny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CTEVDTElDS10pIGJlZm9yZSByZS1ydW5uaW5nIHRoaXMgc2NyaXB0IGR1 cmluZyBkZWJ1Zw0K
-
@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:
-
Double clicking a word or highlighting a few words by pressing and moving cursor changes nothing. No code change.
-
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-TX I am a hardware engineer and use Notepad++ to write VHDL coding. The most used functions are to search next and search back to make sure that any signal is properly used in any places. Textpad I used before has the design and when I turned to Notepad++, I immediately has the bad feeling about lacking the function. I think the code for the addition of F3 new function changes a little and everything is there: Pressing F3 moves the highlighted words into target buffer if they exist, and remains are unchanged.
-
@W-TX said in Double clicking over a word function works great, but it can be much greater than ever:
; if words are highlighted, then the highlighted words becomes new search target.
That would still break my workflow – it’s changing the search target with my permission. F3 means “next of the current search”, not “change the search value and then find next”. If you want to change the search target in the same keystroke as find-next, then use Ctrl+F3 (you don’t need double-click). If you don’t like hitting Ctrl, then change the shortcut as has been described.
I’ll give a hint: you might find what’s hidden in BASE64 to be of interest.
-
@PeterJones said in Double clicking over a word function works great, but it can be much greater than ever:
If you want to change the search target in the same keystroke as find-next, then use Ctrl+F3 (you don’t need double-click)
You cannot do it as you show when highlighted are words, not A word. You have to use Ctrl+F to bring up the find window! With my suggestion, you never have to do it.
You said that it still change your workflow. It does not! If you do not highlight anything, nothing changes. If you highlight anything and press F3, then it changes.
-
@W-TX said in Double clicking over a word function works great, but it can be much greater than ever:
If you highlight anything and press F3, then it changes.
Then that breaks my workflow. I don’t want highlighted text to change the search target when I hit F3. What if I have searched for XXX, then highlighted YYY for some other reason, then hit F3 to find the next XXX: with your description, it will try to find YYY instead. That’s not what I want.
I am not going to argue this anymore. Just because it doesn’t bother you doesn’t mean it won’t bother anyone else.
-
Pj4+IE1FTlVDT01NQU5ELnZhbHVlc1s0MzA0OF0NCk5wcC5NRU5VQ09NTUFORC5TRUFSQ0hfU0VUQU5ERklORE5FWFQ