HeyPuter / puter

🌐 The Web OS! Free, Open-Source, and Self-Hostable.
https://puter.com
GNU Affero General Public License v3.0
21.04k stars 1.32k forks source link

Phoenix: Remember command history #446

Open AtkinsSJ opened 1 month ago

AtkinsSJ commented 1 month ago

Currently, command history is remembered within a session, but forgotten as soon as Phoenix closes. It'd be nice if this could be preserved.

jelveh commented 2 weeks ago

Can you use puter.kv or puter.fs for this?

AtkinsSJ commented 1 week ago

I think it would need to be puter.fs, because the history can get quite long. Not sure what the best way of storing it is though.

Something structured like JSON would be nice, but then we'd have to parse the entire file to read any part of it. A text file would let us just read individual lines. Though, puter.fs only lets you read an entire file's contents so maybe that doesn't matter. :thinking: I might also be worrying about speed when it might not matter.