NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[5916] Search -> Selected text


Joined: 23 Nov 2006
Posts: 48
Location: Netherlands
Reply with quote
when selecting a text and then ^ f by default for Scope the option "Selected text" is checked instead of Global.

this is a bit useless cause i know that the text i selected is in the selected text ....

can this option be set to Global by default when selecting a text and pressing ^ f.

thnx in advance

_________________
MV
View user's profileFind all posts by MacVatoSend private messageVisit poster's website
Veteran

Joined: 02 Sep 2007
Posts: 112
Location: Kiel, Germany
Reply with quote
Please not, as I often just want to replace something within the selected area. I find it more intuitive the way it is now. Maybe this could be made optional in the editor settings?

Cheers,
Jan
View user's profileFind all posts by EnigmaSend private message


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
+1 for the old way when scope had to be changed manually. I think it was changed in 5.9 and it's been annoying me ever since because I'm used to quickly select something I want to replace, type in the replacement and press alt+a.

I think a good solution for this situation would be to change scope to "selected text" only when multiple lines are selected since this is usually the way everyone uses this feature. What do you think?
View user's profileFind all posts by bartheqSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
I like the way it is now.

I think bartheg's suggestion may be a viable alternative though.
View user's profileFind all posts by simshaunSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
[quote="bartheqI think a good solution for this situation would be to change scope to "selected text" only when multiple lines are selected since this is usually the way everyone uses this feature. What do you think?[/quote]

Similar, I think that best solution is simpliest: if any text is selected, then search in selected scope otherwise global scope. That schould solve every problem.
Greets.

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
intro wrote:
if any text is selected, then search in selected scope otherwise global scope. That schould solve every problem.
Greets.

but this is the way it's working now (:

what's the point of selecting something to find and automatically changing the scope only to this selection? if you select a larger part of the file in which you want to find something, this is where my idea works. same goes to the replace dialog and a situation I mentioned.
View user's profileFind all posts by bartheqSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
Yes, sometimes it is really uncomfortable, but I found that if I use Ctrl+C then Ctrl+V ... it is ok. Sometimes there is really needed to find something only in selected text.

But. If there is an old way, it will be really the same becouse now, You must select "Global scope" often or You must select "Selected scope" (but yes, only sometimes).

Better option would be research text from begining of the file after searching reaches end of the file.

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Actually this is what I think would work best.

If you select anything, and press Ctrl+F (Find only), the selected text is entered into the text to find, and global scope is selected.
If you select anything, and press Ctrl+R (Find and replace), the selected text is entered into the text to find, but the selected text scope is selected.

I just now realized this is probably what the OP meant, so he is correct, and I +1 the request.
View user's profileFind all posts by simshaunSend private message


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
simshaun wrote:
If you select anything, and press Ctrl+R (Find and replace), the selected text is entered into the text to find, but the selected text scope is selected.

and what if you want to replace the text you just selected in the whole file?
View user's profileFind all posts by bartheqSend private message
Veteran

Joined: 02 Sep 2007
Posts: 112
Location: Kiel, Germany
Reply with quote
Everyone has his own way of working with this function, so we'll never find an optimal behavior for the search/replace function that matches everyone's needs. That's why I proposed a more flexible solution by making this configurable.

Cheers,
Jan
View user's profileFind all posts by EnigmaSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
bartheq wrote:
simshaun wrote:
If you select anything, and press Ctrl+R (Find and replace), the selected text is entered into the text to find, but the selected text scope is selected.

and what if you want to replace the text you just selected in the whole file?
Then you choose Global. I'm only talking about what is selected by default, not removing anything from the dialog.
View user's profileFind all posts by simshaunSend private message


Joined: 17 May 2007
Posts: 10
Location: Adelaide Australia
Reply with quote
Everyone may have their own way working with the find function, but for me, at least, this is a significant degredation of usability.

Please may i ask when you make a change like this, that could affect usability, that you either

a) Describe it in the change log, or
b) Make it an option to switch back to the previous behaviour.

This is causing me a lot of grief, and I am stuck with it unless i go back to a previous version.

Just for the record i think in the 2 or three years we have been using PhpED i think i have done a find in a selected block of text only once or twice.
View user's profileFind all posts by ABoolsSend private messageVisit poster's website
[5916] Search -> Selected text
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic