Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console: Scrolling and history navigation #6757

Merged
merged 3 commits into from
Nov 1, 2023
Merged

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Nov 1, 2023

Scrolling: PageUp/Down and mouse wheel.

History navigation:

  • Up/Down navigates the input history.
  • Shift+Up/Down navigates the output history (allowing us to copy/paste the outputs, I imagine this will be very handy).
  • Duplicates are skipped.

Also adds a Ctrl+L binding to clear the console.

@glebm glebm enabled auto-merge (rebase) November 1, 2023 16:44
@AJenbo
Copy link
Member

AJenbo commented Nov 1, 2023

Maps well with how I use bash

Scrolling: PageUp/Down and mouse wheel.

History navigation:

* Up/Down navigates the input history.
* Shift+Up/Down navigates the output history (allowing us to copy/paste the
outputs, I imagine this will be very handy).
* Duplicates are skipped.
"Shift+Enter to insert a newline, PageUp/Down to scroll,"
" Up/Down to fill the input from history,"
" Shift+Up/Down to fill the input from output history,"
" Ctrl+L to clear history, Esc to close.";
Copy link
Member

Choose a reason for hiding this comment

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

    " Ctrl+L to not crash RG99, Esc to close.";

In the REPL environment, we set `print` to print to the UI console
instead of stdout.
@glebm glebm merged commit a9c0f57 into diasurgical:master Nov 1, 2023
19 checks passed
@glebm glebm deleted the console branch November 1, 2023 20:28
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.

2 participants