doronz88 / xontrib-fzf-completions

fzf completions for xonsh
GNU General Public License v3.0
4 stars 1 forks source link
cli command-line console fzf shell terminal xonsh xontrib

xontrib-fzf-completions

The project is a more updated fork of https://github.com/shahinism/xontrib-fzf-widgets (Hopefully more responsive to PRs), providing fzf completions into your xonsh shell.

Installation

# Install the xontrib
xpip install -U xontrib-fzf-completions

# Load it
xpip load fzf-completions

Define the key-binding in your .xonshrc:

from xonsh.built_ins import XSH

XSH.env['fzf_history_binding'] = "c-r"  # Ctrl+R
XSH.env['fzf_ssh_binding'] = "c-s"  # Ctrl+S
XSH.env['fzf_file_binding'] = "c-t"  # Ctrl+T
XSH.env['fzf_dir_binding'] = "c-g"  # Ctrl+G