Find and Replace with nothing does not work. Requires a space to get it to work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Find and Replace with nothing does not work. Requires a space to get it to work

Squeak - Dev mailing list
Hi folks,

Just an FYI

I have a very long test (don't ask) in my PEG Grammar for a long rule.

I am attempting to find and replace


actor transcripton: false.

Note the empty line above the "actor transcription: false"

If I do a Find and Replace  on this, I cannot just leave the "replace" dialog empty. 
I must enter at least one space character to get it to do the job.

cheers,

t



Reply | Threaded
Open this post in threaded view
|

Re: Find and Replace with nothing does not work. Requires a space to get it to work

marcel.taeumel
Hi Timothy!

Sorry for that inconvenience. Short workaround would be for you to select the piece of text, then delete it. Then hit [cmd]+[j] (or [alt]+[j]) to do that over and over again. That's the "inline find/replace" feature. :-)

The reason for your issue is that our UIManager does return an empty string if the user cancelled the input request. We should change that to nil. At the moment, TextEditor treats those empty strings as cancellation of the find/replace request.

Best,
Marcel

Am 14.04.2020 22:33:48 schrieb gettimothy via Squeak-dev <[hidden email]>:

Hi folks,

Just an FYI

I have a very long test (don't ask) in my PEG Grammar for a long rule.

I am attempting to find and replace


actor transcripton: false.

Note the empty line above the "actor transcription: false"

If I do a Find and Replace  on this, I cannot just leave the "replace" dialog empty. 
I must enter at least one space character to get it to do the job.

cheers,

t