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

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

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

akinomyoga
Copy link
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
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
15 checks passed
@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