Skip to content

Spotlight: Automatically select previous query when 'remember last query' is enabled #2617

Description

@Legend-017
Video_2026-06-11_16-03-46.mp4

Problem

When the "remember last query" option is enabled in DMS Spotlight, the previous search query is shown on launch. However, the previous query is not automatically selected by default. This means that if a user wishes to enter a new query, typing will append to the end of the previous query rather than replacing it. As a result, users need to manually delete the previous query before entering a new one, which adds an extra step and reduces efficiency.

Comparison

Other applications, such as KDE's KRunner, automatically select the previous query by default. This allows users to immediately start typing a new search query, replacing the previous one without needing to delete it manually.

Steps to Reproduce

  1. Enable "remember last query" in Spotlight settings.
  2. Launch Spotlight and observe the previous query field.
  3. Try entering a new query (it appends instead of replacing).
  4. Manually delete the previous query before typing a new search.

Suggested Solution

Update Spotlight so that, on launch, if the previous query is displayed, it is auto-selected, allowing immediate replacement upon typing. This should match the behavior of KRunner and similar launchers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions