Settings

Theme

Show HN: History suggest box for your Python shell

github.com

1 points by adder46 5 years ago · 1 comment

Reader

adder46OP 5 years ago

pyhstr is a history suggest box for Python shells. It lets you quickly access the commands in your shell history. Just search for the command you want to execute (regex mode is supported), or, if you don't exactly know what you're looking for, you can browse through the commands until you find the one you want to execute. Apart from this, you can delete unwanted items from your history, too, and more. It works on all terminals ranging from linux term to alacritty to xterm. It was initially made for the standard Python shell but it should work with IPython and bpython, too.

It has been my daily driver for a while now.

Check out the README for instructions if you want to try it out.

Suggestions, bug reports, etc. are welcome.

Let me know what you think:

https://github.com/adder46/pyhstr

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection