Skip to content

Problems with textarea search #15

@MikhailRyazanov

Description

@MikhailRyazanov

There are two problems with searching within textarea elements, making searching and editing quite frustrating:

  1. 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).

  2. 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...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions