Skip to content

Add quick launcher (Ctrl/Cmd+K) - #1622

Open
opdx0 wants to merge 1 commit into
linuxserver:2.xfrom
opdx0:feat/quicklauncher
Open

opdx0 wants to merge 1 commit into
linuxserver:2.xfrom
opdx0:feat/quicklauncher

Conversation

@opdx0

@opdx0 opdx0 commented Nov 1, 2026

Copy link
Copy Markdown

Adds a quick launcher: press Ctrl+K (Cmd+K on Mac) on any page, type a few letters, hit Enter to open the app. On touch devices a small button in the bottom-left corner opens it.

The current homepage search only filters tiles that are on the page, so unpinned apps and apps in other tags can't be found from the keyboard.

  • Matches on title, then tags, then URL. Arrow keys and Enter to open, Esc to close.
  • With nothing typed, it lists recently opened apps first (kept per user in localStorage), then everything else.
  • If a web search provider is set up for the homepage search, it adds a "Search Google for ..." row.
  • Links open the way the user's "Link opens in" setting says.
  • It doesn't show on the login pages, on a public-front dashboard until someone logs in, or while reordering tiles.
1-empty-query 2-typed-title 3-typed-tag 5-touch-button

How it works

A new GET /search/items endpoint returns the current user's apps as JSON. It uses the allowed middleware, so password-protected users are covered, and it respects roles mode. The overlay is quicklauncher.js plus a Blade partial, and the styles and English strings go in the existing _app.scss and lang/en/app.php.

Two small refactors came along with it:

  • User::isOpenToVisitor() holds the "no password, or already logged in as this user" check that CheckAllowed had inline. The middleware behaves the same as before.
  • Item::icon_url replaces the icon path logic in item.blade.php.

public/build isn't touched.

Things you may want to change

  • In roles mode the launcher filters by role strictly. The dashboard is looser in tags and categories modes, so the launcher can list fewer apps than the dashboard there.
  • Ctrl+K also works inside text fields, and it takes over the browser's own Ctrl+K (Firefox's search bar, for example). I checked that it opens the launcher in Firefox. The key is a single check in quicklauncher.js.
  • With nothing typed, the list shows every app, however many there are.
  • Only English strings are included. Other languages fall back to English.

Tests

15 new feature tests in tests/Feature/SearchItemsTest.php cover per-user scoping, pinned and unpinned apps, tags, the password gate, roles mode, icon URLs, link targets, the web search row, and where the launcher does and doesn't render. The full suite passes (183 passed, 1 skipped as before) and npm run lint is clean.


I've used Heimdall for years and I found myself hunting for the right tile more and more as my dashboard grew, thus this PR. Happy to change anything to fit how you'd like it done, or if it takes things in the direction you don't want to go, that's fine too. Thanks for all your efforts!

Adds a keyboard-driven overlay that searches the user's apps by title,
tag and URL, shows recently opened apps first, and offers the configured
web search provider as a fallback. A floating button opens it on touch
devices.

Items come from a new GET /search/items endpoint behind the allowed
middleware, scoped to the current user and to roles when roles mode is
on. The launcher is hidden on auth pages and on public-front dashboards
until the visitor is logged in.
@opdx0
opdx0 marked this pull request as ready for review November 1, 2026 05:46

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant