Fuzzy

受 fzf 启发的命令功能,引入了一套基于“模糊搜索”的命令搜索与执行系统。它允许你搜索之前输入过的命令,无需完全匹配原句,即可快速复用。
使用方法
- 按下
J 键(默认按键绑定,可配置)以打开模糊命令搜索界面。
- 开始输入搜索内容,以筛选之前使用过的命令。
- 匹配搜索结果的命令将以列表形式显示,你可以使用方向键进行导航,或直接按
Enter 键执行。
- 按
Tab 键可将选中的命令建议填入聊天栏,以便进一步编辑。
演示

按键绑定
- 按
J 打开模糊命令查找器(此按键绑定可重新配置)
功能
快捷操作
选中某一项后,你可以执行以下快捷操作:
- 执行命令:
Enter
- 在聊天栏中建议命令:
Tab
- 列表向下移动一项:
↓ 或 Shift + J
- 列表向上移动一项:
↑ 或 Shift + K
- 移除条目:
Shift + X
- 复制命令到剪贴板:
Shift + C
- 给予一个包含建议命令的指令方块:
Shift + B
指令方块
当你与指令方块交互并更改其命令时,如果你启用了 Enable Command Block Logging(启用指令方块日志记录)选项,Fuzzy 会自动将该命令记录到其搜索历史中。这意味着稍后你可以在命令搜索中调出该命令并再次使用,即使已经关闭了指令方块的界面。
指令方块的命令在列表中显示为黄色,并在命令搜索中带有 @ 前缀。
提示: 结合使用指令方块日志记录和 Shift + B 可以快速切换指令方块(演示)
致谢
Fuzzy 使用 xdrop/fuzzywuzzy 进行模糊搜索。
Fuzzy

The fzf inspired command introduces a "fuzzy search"-based command search and execution system. It allows you to search previously entered commands, regardless of the exact phrasing, and quickly reuse them.
Usage
- Press the
J key (default keybind, configurable) to open the Fuzzy Command Search screen.
- Start typing your search query to filter through previously used commands.
- Commands matching your search will be displayed in a list, which you can navigate using arrow keys, or execute directly with the
Enter key.
- The
Tab key will suggest the selected command, allowing you to edit it further in the chat bar.
Demo

KeyBinds
- Press
J to open the fuzzy command finder (this keybinding can be re-configured)
Features
Quick Actions
When you select an entry you can do one of the following quick actions:
- Execute Command:
Enter
- Suggest Command in Chat:
Tab
- Next Entry in List:
Arrow Down or Shift + J
- Previous Entry in List:
Arrow Up or Shift + K
- Remove Entry:
Shift + X
- Copy Command to Clipboard:
Shift + C
- Give Command Block with Suggested Command:
Shift + B
Command Blocks
When you interact with a command block and change its command, if you have theEnable Command Block Logging option enabled, Fuzzy will automatically log that command into its search history. This means you'll be able to pull up the Command Search later on and reuse the command you entered into the command block, even after closing the command block's interface.
Command Block commands appear in yellow and they have a @ prefix in the command search.
TIP: Use command block logging in combination with Shift + B to quickly swap between command blocks (Demo)
Credits
Fuzzy uses xdrop/fuzzywuzzy for the fuzzy search.
评论 0
登录后参与评分
还没有评论,来抢沙发吧