Skip to content

Feature request: Add ability to interactively search previous Python commands using CTRL-R  #18

@cohml

Description

@cohml

fzf is great for things like what's shown in your README's GIF. But just as useful, if not more so, is the ability to interactively filter command history using CTRL-R.

This SO reply shows how it is possible to use your package for for this in an iPython shell. I have implemented it myself and confirmed that it works, albeit the UX could probably be improved.

I use IPython 100% of the time, so I'm personally content with this. But people who just stick to the regular Python REPL cannot benefit from that SO reply.

Fortunately, since both IPython and Python log previous commands in history files, I have little doubt that something similar can be achieved for the Python REPL. It would be really nice to include a subdirectory in your project that provides this functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions