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
Recover search string after accessing search history #14174
Comments
From someone who has fat-fingered the down key when I meant to hit left/right, this issue seems reasonable. |
Do we have any similar request? If not, I prefer to not implement it. |
I have seen it at least once before, either here or more likely on the Community support site. |
There are two parts here:
As you understand. |
But this would require the text in the Find what box to be entirely selected first, and this would be rather a rare event for the user to find himself in. |
The OP has put forth a simple solution to a real problem. I like it; I like its simplicity. I like its unobtrusiveness to the user (no additional options/settings/controls). Having an "undo" for changes on Find what would also suffice, but this would necessitate a lot of code/change, AFAIK. |
You can also Undo. :) |
Another minor point: Currently (master) the user can easily know if a search has been executed for the term in "Find what". |
One would think that a user that has a fat-finger moment will remember it when he is saved by this feature, and will be sure to mentally note that one of the entries in the history is "unexecuted". And he'll be really glad to do so. |
I 👍 your PR, and I'm not retracting it. :) |
@donho Would you share some info on your reluctance with it? Do you think the issue is not relevant or do you think the proposed solution has some flaws? I consider the issue to be an annoyance, but maybe my proposal could be improved. Edit: After some back and forth, I have rephrased the whole issue to make it clearer that it's not necessarily about the history, but more about retrieving an unfinished search text. Sorry for the mess. |
@donho I created a PR that does what I initially wanted and takes into account your comments. Feels natural and the code changes are minimal. |
@donho After your revert, I created a new PR that addressed the bug found by @alankilborn. |
Description of the Issue
I think it would be store the contents of the search line edit, in case someone accidentally presses the down key while writing a search term.
Tested in 8.5.2
Current Behavior
This can be pretty annoying if you try to write a complex regex term only to accidentally hit arrow up instead of arrow left so you have to start over.
Expected Behavior
The text was updated successfully, but these errors were encountered: