Initialize Find TextBox with word at cursor location

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

Add feature to initialize the Find textbox with the text at the current cursor location when no other text is hightlighted.

Would use a lot.
2
12%
Would use occasionally.
5
29%
Would use infrequently.
3
18%
Would never use.
7
41%
 
Total votes: 17

melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Initialize Find TextBox with word at cursor location

Post by melvers »

When the Find or Replace button are selected the Find textbox is initialized with the currently selected text. However, if no text is selected then no initialization happens (the previous entry is maintained). I would like to suggest that when no text is selected that the Find textbox get initialized with the word at the current cursor location. Perhaps it could be a configurable option to use the previous text or the text at the cursor location.
SamuelReynolds
Posts: 9
Joined: Tue Dec 28, 2004 10:55 pm
Location: Colorado
Contact:

Post by SamuelReynolds »

You forgot "would make me stop using TextPad"!

The way it works now works very well for me. If I've selected a word, it becomes the search word, and I don't even have to do a Find--just Find Again. If I then make a nearby edit, I need only hit an arrow key (to make sure nothing is selected) and Find Again (ctrl-G in my keyboard mapping) to go to the next occurrance. With your "enhancement" this would, instead, search for whatever word the cursor happened to be in--most likely not the next occurrance of my previous search.

No thanks!

- Sam
bdw
Posts: 7
Joined: Wed Jan 12, 2005 12:38 am

RE: Initialize Find TextBox with word at cursor location

Post by bdw »

I can see what SamuelReynolds means about doing Find Next with a keyboard shortcut, but melvers is talking about what should happen when the Find/Replace dialog is opened - and this usually implies the user wants to make changes to the search criteria. I don't see any reason why the Find Next behaviour cannot be maintained until the user re-opens the dialog. In any case, if this was a configurable option (as melvers suggests) it could hardly be taken as a reason to "stop using TextPad", since you could just switch it off.
bdw
Zaippa
Posts: 9
Joined: Wed Oct 08, 2003 4:30 pm

Post by Zaippa »

This would be an extreamly annoying feature - usually i don't want to search for the word under the cursor. Often i want to search again for what i just searched for before.

Thus it would be extreamly annoying if textpad started to initialize the search-field. (i would have to write what i just wrote once again, or have to open a new document and paste what i want to search for and copy/paste it back into the search field each time i want to do a search...)

[edit] yeah, ok - i could use the cursor-down key aswell :) But still [/edit]

Also - what's wrong with selecting the word(s) you want to search for, if your cursor by coincidence is close to those words?
Clutchplate
Posts: 2
Joined: Tue Feb 15, 2005 3:20 am

Post by Clutchplate »

The lack of being able to search for the word under the cursor is my single biggest annoyance with TextPad. :D

While I don't agree with the initial suggestions, do it like Visual Studio, make it an extra hotkey (Ctrl-F3 in VS). That way if you want to continue searching just use F3, but to change use Ctrl-F3. I find myself using Ctrl-F very infrequently.

Please at least add a new hotkey that supports this!

Regards,

- Clutchplate
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Do it yourself - see how to in the other thread:
http://www.textpad.info/forum/viewtopic ... 65d7#20447
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Post by melvers »

Its been a while since I posted this, but my suggestion was only to initialize the Find dialog when opening the dialog, not to replace text that is already in an open dialog.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

The post that MudGuard referred to (7 years ago!) can be found here: http://forums.textpad.com/viewtopic.php?p=20447#20447
Post Reply