Skip to content

feat(search): process Ctrl+m for kitty keyboard protocol#1720

Merged
ellie merged 1 commit into
atuinsh:mainfrom
akinomyoga:search-ctrl-m
Feb 14, 2024
Merged

feat(search): process Ctrl+m for kitty keyboard protocol#1720
ellie merged 1 commit into
atuinsh:mainfrom
akinomyoga:search-ctrl-m

Conversation

@akinomyoga
Copy link
Copy Markdown
Contributor

Fixes #1719

The background is explained in the commit mesasge.

I know there is tension between the readline bindings and Atuin's specific bindings for the available key-sequence space, but I think C-m cannot be used for Atuin's feature anyway because it can only be used with the terminals with an extended keyboard protocol.

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

Fixes atuinsh#1719

[C-m] is usually identical to [RET] in the terminal protocol, and some
users use [C-m] in place of [RET].  However, kitty's extended keyboard
protocol enables differentiating them so that [C-m] does not function
as does without the extended keyboard protocol.

For the compatibility with terminals without extended keyboard
protocols, we anyway cannot assign a distinct feature to [C-m], so we
can safely add the explicit binding of InputAction::Accept to [C-m].
Copy link
Copy Markdown
Member

@ellie ellie left a comment

Choose a reason for hiding this comment

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

Totally makes sense, thank you!

@ellie ellie merged commit 063d905 into atuinsh:main Feb 14, 2024
@akinomyoga akinomyoga deleted the search-ctrl-m branch February 14, 2024 09:18
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.

Ctrl+m as Enter stopped working

2 participants