Problems with textarea search
There are two problems with searching within textarea elements, making searching and editing quite frustrating:
-
After pressing F2/F3 (find previous/next) the addon moves the focus to the search bar instead of positioning the cursor in the textarea (after the found fragment, as the regular search does).
-
If the textarea content is edited, the addon apparently uses the old content for all previous/next matches. Namely, it highlights positions where the matches could be found initially, even if they have moved or are no longer present. Turning "Regex" option off/on updates this, but then the addon stars matching from the very beginning (and thus can scroll the screen, for example) instead of continuing from the current position. If the focus and cursor position were respected, this would probably be a minor problem. (Well, and perhaps the addon could check upon invoking a previous/next match whether the content of the textarea has changed...)
Hi. Please check the new version 1.2.1. It should put the focus to the text inputs (textarea) when text is found so you may type another text directly to replace selected content or use arrows for navigation. Also it should now work better with dynamic content changes (at least within textarea or text fields). Try it and tell me if you have any errors.
It has now new version scheme, check the updated description on the addon page. Select v1.2.1-45, -50 or -55 according to your Firefox version. These are in the Version History section.
Thank you for your contribution.
Thanks! Now it seems to work much better. However, the very first search (either by Ctrl+F, Alt+X or F3, Alt+X) leaves the focus in the search field and does not highlight the match at all (although the textarea is scrolled to the matching position).
And you probably need to update the description (it still says "doesn't search in ... textarea"). :–)
Hi. Finally can dedicate some time to my other projects. What do you mean "first search"? I guess I would need an exact sequence of steps here. And also browser version. Do you perform that search with Regex after searching in normal mode, do you search in a plain text or in a textarea?