Editor Replace & Origin / Annoying Search autocomplete |
Site Admin
|
I believe different normal programmers do this differently, or I myself is not a normal programmer at all. After all, how would an editor guess what programmer wants to do? For example, you might want to select some text and start searching for this text in whole the document. |
||||||||||||||
_________________ The PHP IDE team |
|
I think the way this is very nicely implemented in PSPad
If nothing is selected the Scope control is disabled (quite logically since no text is selected there is no option) If a single line text is selected then it is proposed as 'Text to find' and Scope is set to Global (cause it doesn't make much sense to search for something in that particula something does it) Until here it's pretty much the same as PhpED, but here is the modification: If a multiline text is selected then last search is kept as 'Text to find' and Scope is set to Selected text. This is something which wouldn't interfere with existing PhpED behaviour, since it doesn't search for multiline text anyway - that is - if i select a multiline text i can't use the whole selection as 'Text to find' anyway - therefore, we should be pretty safe to assume that i did select some text in which i want to search (cause i can't search for it, so there is no option). And if that is the case - it doesn't make much sense to use the first line of selected text as 'Text to find' Regards, Ondrej |
||||||||||||
|
Editor Replace & Origin / Annoying Search autocomplete |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by