aroberge / ideas

Easy creation of custom import hooks to experiment on alternatives to Python's syntax; see https://aroberge.github.io/ideas/docs/html/
Other
79 stars 4 forks source link

Support CLI history with the readline module #46

Closed skirpichev closed 9 months ago

skirpichev commented 1 year ago

"Tab" binding is actually optional.

Much more enhanced setup is possible. But I'm not sure where we should save the history file (or files?).

aroberge commented 9 months ago

Sorry, I took a long break from programming. I see that you closed this, and assume that it might be due to a lack of response from my part.

I'm using Windows, and the readline module is not available (if I recall correctly). However, it might be useful to consider this addition.

In terms of where to save the history file, I use platformdirs in another project (https://github.com/friendly-traceback/friendly/blob/main/friendly/settings.py#L13) with the "standard" way of choosing a location for savings relevant information.

skirpichev commented 9 months ago

I can create pr if you wish. Or you could just pick commit from this pr.