Skip to content

Default Find option #2606

@Paxtez

Description

@Paxtez

The default find value logic is strange.

  1. If text is highlight -> CTRL + F = Highlighted text is entered (as long as it is only one line)
  2. If the cursor is within a word, it will suggest that word
  3. If the cursor is before or after a word it will suggest that word
    [Good so far]
  4. But if the cursor is before or after non-word characters it will suggest one of those characters
    4b. So if you cursor is at the end of line that has anything it it, it will almost always suggest one of: [ ( ) ; } { ], etc.
  5. It if can't find anything (multiple lines highlighted, or cursor on blank line) it will suggest the last COMPLETED search result
    5b. So if you search for "Foo" and it finds it, then search for "Bar" (which is not in the document), and it clears the highlighting, if you CTRL+F from a blank line it will suggest "Foo" and not "Bar"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions