Author Topic: Find Symbol...  (Read 2657 times)

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Find Symbol...
« on: August 30, 2021, 01:15:04 AM »
Hi

I am seeing that the Find Symbol window behaves as if Match Substring is checked even tho it is not.

What did I do wrong?

Please/Thanks

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Find Symbol...
« Reply #1 on: August 30, 2021, 04:53:23 AM »
which version / edition of slickedit - beta 2?, and which OS.

If it's not the beta, then when did the problem start - has it always done it?

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Find Symbol...
« Reply #2 on: August 30, 2021, 02:20:37 PM »
Could you provide an example?

If you are using a pattern matching, like a regex, that will imply substring matching (unless you put ^ at the beginning of the regex)

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #3 on: August 30, 2021, 11:50:50 PM »
SE 25.0.2.0

This is a new installation on a new machine, and I imported the options/settings from another machine. This does not happen on the other machine.

I had to blur out some of the details.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Find Symbol...
« Reply #4 on: August 31, 2021, 12:05:27 AM »
Heh, some of the most interesting stuff is blurred out there. 

1) Is the blurred out text in the search string the same as the blurred out text in the matches?

2) Are all the prefixes in the blurred out text in the matches the same?

3) Since there appear to be no classes involved, does this still happen if you uncheck:

     [  ] Match package/class and name

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #5 on: August 31, 2021, 02:59:28 AM »
Heh, some of the most interesting stuff is blurred out there.  [
/quote]
LoL, but of course ;)

Quote
1) Is the blurred out text in the search string the same as the blurred out text in the matches?
Yes, same (the xxx in xxx_10x_load).

Quote
2) Are all the prefixes in the blurred out text in the matches the same?
Yes, same (same as 1. above).

Quote
3) Since there appear to be no classes involved, does this still happen if you uncheck:
     [  ] Match package/class and name
Yes, I unchecked this and it still happens.

Thanks.
« Last Edit: August 31, 2021, 03:03:13 AM by joecar »

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Find Symbol...
« Reply #6 on: August 31, 2021, 01:12:48 PM »
The Find Symbol tool window always does a prefix match.  Were you expecting the longer names to be filtered out?

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #7 on: August 31, 2021, 06:05:41 PM »
Ah, I see... I must have forgotten that it does a prefix match.

What I'm running into is that there are hundreds of symbols with the same prefix... I can check Match Substring and type in the portion of the name after the prefix.

Thanks.

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #8 on: August 31, 2021, 08:47:37 PM »
It maybe may be easier if it had an option/button to limit to an exact symbol match.




Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Find Symbol...
« Reply #9 on: August 31, 2021, 08:59:25 PM »
Because of the incremental style of that dialog's searching, it kind of needs to always do a prefix match.  You can't type the whole word without typing the prefix first.  This way it guides you along, otherwise, you wouldn't get anything until you had a whole word match.

However, you could do a regular expression search and surround it with ^ and $ to force word boundaries.

Also, if you keep the list sorted by symbol name, exact matches will always be at the top.

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #10 on: September 01, 2021, 12:04:43 AM »
Ah, very good points. I like the ^$ regex solution. Thanks   :)

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Find Symbol...
« Reply #11 on: September 01, 2021, 12:09:36 AM »
And I appreciate the time/effort you all take in answering my posts.

Thanks for a really great editor, I use it for everything !!