overrides ipython's backwards search to use fzf
Project description
Add fzf-powered ctrl+r to ipython ![Release Notes](https://pypi-camo.freetls.fastly.net/7adc0c4cdaaf05c05a8f5fa6d7245a2545c0ecf2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696c6f76656974616c792f69707974686f6e2d6374726c722d667a66)
![Downloads](https://pypi-camo.freetls.fastly.net/7a7c0ed46f8c4dd8e84f0a57cc3f155781a36e89/68747470733a2f2f7374617469632e706570792e746563682f62616467652f69707974686f6e2d6374726c722d667a662f6d6f6e7468)
![Python Versions](https://pypi-camo.freetls.fastly.net/9bdec658e37cbfd99e1f0e636996e53c8b943c71/68747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f69707974686f6e2d6374726c722d667a66)
![GitHub CI Status](https://pypi-camo.freetls.fastly.net/9cf9eecb2e82d1c34d937a28fbad78edd2c05df6/68747470733a2f2f6769746875622e636f6d2f696c6f76656974616c792f69707974686f6e2d6374726c722d667a662f616374696f6e732f776f726b666c6f77732f6275696c645f616e645f7075626c6973682e796d6c2f62616467652e737667)
![License: MIT](https://pypi-camo.freetls.fastly.net/8645b002dd7ec1b54275a80574942e7a318e03c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)
Add fzf-powered ctrl+r to ipython. It's nice.
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
- https://stackoverflow.com/questions/48203949/backward-search-in-ipython-via-fzf
- https://github.com/anntzer/ipython-autoimport
TODO
- understand when prompt toolkit is not used in ipython
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ipython_ctrlr_fzf-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2fc83cc506be224bbfbccddc733c60a01ccdc748071fafaad75cdae48b38252 |
|
MD5 | 97158f4a87d6d49933e7f3dba859fb4d |
|
BLAKE2b-256 | 47e20310393562429277686e88408fa78d6ed60116bcad969f900068b6f32ec2 |