overrides ipython's backwards search to use fzf
Project description
Add fzf-powered ctrl+r to ipython
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
File details
Details for the file ipython_ctrlr_fzf-0.2.1.tar.gz
.
File metadata
- Download URL: ipython_ctrlr_fzf-0.2.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.4 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9370ba3aa06d7918e9a8d9a91e1f1e6fde84e9f45abff835c547c21ade10d276 |
|
MD5 | 730330159e90532eb371ea51189d6b8e |
|
BLAKE2b-256 | b4811e119d38f0ccd062c95c695ac0b21cfe5e0361bff6f4548a05664d792ea3 |
File details
Details for the file ipython_ctrlr_fzf-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ipython_ctrlr_fzf-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.4 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e8344b24e0b398f689800c886a10b15daa9089cdc68e96e808482b88145ee |
|
MD5 | a43d43ad8086998b0a0db6a2b29679a3 |
|
BLAKE2b-256 | 6b49494066dfc3bfd471263426a970aee4f2a23e69e32e542aba2c5ac1dc52bf |