参考:github fzf 安装并配置fzf-tab-completion curl https://raw.githubusercontent.com/lincheney/fzf-tab-completion/master/zsh/fzf-zsh-completion.sh > ~/fzf-zsh-completion.sh echo "source ~/fzf-zsh-completion.sh" >> ~/.zshrc echo "bindkey '^]' fzf_completion" >> ~/.zshrc # 使用ctrl ...
启用Shell 自动完成(completion) 启用键盘快捷键绑定(key bindings) 更新您的 Shell 配置文件(如.bashrc、.zshrc) 基本用法 交互式演示 在终端中输入fzf,会进入一个交互式的模糊搜索界面: fzf 输入搜索词:实时筛选匹配的结果。 上下键:导航结果列表。 回车键:选择当前项。 Tab 键:多选模式。 按Ctrl-C或Esc退出。
在这种情况下,没有触发序列,只需在kill命令后按tab键即可。 可以使用<TAB>或<Shift-TAB>键选择多个进程 kill -9 <TAB>主机名 对ssh和telnet命令,支持主机名的模糊补全。补全名称是从/etc/hosts和~/.ssh/config中获取的。 ssh ** <TAB> telnet ** <TAB> 环境变量/别名 unset **<TAB> export **<TAB>...
This project is motivated by Accessing tab-completion programmatically in Bash. You may find some alternatives on Github as well, but the implementations looks overwhelming to me (I'm not a bash guru so I want to keep things as clean and manageable as possible). The idea this project works...
fzf 默认使用**来补全 shell 命令,比起默认的 tab 补全,fzf 补全不知道高到哪里去了。cd, vim, kill, ssh, export... 统统都能补全,好用哭了 配置 fzf 提供了两个环境变量配置参数,来分别设置默认的调用命令和fzf 默认配置参数 核心命令 FZF_DEFAULT_COMMAND ...
FZF_COMPLETION_OPTS是fzf搜索时的默认参数 --height:搜索窗口占屏幕的比例 --layout=reverse:默认搜索栏在底部,设置后搜索栏在上面 --bind:用来更改默认快捷键的,格式就是 快捷键:动作 设置之间用逗号分隔 --preview:预览命令,后面的python文件是我自己写的Python脚本路径,可以实现一些文件的预览 ...
unset **<TAB> export **<TAB> unalias **<TAB> Customizing fzf options for completion# Use ~~ as the trigger sequence instead of the default ** export FZF_COMPLETION_TRIGGER='~~' # Options to fzf command export FZF_COMPLETION_OPTS='--border --info=inline' # Options for path completion...
fzf支持shift+tab进行多选: 代码语言:bash 复制 fzf-m 可同时打开多个文件。 除了上述例子,fzf几乎可与任何命令行工具集成。类似的用法有: git提交日志中搜索(git log | fzf) vim插件中文件搜索(:Files | fzf) 设置zsh模糊补全等 功能强大的fzf能大大提高这些工具的易用性。
Tab to select multiple entries. If you trigger a search while your cursor is on a word, that word will be used to seed the fzf query and will be replaced by your selection. All searches include a preview of the entity hovered over to help you find what you're looking for....
fzf 默认使用 ** 来补全 shell 命令,比起默认的 tab 补全,fzf 补全不知道高到哪里去了。cd, vim,kill, ssh,export… 统统都能补全,好用哭 先介绍到这里吧,一次太多也学习不完,后面再继续深入的分析。 参考文档: 1 https://keelii.com/2018/08/12/fuzzy-finder-full-guide/ ...