Skip to content

Feat: Option to auto-clear or auto-select search input text on launcher open/show #661

Open

Description

@keithwhyman

When using SuperCmd v2, the text input field retains its previous search query when the window is hidden and reopened, rather than clearing or selecting the previous text.

For quick typing workflows, this results in broken search phrases. For example:

  1. I press Option + Space and type di to open an app (e.g., Discord).
  2. The launcher hides.
  3. Later, I press Option + Space again and type ta to open TablePlus.
  4. Instead of searching for ta, the input field contains diata because the previous state was not reset or highlighted.

Proposed Solution

Please add a setting toggle (e.g., "Reset Search Bar on Open" or "Select All Text on Open") in the Preferences panel. When the launcher window gains focus, it should either fully clear the React state string or natively select() all text in the main input element so that subsequent typing immediately overwrites the old query.

Environment

  • OS: macOS
  • App Version: SuperCmd v2 (Electron + React renderer)

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions