Skip to content
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

Default Find option #2606

Open
Paxtez opened this issue Jan 6, 2025 · 0 comments
Open

Default Find option #2606

Paxtez opened this issue Jan 6, 2025 · 0 comments

Comments

@Paxtez
Copy link

Paxtez commented Jan 6, 2025

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants