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
Enhance Find Dialog: display extra info in the status bar #14347
Conversation
|
||
warningMsg += sep; | ||
warningMsg += reasonMsg; | ||
reasonMsg = pNativeSpeaker->getLocalizedStrFromID("find-status-cannot-find-pebkac-maybe", L"The given occurence cannot be found. You may have forgotten to check \"Wrap around\" (to ON), \"Match case\" (to OFF), or \"Match whole word only\" (to OFF)."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the introduction of pebkac
into the code! :-)
I tested this. For Find Next and Find Previous, it appears to be working well. It needs to be extended to command button presses that initiate these types of search actions:
The message should appear and should be changed to NOT mention Wrap around for these:
|
The initial scope of issue #14307 was just to prevent user from ignoring "Wrap around". As a result, I will consider it, in the future, if there are enough PEBCAK reports coming for Find/Replace All (and other) commands. |
I wonder if it is difficult. I mean, I'd think most search paths lead to a common point or two (where the error bubble could be put up)... |
Also add range info to Find & replace 0 matches info.
If someone (@alankilborn ? :) ) is willing to work on the other inconsistencies (red/blue color, beep, flash) in a separate PR? |
I don't know...there has to be more interesting things for me to try my hand at, than that... :-D |
Retracting. :) |
There's no inconsistency here for me :) |
@@ -1666,6 +1666,7 @@ Find in all files but exclude all folders log or logs recursively: | |||
<find-status-replace-not-found value="Replace: no occurrence was found"/> | |||
<find-status-replace-readonly value="Replace: Cannot replace text. The current document is read only"/> | |||
<find-status-cannot-find value="Find: Can't find the text "$STR_REPLACE$""/> | |||
<find-status-cannot-find-pebkac-maybe value="The given occurence cannot be found. You may have forgotten to check "Wrap around" (to ON), "Match case" (to OFF), or "Match whole word only" (to OFF)."/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"occurence" -- shouldn't it be spelled "occurrence", i.e. 2 x "r" ?
Fix #14307