-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser's "Choose class" dialog does not work with exact searches #17140
Comments
I agree with wanting to get the class Object and not the class CmObject when looking for “Object”. But in the demo in NewTools pull request #845 it seems you would still need to select the ‘exact’ option for that. Whereas in Pharo 12 there’s no need for an extra click: you get Object when you type “Object” and just press the return key. A problem in Pharo 12 though is that it’s not always clear whether there’s an exact match or not: issue #13720. That could be solved by scrolling the list to the exact match when there is one, or by putting it first in the list. The ‘ok’ button should probably also be disabled when no class is selected. |
Thanks for the feedback. I will try to implement your suggestions in another PR |
I updated the PR in pharo-spec/NewTools#845 to handle auto-selection when the typed class exists. |
So do we close this issue? |
Already integrated, so I closed it |
Thanks! A few comments I still have though:
|
@hernanmd may be better to open another issue. |
@hernanmd: I was wondering whether you’ve opened another issue as suggested above? The last point, about the RegexSyntaxError, should probably be handled at least. |
@Rinzwind the error belongs to Spec, so I opened an issue there (working on a PR now) |
@Rinzwind Please open issues in the Spec repository, so people can discuss it there. For the Regex bug I sent a PR pharo-spec/Spec#1635 |
Bug description
The new "Choose class" dialog implemented in
ClyFindClassCommand
does not do exact matches, and there is no way to tell that I want to search using exact matches.For instance, If I write "Object" I want "Object" and not "CmObject" :)
To Reproduce
See the following video:
2024-09-19.23-43-43.mp4
Expected development cost
There is already an implementation of multiple types of matching in the NewFinder. It could be refactored in a new package to be used in the Choose class window. That would need a PR in NewTools so it can include the refactored package.
The text was updated successfully, but these errors were encountered: