Skip to content

iloveitaly/ipython-ctrlr-fzf

Repository files navigation

Add fzf-powered ctrl+r to ipython

Release Notes Downloads Python Versions GitHub CI Status License: MIT

Add fzf-powered ctrl+r to ipython. It's nice.

demo

Installation

You must have fzf installed for this to work:

# macos
brew install fzf

# linux
apt-get install fzf

I'd also recommend installing bat for syntax highlighting. It's detected and an advanced preview is shown when available.

Then, install the extension:

pip install ipython-ctrlr-fzf

And in ipython, load the extension:

%load_ext ipython_ctrlr_fzf

Alternatively, you can add the output of the following to your ipython_config.py:

python -m ipython_ctrlr_fzf

Inspiration

TODO

  • understand when prompt toolkit is not used in ipython