-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Search -> Find text only works for Editor #22453
Comments
FWIW, I don't reproduce this, I can |
That's right, I can't reproduce it on Linux either. So, it seems this is a Mac only problem. @mrclary, could you take care of it? Thanks! |
How did you try to enable the search widget before? |
Using cmd-f while the console has focus. |
Ok, but now you're unable to reproduce this problem? |
Incorrect. The problem is still reproducible. The correct behavior is restored only for the current Spyder session. If Spyder is restarted, then the issue manifests again. Perhaps related is that the Search menu items are greyed out, even after the correct behavior is restored. "Replace text" and "Go to line..." should certainly be context dependent (greyed out for IPython Console), but shouldn't "Find text", "Find next", and "Find previous" be selectable for any widget that supports the Search widget? |
Not sure if an issue exists about that but maybe creating one could be worthy 👍🏼 An initial idea that comes to mind to enable the menu actions to do something like that is to create a plugin that encapsulates the find/replace widget. I would say that as a minimum that plugin should be the one registering the relevant actions over the Search menu and be able to manage the logic necessary for the find/replace actions to trigger the relevant callback depending on the current focused widget (if the focused widget supports using/has a find/replace widget). That minimum logic probably would be similar to what the Editor does currently for the actions over the Edit menu: spyder/spyder/plugins/editor/widgets/main_widget.py Lines 1224 to 1272 in 3fd21ee
|
Yeah, please do @dalthviz. We really need to fix that.
I haven't thought about that but sounds like a good idea. But I don't see clearly what the relationship between that plugin and the find/replace widget would be. |
What I initial though was kind of moving that widget definition to be part of a FindReplace/Search plugin. To be more specific, move the widget definition from |
Description
What steps will reproduce the problem?
In Spyder 5, the user could search for text in other panes, e.g. IPython Console, but now this is only allowed in the Editor pane.
Using the keyboard shortcut cmd-F always changes the focus to the Editor pane and opens the find toolbar in the Editor, rather than in the currently focused pane.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: