Skip to content

Conversation

@atouminet
Copy link
Contributor

Currently starting a new session clears the REPL history. I see no reason why this is required, and actually I have found quite common the need to reuse REPL command between sessions.
Other IDEs (e.g. vscode) also keep history between sessions.

@mfussenegger
Copy link
Owner

This would also stop clearing the output, which I very much want to keep.

I don't mind not clearing the history, but then it would probably need to become a ringbuffer to avoid the memory usage from growing indefinitely.

@atouminet
Copy link
Contributor Author

I have made changes according to your review. I have added a maximum REPL history size, with a hardcoded max size.
I can make it a configurable option if needed, although I do not think it is very useful to have a much larger history.

@mfussenegger mfussenegger merged commit 56118ce into mfussenegger:master May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants