适用于 Flow Launcher 的 Zoxide 集成插件,使用 C# 编写。
说明: 本仓库为 C# 实现,若你曾使用基于 Python 的 旧版插件,功能模型相近,但配置与部分细节以本仓库为准。
本插件在 Flow Launcher 中调用 zoxide query,按使用习惯列出目录,选择后即可使用配置的命令打开;成功打开后可选择自动执行 zoxide add,路径不存在时会触发 zoxide remove。
- 目录跳转:根据 zoxide 评分与关键词快速匹配历史目录
- 可自定义打开方式:在设置中配置多条命令(终端、编辑器等),使用
{path}占位符 - 右键菜单:对选中结果使用已启用的命令打开路径(可在设置中增删)
- 自定义图标:每条命令可单独设置图标,支持从内置图标库选择或指定自定义图标路径
- 与 zoxide 同步:成功打开后可后台
zoxide add(见各命令上的「成功打开后执行 zoxide add」选项);若目录已不存在则zoxide remove - 缓存与模糊搜索:可启用 zoxide 数据缓存,避免每次查询都执行
zoxide query;缓存命中后使用 Flow Launcher 模糊搜索过滤结果。启用缓存后搜索行为与 zoxide 原生差异较大,但额外支持拼音搜索
说明: 本插件不再提供 ZoxidePy 的
z cd功能;请考虑其他方法来向zoxide数据库中添加目录,例如修改注册表集成zoxide add到资源管理器的右键菜单。
- 已安装 Flow Launcher
- 已安装 zoxide
执行 pm install Zoxide by WantChane
- 在 Releases 下载最新构建
- 将解压后的插件文件夹放入 Flow Launcher 的插件目录
- 重启 Flow Launcher
- 在 设置 → 插件 → Zoxide 中配置
zoxide.exe路径
- zoxide 可执行文件
- 若已在
PATH中,可填写zoxide.exe - 否则填写完整路径,例如:
C:\Tools\zoxide.exe
- 若已在
- 命令超时:等待 zoxide 子进程结束的最长时间(毫秒)
- 缓存过期时间:设为 0 则不缓存,每次查询执行
zoxide query;设为大于 0 的值则缓存 zoxide 全部数据 N 秒,通过 Flow Launcher 模糊搜索过滤结果 - 默认命令与自定义命令:选择用哪个命令打开目录;可为每条命令设置图标(内置图标库或自定义路径)、是否在成功打开后执行
zoxide add
默认触发关键字为 z。
- 输入触发词
z、空格,再输入查询词(与 zoxide 行为基本一致) - 示例:
z doc查找与doc相关的常用目录 - 注意,本插件默认搜索行为与 zoxide 原生基本一致,不支持拼音搜索;启用缓存后切换为 Flow Launcher 模糊搜索,此时支持拼音搜索,但搜索结果与 zoxide 原生有较大区别
- Enter:使用默认命令打开当前选中目录(默认为资源管理器)
- 右键:在上下文菜单中选择其它已启用的命令打开该目录
本项目以 MIT License 授权。
- Zoxide — 目录跳转与 frecency 数据库
- Flow Launcher — 应用启动器与插件体系
Zoxide integration for Flow Launcher, written in C#.
Note: This repository is the C# implementation. If you previously used the Python-based legacy plugin, the feature model is similar, but configuration and some details are defined by this repository.
This plugin invokes zoxide query from Flow Launcher, lists directories ranked by your usage habits, and opens the selection with your configured command. After a successful open you can optionally run zoxide add in the background; if the path no longer exists, zoxide remove is triggered.
- Directory jumping: Quickly match history directories using zoxide’s scores and your keywords
- Custom open actions: Configure multiple commands in settings (terminal, editor, …) with a
{path}placeholder - Context menu: Right-click a result to open the path with another enabled command (add or remove commands in settings)
- Custom icons: Each command can have its own icon — choose from built-in options or specify a custom icon path
- Zoxide sync: Optionally run
zoxide addin the background after a successful open (see each command’s “Run zoxide add after opening path successfully” option); if the directory no longer exists, runzoxide remove - Cache & fuzzy search: Optionally cache zoxide data to avoid running
zoxide queryon every keystroke; when cache is hit, results are filtered using Flow Launcher’s fuzzy search. Enabling cache changes search behavior significantly compared to native zoxide, but adds Pinyin search support
Note: This plugin no longer provides the
z cdfunctionality of ZoxidePy; please consider other methods to add directories to the zoxide database, such as modifying the registry to integratezoxide addinto the Explorer's right-click menu.
- Flow Launcher installed
- Zoxide installed
Execute pm install Zoxide by WantChane
- Download the latest release from Releases
- Extract the plugin folder into your Flow Launcher plugins directory
- Restart Flow Launcher
- Set the path to
zoxide.exeunder Settings → Plugins → Zoxide if it is not onPATH
- Zoxide executable
- If on
PATH, you can usezoxide.exe - Otherwise use a full path, e.g.
C:\Tools\zoxide.exe
- If on
- Command timeout: Maximum time to wait for the zoxide child process (milliseconds)
- Cache expiration: Set to 0 to disable caching (run
zoxide queryevery time); set >0 to cache all zoxide data for N seconds and filter results via Flow Launcher fuzzy search - Default & custom commands: Choose how directories are opened; set a per-command icon (built-in or custom path), and optionally enable
zoxide addafter a successful open
The default action keyword is z.
- Type the action keyword
z, a space, then your query (same idea as zoxide) - Example:
z docto find directories you often use related todoc - Note: By default search behavior closely matches native zoxide and does not support Pinyin; enabling cache switches to Flow Launcher’s fuzzy search, which supports Pinyin but produces results that differ significantly from native zoxide
- Enter: Open the selected directory with the default command (usually File Explorer)
- Right-click: Pick another enabled command from the context menu to open the same path
- Zoxide — Directory jumping and the frecency database
- Flow Launcher — Application launcher and plugin system