SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: link on November 06, 2014, 08:35:43 pm

Title: Find Symbol selection
Post by: link on November 06, 2014, 08:35:43 pm
In v18, when I brought up the Find Symbol dialog, it highlighted the previous search text making it easy to replace it with a new term.  In v19 (up to RC4) the text box still has focus by default but no longer highlights the existing text.  Is this intentional?
Title: Re: Find Symbol selection
Post by: Rodney on November 06, 2014, 09:03:57 pm
Looks like a bug.

++rodney
Title: Re: Find Symbol selection
Post by: machish on December 11, 2014, 05:12:39 pm
I had assumed that this bug fix barely missed 19.0.0, so I've been patiently waiting for the next release. Unfortunately, 19.0.1.1's Find Symbol window still behaves the same way.
It is annoying to have to do 'Find Symbol', highlight the entire phrase, and then start typing. I'm much more programmed to start typing, and then see that there is annoying suffix of the previous search string messing things up...

-martin
Title: Re: Find Symbol selection
Post by: Rodney on December 15, 2014, 07:17:23 pm
Sorry, but this fell through the cracks. Good news is that it will be in the first 19.0.1 hotfix due out shortly after 19.0.1 is final.

In the meantime, if you are comfortable with Slick-C, you can hack this in yourself:
In macros/se/ui/toolwindow.e, around line 1807, change:

Code: [Select]
            focus_to_wid._set_focus();

to:

Code: [Select]
            if ( _get_focus() != focus_to_wid ) {
               focus_to_wid._set_focus();
            } else {
               focus_to_wid.call_event(focus_to_wid, ON_GOT_FOCUS, 'w');
            }

Save and load the module (Macro>Load Module).

++rodney
Title: Re: Find Symbol selection
Post by: machish on December 16, 2014, 12:29:33 am
Thanks Rodney! That's great! (Also the first time I edited slick-c ;).