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

Readline shortcuts behave differently in the Console and Terminal panes #1953

Open
georgestagg opened this issue Dec 15, 2023 · 1 comment
Open
Labels
area: console Issues related to Console category. bug Something isn't working

Comments

@georgestagg
Copy link

georgestagg commented Dec 15, 2023

Positron Version:

Positron Version: 2023.12.0 (Universal) build 1539
Code - OSS Version: 1.85.0
Commit: a22c813
Date: 2023-12-12T03:09:20.555Z
Electron: 25.9.7
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.1.0

Steps to reproduce the issue:

  1. Type something in the Console window, but don't execute it.
  2. Try to use a readline shortcut such as ctrl-a.
  3. Do the same thing in the Terminal window.

What did you expect to happen?

I would expect the same behaviour for readline shortcuts in both Console and Terminal panes, if the process in the Console uses readline (I was using R).

Additionally, when readline shortcuts are shared with other shortcuts, I would personally expect the readline shortcuts to win when the cursor is active in the console -- particularly for well-known ones such as ctrl-a and ctrl-e.

At the moment it looks like readline always wins when in the Terminal pane, but in Console sometimes Positron shortcuts (ctrl-a, ctrl-r, ctrl-w) win, sometimes readline works OK (ctrl-e, ctrl-k), and sometimes nothing seems to happen (ctrl-p).

Were there any error messages in the output or Developer Tools console?

No.

@petetronic petetronic added this to the Release Candidate milestone Feb 26, 2024
@wesm wesm added area: console Issues related to Console category. bug Something isn't working labels Feb 29, 2024
@dhruvisompura
Copy link
Contributor

Mega-Triage 2/5/2025:
The following readline shortcuts work: ctrl+a and ctrl+e.
The remaining shortcuts may or may not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: console Issues related to Console category. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants