Skip to content
This repository was archived by the owner on Aug 26, 2019. It is now read-only.

shahinism/xontrib-fzf-widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e8ba9e5 · Sep 30, 2018

History

12 Commits
May 18, 2017
Sep 30, 2018
May 18, 2017
May 18, 2017
Dec 25, 2017
Jun 12, 2017

Repository files navigation

FZF Widgets for Xonsh

License Pypi version

This extension will add some fzf widgets to your xonsh shell that you can bind and use as follows:

Current widgets

  • ssh: Search in /etc/ssh/ssh_config or ~/.ssh/config items and issue ssh command on the chosen item.
  • history insert Search in all history entries and insert the chosen command to the prompt.

How to use it

Install the package:

pip install xontrib-fzf-widgets

Enable it by adding fzf-widgets to your ~/.config/xonsh/config.json file:

{
  "xontribs": [
    ...,
    "fzf-widgets"
  ]
}

And set your desired keybindings for each widget in ~/.xonshrc file or set it to None to disable it:

$fzf_history_binding = Keys.ControlR
$fzf_ssh_binding = Keys.ControlS