Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iloveitaly/ipython-ctrlr-fzf
overrides ipython's backwards search to use fzf
https://github.com/iloveitaly/ipython-ctrlr-fzf
fzf ipython ipython-extension
Last synced: 3 months ago
JSON representation
overrides ipython's backwards search to use fzf
- Host: GitHub
- URL: https://github.com/iloveitaly/ipython-ctrlr-fzf
- Owner: iloveitaly
- Created: 2023-12-03T01:28:45.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-01T14:32:47.000Z (10 months ago)
- Last Synced: 2024-05-01T19:47:57.747Z (9 months ago)
- Topics: fzf, ipython, ipython-extension
- Language: Python
- Homepage: https://github.com/iloveitaly/ipython-ctrlr-fzf
- Size: 648 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Add fzf-powered ctrl+r to ipython
[![Release Notes](https://img.shields.io/github/release/iloveitaly/ipython-ctrlr-fzf)](https://github.com/iloveitaly/ipython-ctrlr-fzf/releases) [![Downloads](https://static.pepy.tech/badge/ipython-ctrlr-fzf/month)](https://pepy.tech/project/ipython-ctrlr-fzf) [![Python Versions](https://img.shields.io/pypi/pyversions/ipython-ctrlr-fzf)](https://pypi.org/project/ipython-ctrlr-fzf) ![GitHub CI Status](https://github.com/iloveitaly/ipython-ctrlr-fzf/actions/workflows/build_and_publish.yml/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Add fzf-powered ctrl+r to ipython. It's nice.
![demo](./demo.gif)
## Installation
You must have fzf installed for this to work:
```bash
# macos
brew install fzf# linux
apt-get install fzf
```I'd also recommend installing [bat](https://github.com/sharkdp/bat) for syntax highlighting. It's detected and an advanced preview is shown when available.
Then, install the extension:
```bash
pip install ipython-ctrlr-fzf
```And in ipython, load the extension:
```shell
%load_ext ipython_ctrlr_fzf
```Alternatively, you can add the output of the following to your `ipython_config.py`:
```shell
python -m ipython_ctrlr_fzf
```## Inspiration
*
*## TODO
- [ ] understand when prompt toolkit is not used in ipython