Skip to content

A Ranger plugin that allows for interactive real-time display of filtered files, depends on fzf

License

Notifications You must be signed in to change notification settings

MuXiu1997/ranger-fzf-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ranger-fzf-filter

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

Install

For ranger >= 1.9.3, use Git to clone this repository into your ~/.config/ranger/plugins folder. For example:

git clone git@github.com:MuXiu1997/ranger-fzf-filter.git ~/.config/ranger/plugins/ranger_fzf_filter

Legacy 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__.py

Usage

Command:

  • :fzf_filter [query]: filtering files with fzf, see this search syntax

Keyboard Shortcut

Add a binding to your ~/.config/ranger/rc.conf file to quickly use :fzf_filter:

map f console fzf_filter%space

License

MIT

About

A Ranger plugin that allows for interactive real-time display of filtered files, depends on fzf

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages