Skip to content

Conversation

@414owen
Copy link

@414owen 414owen commented Dec 27, 2025

This lets the user navigate between previously used lines, in the typewriter input, à la readline.

This history persists between levels.

This lets the user navigate between previously used lines, in the
typewriter input, à la readline.

This history persists between levels.
@414owen 414owen changed the title Add history navigation to typewriter mode input Add history navigation to typewriter input Dec 27, 2025
@joneugster
Copy link
Collaborator

joneugster commented Dec 28, 2025

Thank you for the PR. This is a nice little feature!

Before merging this, I'd want to wait on an outstanding discussion with @TentativeConvert where we were thinking about what sort of input-features (mouse/keyboard/touchpad) interaction would be desirable in the near future. I'd like to first get this big picture and then see how your history integrates into that.

@joneugster joneugster added feature New feature or request frontend Functionality of the client side code labels Dec 28, 2025
const l = oneLineEditor.onKeyUp((ev) => {
if (ev.code === "Enter" || ev.code === "NumpadEnter") {
runCommand()
} else if (ev.code === "ArrowUp") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like ArrowUp and ArrowDown to be available to go through the previous proof states (as having them selected also highlights the corresponding chat messages)

Are there other keys we could use for the history?

Copy link
Collaborator

@joneugster joneugster Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, I do plan on having some keyboard shortcut list somewhere, so it's fine if it is a kind of hidden shortcut.

For example: Cmd+H for opening the history, Esc for closing it, and arrows to navigate inside the opened history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request frontend Functionality of the client side code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants