# 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
* <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
Raw data
{
"_id": null,
"home_page": "https://github.com/iloveitaly/ipython-ctrlr-fzf",
"name": "ipython-ctrlr-fzf",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "ipython,fzf,ipython-extension",
"author": "Mike Bianco",
"author_email": "mike@mikebian.co",
"download_url": "https://files.pythonhosted.org/packages/b4/81/1e119d38f0ccd062c95c695ac0b21cfe5e0361bff6f4548a05664d792ea3/ipython_ctrlr_fzf-0.2.1.tar.gz",
"platform": null,
"description": "# Add fzf-powered ctrl+r to ipython\n[![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)\n\nAdd fzf-powered ctrl+r to ipython. It's nice.\n\n![demo](./demo.gif)\n\n## Installation\n\nYou must have fzf installed for this to work:\n\n```bash\n# macos\nbrew install fzf\n\n# linux\napt-get install fzf\n```\n\nI'd also recommend installing [bat](https://github.com/sharkdp/bat) for syntax highlighting. It's detected and an advanced preview is shown when available.\n\nThen, install the extension:\n\n```bash\npip install ipython-ctrlr-fzf\n```\n\nAnd in ipython, load the extension:\n\n```shell\n%load_ext ipython_ctrlr_fzf\n```\n\nAlternatively, you can add the output of the following to your `ipython_config.py`:\n\n```shell\npython -m ipython_ctrlr_fzf\n```\n\n## Inspiration\n\n* <https://stackoverflow.com/questions/48203949/backward-search-in-ipython-via-fzf>\n* <https://github.com/anntzer/ipython-autoimport>\n\n## TODO\n\n- [ ] understand when prompt toolkit is not used in ipython\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "overrides ipython's backwards search to use fzf",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/iloveitaly/ipython-ctrlr-fzf"
},
"split_keywords": [
"ipython",
"fzf",
"ipython-extension"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b49494066dfc3bfd471263426a970aee4f2a23e69e32e542aba2c5ac1dc52bf",
"md5": "a43d43ad8086998b0a0db6a2b29679a3",
"sha256": "0a9e8344b24e0b398f689800c886a10b15daa9089cdc68e96e808482b88145ee"
},
"downloads": -1,
"filename": "ipython_ctrlr_fzf-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a43d43ad8086998b0a0db6a2b29679a3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 3404,
"upload_time": "2024-01-23T15:33:34",
"upload_time_iso_8601": "2024-01-23T15:33:34.345235Z",
"url": "https://files.pythonhosted.org/packages/6b/49/494066dfc3bfd471263426a970aee4f2a23e69e32e542aba2c5ac1dc52bf/ipython_ctrlr_fzf-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b4811e119d38f0ccd062c95c695ac0b21cfe5e0361bff6f4548a05664d792ea3",
"md5": "730330159e90532eb371ea51189d6b8e",
"sha256": "9370ba3aa06d7918e9a8d9a91e1f1e6fde84e9f45abff835c547c21ade10d276"
},
"downloads": -1,
"filename": "ipython_ctrlr_fzf-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "730330159e90532eb371ea51189d6b8e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 2794,
"upload_time": "2024-01-23T15:33:35",
"upload_time_iso_8601": "2024-01-23T15:33:35.850328Z",
"url": "https://files.pythonhosted.org/packages/b4/81/1e119d38f0ccd062c95c695ac0b21cfe5e0361bff6f4548a05664d792ea3/ipython_ctrlr_fzf-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-23 15:33:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "iloveitaly",
"github_project": "ipython-ctrlr-fzf",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ipython-ctrlr-fzf"
}