Textualize / trogon

Easily turn your Click CLI into a powerful terminal application
MIT License
2.4k stars 54 forks source link

[enhancement] History support #66

Open shtrom opened 8 months ago

shtrom commented 8 months ago

This module is insanely useful in the case of complex command lines.

One aspect that I think would make it even better is some sort of history support. Not shell history like #12, but actual built-in history within TUI where you can recall commands built in previous runs of the TUI, and either re-edit them or re-run them verbatim.

If editing a command, it would be good to also be able to have the option to either overwrite the previous history entry, or create a new one.

This would offer the ability of recalling oft-used recipes or templates without having to rebuild them from scratch each item. One could even foresee named templates in addition to just historical entries.