nushell / nushell/reedline

'ctrl+i' and 'ctrl+m' simulate 'Tab' and 'Enter' respectively

Open
#937 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

Windows: 10.0.19045.6093
WSL 2.5.9.0
Debian 12
Nushell 0.105.1

'ctrl+i' and 'ctrl+m' simulate 'Tab' and 'Enter' respectively, like below:

~> keybindings listen
Type any key combination to see key details. Press ESC to abort.
code: Tab, modifier: KeyModifiers(0x0), flags: 0b000000, kind: Press, state: KeyEventState(0x0)
code: Enter, modifier: KeyModifiers(0x0), flags: 0b000000, kind: Press, state: KeyEventState(0x0)

I roughly understand the output after some search, but I think this is an unexpected and unwanted behavior, at least put them in default keybindings explicitly if people need them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with Nushell's keybindings listen entry point on the reported Windows, WSL, and Debian setup, then trace Reedline's key-event handling and default keybindings. Done means determining whether Ctrl+I and Ctrl+M should remain distinct control-key events rather than being reported as Tab and Enter, and adding coverage for the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.