Skip to content

WantChane/Flow.Launcher.Plugin.Zoxide

Repository files navigation

Flow.Launcher.Plugin.Zoxide

简体中文 · English

简体中文

适用于 Flow LauncherZoxide 集成插件,使用 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 原生差异较大,但额外支持拼音搜索

说明: 本插件不再提供 ZoxidePyz cd 功能;请考虑其他方法来向zoxide数据库中添加目录,例如修改注册表集成 zoxide add 到资源管理器的右键菜单。

环境要求

  • 已安装 Flow Launcher
  • 已安装 zoxide

安装

通过Flow.Launcher.Plugin.PluginsManager安装

执行 pm install Zoxide by WantChane

手动安装

  1. Releases 下载最新构建
  2. 将解压后的插件文件夹放入 Flow Launcher 的插件目录
  3. 重启 Flow Launcher
  4. 设置 → 插件 → Zoxide 中配置 zoxide.exe 路径

配置

  1. zoxide 可执行文件
    • 若已在 PATH 中,可填写 zoxide.exe
    • 否则填写完整路径,例如:C:\Tools\zoxide.exe
  2. 命令超时:等待 zoxide 子进程结束的最长时间(毫秒)
  3. 缓存过期时间:设为 0 则不缓存,每次查询执行 zoxide query;设为大于 0 的值则缓存 zoxide 全部数据 N 秒,通过 Flow Launcher 模糊搜索过滤结果
  4. 默认命令与自定义命令:选择用哪个命令打开目录;可为每条命令设置图标(内置图标库或自定义路径)、是否在成功打开后执行 zoxide add

默认触发关键字为 z

使用

基本搜索

  • 输入触发词 z、空格,再输入查询词(与 zoxide 行为基本一致)
  • 示例:z doc 查找与 doc 相关的常用目录
  • 注意,本插件默认搜索行为与 zoxide 原生基本一致,不支持拼音搜索;启用缓存后切换为 Flow Launcher 模糊搜索,此时支持拼音搜索,但搜索结果与 zoxide 原生有较大区别

操作

  • Enter:使用默认命令打开当前选中目录(默认为资源管理器)
  • 右键:在上下文菜单中选择其它已启用的命令打开该目录

许可证

本项目以 MIT License 授权。

致谢

  • Zoxide — 目录跳转与 frecency 数据库
  • Flow Launcher — 应用启动器与插件体系

English

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.

Description

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.

Features

  • 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 add in the background after a successful open (see each command’s “Run zoxide add after opening path successfully” option); if the directory no longer exists, run zoxide remove
  • Cache & fuzzy search: Optionally cache zoxide data to avoid running zoxide query on 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 cd functionality of ZoxidePy; please consider other methods to add directories to the zoxide database, such as modifying the registry to integrate zoxide add into the Explorer's right-click menu.

Prerequisites

  • Flow Launcher installed
  • Zoxide installed

Installation

Install via Flow.Launcher.Plugin.PluginsManager

Execute pm install Zoxide by WantChane

Manual

  1. Download the latest release from Releases
  2. Extract the plugin folder into your Flow Launcher plugins directory
  3. Restart Flow Launcher
  4. Set the path to zoxide.exe under Settings → Plugins → Zoxide if it is not on PATH

Configuration

  1. Zoxide executable
    • If on PATH, you can use zoxide.exe
    • Otherwise use a full path, e.g. C:\Tools\zoxide.exe
  2. Command timeout: Maximum time to wait for the zoxide child process (milliseconds)
  3. Cache expiration: Set to 0 to disable caching (run zoxide query every time); set >0 to cache all zoxide data for N seconds and filter results via Flow Launcher fuzzy search
  4. Default & custom commands: Choose how directories are opened; set a per-command icon (built-in or custom path), and optionally enable zoxide add after a successful open

The default action keyword is z.

Usage

Basic search

  • Type the action keyword z, a space, then your query (same idea as zoxide)
  • Example: z doc to find directories you often use related to doc
  • 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

Actions

  • 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

License

MIT

Acknowledgments

  • Zoxide — Directory jumping and the frecency database
  • Flow Launcher — Application launcher and plugin system

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors