This is a ranger plugin that adds a fuzzy filter(depends on fzf), allowing for the interactive real-time display of filtered files. Unlike the built-in find command, which requires pressing Enter to execute and display filtered files, this plugin shows them instantaneously.(Translated by ChatGPT)
这是一个 ranger 插件,添加了一个模糊过滤器(依赖 fzf),可以交互式实时过滤出显示的文件,而不是像内置的find命令需要输入回车执行后才过滤出显示的文件。
ranger-fzf-filter.mp4
For ranger >= 1.9.3, use Git to clone this repository into your ~/.config/ranger/plugins folder. For example:
git clone [email protected]:MuXiu1997/ranger-fzf-filter.git ~/.config/ranger/plugins/ranger_fzf_filterLegacy Install
For ranger versions older than 1.9.3, or to install without Git, download __init__.py to your ~/.config/ranger/plugins directory. For example:
mkdir -p ~/.config/ranger/plugins
wget -O ~/.config/ranger/plugins/ranger_fzf_filter.py https://raw.githubusercontent.com/MuXiu1997/ranger-fzf-filter/main/__init__.pyCommand:
:fzf_filter [query]: filtering files with fzf, see this search syntax
Add a binding to your ~/.config/ranger/rc.conf file to quickly use :fzf_filter:
map f console fzf_filter%space