Skip to content

Search when invoked should get prefilled from the currently selected text #1729

Closed

Description

@hrvojegolcic

Description

Unlike the global search (Ctrl+Shift+F) the local search (Ctrl+F) when invoked gets prefilled from the currently selected text as a search query.

I don't know if the behavior is intentional but in my opinion the global search should also get prefilled from the currently selected text.

  • Can you reproduce the issue?

Steps to reproduce

  1. Select some text within the current document
  2. Press Ctrl+Shift+F to invoke the global search
  3. The global search sidebar appears

Expected behavior:

The search query input field should receive the focus.
The search query input field should be prefilled from the currently selected text, similarly how the local search is implemented.

Actual behavior:

The search query input field is not focused nor prefilled.

Versions

  • Mark Text: 0.15.x and 0.16.x
  • Operating system: Win 8.1

Activity

  1. added
    🦋 optimization
    on Nov 24, 2019
  2. MaanasArora commented on Feb 6, 2020

    @MaanasArora

    Can I work on this issue?

  3. Jocs commented on Feb 6, 2020

    @Jocs
    Member

    @MaanasArora Yes, you are always welcomed to make PRs.

  4. Ricardo-HE commented on Jun 2, 2020

    @Ricardo-HE

    @MaanasArora Did you manage to solve the issue? If not I would like to work on it as well :)

  5. MostFrabjous commented on Jul 29, 2020

    @MostFrabjous

    As of v16 (see #1311) the search box is prefilled with currently highlighted text in global search. But the box is still not focussed. And I'm not able to unfocus/return on hitting 'Esc'

  6. MostFrabjous commented on Jul 29, 2020

    @MostFrabjous

    I added the more specific issue #2294 for the unimplemented parts of this issue. So I think this issue may be closed.

  7. added a commit that references this issue on Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐮 good first issue🦋 optimization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions