ZeroLaunch-rs:基于 Rust 的 Windows 智能启动器项目

🚀 A lightning‑fast, privacy‑first Windows smart launcher that excels at Pinyin and fuzzy matching — typo‑tolerant and instant. Built with Rust + Tauri + Vue! 🚀一款极速、隐私优先的 Windows 智能启动器,精通拼音与模糊匹配,错字搜词秒速直达。基于 Rust + Tauri + Vue 构建!

Branch6Tags63
FilesLast commitLast update
4 months ago
19 days ago
6 months ago
2 days ago
4 months ago
2 years ago
12 days ago
2 days ago
1 year ago
2 years ago
2 days ago
1 day ago
2 months ago
19 days ago
1 month ago
1 year ago
2 years ago
28 days ago
4 months ago
11 months ago
1 month ago
2 days ago
2 days ago
1 year ago
1 year ago
1 month ago
12 days ago
12 days ago
12 days ago
2 months ago
2 months ago
4 months ago
2 months ago
2 days ago
4 months ago
14 days ago
1 year ago
2 months ago

简体中文 · 繁體中文 · English

ZeroLaunch-rs: type fast, mistype, still launches. Illustrated: typing a scrambled word like chorem in the search panel, Chrome still ranks first.

License: GPL-3.0-only Platform: Windows Built with Tauri 2, Rust and Vue Latest release GitHub stars Gitee stars

ZeroLaunch-rs is a keyboard launcher built for Windows.
For people who live on the keyboard: press Alt+Space to bring it up, type a few letters, Enter to launch;
typo while moving fast? No problem — the thing you're after is probably still at number one.

GitHub · Gitee

Download the latest version

Typos still hit · Up in 60 seconds · What you can search · Core capabilities · How it works · Extend · Contribute

Typos still hit

If you type fast, you've probably hit this failure: you mean to search chrome, your fingers slip and type chorem, and the list comes up empty — not a single one of the apps you have installed shows up.

ZeroLaunch-rs's default matching algorithm is built for exactly this. It scores every result three ways: how many letters differ from what you typed, whether the letter combinations look alike, and whether the first and middle letters line up. Off by one or two letters, or two letters swapped, and the score only drops a little instead of falling to zero.

chorem and chrome differ by a single adjacent letter swap, so in that case the top result is still Chrome. Here's what it looks like in practice (recording: first searching ch and stea normally, then scrambling chrome into chormfe and vhcomre):

ZeroLaunch-rs screen recording: first searching ch and stea normally, then scrambling chrome into chormfe and vhcomre; both times the top result is Google Chrome. (the recorded UI is in Simplified Chinese)

No accuracy percentages — misspell one letter, press Enter once and see for yourself.

Up in 60 seconds

  1. Install: grab the .msi whose filename contains x64 from Releases and double-click through it (only ARM laptops need the arm64 one).
  2. Or use the portable build: download the ZeroLaunch-portable-… .zip whose filename contains x64, unzip it, and run the exe inside.

Using it is three steps: press Alt+Space to bring it up → type a few letters → Enter to open. The first result is selected by default, so those three steps are all you need.

Your data lives in C:\Users\<your-user-name>\.ZeroLaunch-rs\ (the portable build keeps everything next to the exe); nothing about your usage is uploaded, see PRIVACY.md for details; if you don't want it, delete that folder and uninstall.

Full manual: every key

Bring up and dismiss

Key What it does
Alt+Space Brings up the search window. This is the default; you can rebind it in settings, or switch it to "double-tap Ctrl".
Esc If the input box has content, clears it; when empty, dismisses the window. With "ESC hides first" enabled in settings, it always dismisses.
In a panel
Esc
First leaves the panel back to normal search; press again to dismiss.

Search list

Key What it does
↓ / ↑ Move the selection up and down.
Ctrl+J
Ctrl+K
Also move up and down — the default "select next / select previous" keys, editable in settings; clear both and only the arrow keys remain.
Enter Runs the selected entry.
Ctrl+1…9 Runs the Nth action of the selected entry (number row).
An entry's own shortcut Some entries declare their own shortcut, printed right on the action button — for path and program entries, "Run as administrator" is Ctrl+Enter, and "Wake window" is Shift+Enter; press it to fire that action.
Tab
Shift+Tab
Cycle forward / backward through the selected entry's actions.
Home / End Jump to the first / last entry.
Space Normally types a space; with "Space confirms" enabled in settings it acts like Enter.
Mouse Click an entry to run it directly; click an action button on an entry to run just that action.

Entries that need arguments (a custom command, say)

Key What it does
Enter Confirms the arguments and runs.
Tab
Shift+Tab
With more than one argument, move to the next / previous field.
Ctrl+J
Ctrl+K
Move the selection up and down (here the arrow keys are left to the input box cursor).
Backspace While the arguments are still empty, leaves argument entry.
Esc Leaves argument entry.

In plugin panels

Panel keys are declared by the plugin itself; here are the built-in ones:

Panel Keys
Translation Enter copies the translation (triggers the translation or a retry when it isn't ready); Ctrl+Enter copies the existing translation directly; Esc leaves the panel.
Calculator Enter copies the result (recomputes when there is none); Esc leaves.
Path
URL
Enter opens; other actions (like "Open containing folder") are clicked with the mouse; Esc leaves back to search.

Panel plugins use a "full takeover" model: which keys a panel needs is declared entirely by the plugin, the host only interprets the ones it declared and passes the rest through to it. So when a key does nothing in some panel, that usually means the plugin didn't declare it — that's a problem in the plugin itself, please report it to that plugin's author.

Plugin hotkeys

A panel plugin can carry its own hotkey (for example Ctrl+E): pressed while the search window is already open, it takes you straight into that plugin's panel. It is not registered as a system-wide global hotkey, so you can't press it when the window is closed. When a hotkey collides with another plugin's, only the one with higher priority wins.

One input box takes everything. None of these need a plugin:

What Where it comes from How to use it
Apps Applications installed on the system, including Microsoft Store apps Type the name; Chinese names work too: 微信, chrome
Programs in the Start menu and on the desktop Scans *.exe / *.lnk / *.url in the common and per-user Start menus and desktops by default Type the program name; add more folders under "Program path source" and tune scan depth, patterns and exclusions
Browser bookmarks Auto-detects the Bookmarks file of every profile of Chromium-based browsers (Chrome, Edge, Brave, …) Type a bookmark title; you can also add bookmark files by hand and alias individual bookmarks
Custom commands Name, command and trigger words you add under "Custom command source"; a {} in the command asks for an argument before running Type the trigger word to run it
Custom web pages Name, URL and trigger words you add under "Web page source" Type the trigger word to open it
Built-in commands Shipped with the app 设置 / 刷新 / 注册 / 游戏 / 退出 (or settings / refresh / reshortcut / gamemode / exit)

All of these live under Settings → Search pipeline → Data sources, where each kind can be toggled and configured on its own.

A few other inputs need no setup — they're recognized by shape:

  • Paths: D:\Downloads , "C:\Program Files\App\app.exe" — a trailing space means "this is it".
  • URLs: github.com , same trailing space.
  • Expressions: = 12*8 gives the answer.
  • Command lines: > ping 1.1.1.1 runs it in a cmd window.
  • Translation: fy 你好, tr 你好 or 翻译 你好 (set up a chat model first).

Core capabilities

After you bring it up, it's just an input box. What you type can be "the thing itself" — an app name, a folder path, a URL, an expression; or "trigger word + content", like fy 你好. The former goes to search, the latter to plugins. Note that "trigger word + space + content" is how inline plugins (translation, calculator) work; a panel plugin (like Everything search) doesn't work that way — you pick it in the candidate list to enter the plugin first, then search inside the plugin's own UI (what the two kinds of plugin are is in the collapsed "Plugins" section below).

  • Found means launchable: results open with the system default program, same as a double-click; entries that need elevation also offer a "Run as administrator" action.
  • Typos still find it: get one or two letters wrong, or swap two letters, and the list won't be empty — the thing you're after is probably still at the front.
  • Better the more you use it: frequently used and recently used entries drift toward the front; those records live in their own file, survive restarts, and never mix into your config file.
  • Customize to your habits: aliases, custom commands and URLs, shortcuts, UI language — all done in settings.
  • Everything has a UI: from the summon shortcut, theme colors, and fonts to each plugin's own parameters (which model translation uses, which language it defaults to), every item has a matching control: hotkeys record on press, colors have a picker, paths and fonts have selection lists, numbers have steppers. No config file to open, and if you break something you can restore defaults in one click.
  • One-click log export: "Export logs" on Settings → About packs the current logs into a zip at a location you pick, ready to attach to an issue report.
  • Just ask: "Ask AI" at the bottom of the sidebar opens a dedicated chat page — ask whether a feature exists, where to configure it, or what your current value is. Answers come in two parts (supported? + step-by-step click path / current value + what changes), with jumpable settings attached. It only reads the built-in manual and your current configuration, never changes anything; point it at a chat model (local Ollama or any OpenAI-compatible endpoint) under "AI Assistant" first.
Plugins: the two forms and the built-in ones

Plugins come in two kinds by how they're woken. Inline plugins take over while you type, with results embedded in the search window; panel plugins don't take over input, but become a candidate of their own and, once selected, take over the whole page.

Inline plugins play two ways. One is providing a pipeline component: a plugin can declare that it implements the search engine, candidate source, action execution, scoring rules, or keyword processing kind, standing on equal footing with the built-in components — only one search engine takes effect (chosen by priority), while the rest (sources, executors, boosters, keyword processing) all participate, and each can be toggled in settings. The other is bringing its own interaction: translation and calculator are like this — you type fy 你好 or = 12*8 and the results area switches to its panel, while the search bar stays. Path and URL are recognized by shape, no trigger word needed (see "What you can search" above).

A panel plugin's trigger word only becomes a candidate keyword: type up to the trigger word itself (e.g. just ev — don't append a query after it, or the candidate disappears) and the plugin shows up in the list; after Enter it fills the whole window, leaving no search bar, and you search inside the plugin's own UI from there. Such plugins can also declare a hotkey (active while the search window is open, e.g. Ctrl+E for the Everything plugin) to jump straight in.

The built-in plugins work without installing anything extra, and you can turn off any you don't want individually in settings. Data-source ones (apps, programs, bookmarks, built-in commands, custom commands and URLs) are listed above under "What you can search"; here are only the ones that bring their own UI and take over the results area:

  • Calculator: = 12*8 gives the result directly.
  • Run in cmd: > ping 1.1.1.1 runs that command in a cmd window; the window stays open after the run by default (so you can read the output) and can be set to close automatically in settings.
  • Translation: starts with fy, tr, or 翻译 (a literal Simplified-Chinese keyword), can translate as you type or only on Enter; the first time you use it you need to set up a chat model in settings (a local Ollama or an OpenAI-compatible endpoint both work) — without one, no results.

How it works

Matching pipeline: input → keyword optimization → candidate sources → scoring and ranking → action execution

From pressing Alt+Space to opening the target, there's a pipeline in between: first your input is split into keyword groups, then candidates are collected from various sources, scored by the matching algorithm, combined with your usage habits, and finally handed to the executor to run. Every stage in that pipeline can be swapped wholesale — the search engine, the data sources, the boost rules, the way it executes, whatever.

Default parameters (all adjustable in settings)
  • The matching algorithm has three parts: shortest edit distance, BM25 rarity weighting over character bigrams, and KMP first-character and substring matching.
  • Standard model: BM25 k1 = 1.2, b = 0.3 (app names are short with little length variance, hence lower than the classic 0.75), and the score is then amplified by 3·log2(score+1).
  • Habit boosts: launch history 0.8, recent habit 1.5, time 0.5, decay 10800 seconds (about 3 hours); query affinity weight 3.0, decay 259200 seconds (about 3 days), cooldown 15 seconds.
  • Three built-in search engines: standard (default), Launchy-style, skim-style.
  • The debug page in settings shows each query's timing and the per-component score breakdown.

Extend

  • Third-party plugins: besides the built-ins you can install ones others wrote, or write your own. Each plugin runs in its own process, so a plugin crash doesn't take the main program with it; the two sides talk over a fixed protocol and refuse to load outright when the versions don't match.
  • Plugin market: browse community plugins right inside the app, install with one click, and use them immediately.
  • Rust SDK: an official SDK is provided, see crates/plugin-sdk-rust. Implement Plugin (init / query / execute_action) and Configurable, run it with run(MyPlugin), and call HostProxy when you need host capabilities; the full trait list and protocol documentation are in crates/plugin-api/README.md.
  • Local CLI: for AI coding assistants or scripts. Download zerolaunch-cli_<version>_<arch>.exe from the Releases assets and rename it to zl.exe (its own command name is zl). The subcommands are ping, query, session, plugins, and config; add -j for JSON output.

Contribute

Run into a problem, find a bug, or just have something to say — open an issue, or come chat in discussions.

Want to change the code? Read CONTRIBUTING.md first, it covers:

  • How to run it locally: environment requirements, dependency installation, dev and debug commands;
  • Which checks to pass before committing: formatting, linting, tests;
  • Commit message and PR conventions (Conventional Commits).

⭐ Star history

Star history chart

💝 Sponsors

Thanks to the following sponsors for their strong support of ZeroLaunch-rs, making the project better (´▽´ʃ♡ƪ)

SignPath Logo Free code signing for the Windows platform is provided by SignPath.io, with certificates provided by SignPath Foundation.

License

The main program is GPL-3.0-only, see LICENSE.txt. The SDK used by plugins (zerolaunch-plugin-api, zerolaunch-plugin-host, zerolaunch-plugin-sdk-rust, etc.) is licensed separately under Apache-2.0, so third-party plugins you write aren't restricted by the main program's license.

简体中文 · 繁體中文 · English

Introduction

🚀 A lightning‑fast, privacy‑first Windows smart launcher that excels at Pinyin and fuzzy matching — typo‑tolerant and instant. Built with Rust + Tauri + Vue! 🚀一款极速、隐私优先的 Windows 智能启动器,精通拼音与模糊匹配,错字搜词秒速直达。基于 Rust + Tauri + Vue 构建!

Customize your domain