Skip to content

Resolve conflicts between prompt/picker bindings - #1792

Merged
archseer merged 1 commit into
helix-editor:masterfrom
crodjer:picker-prompt-conflicts
Mar 31, 2022
Merged

Resolve conflicts between prompt/picker bindings#1792
archseer merged 1 commit into
helix-editor:masterfrom
crodjer:picker-prompt-conflicts

Conversation

@crodjer

@crodjer crodjer commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

Currently, the picker's re-using a few bindings which are also present
in the prompt. This causes some editing behaviours to not function on
the picker.

Ctrl + k and Ctrl + j
This should kill till the end of the line on prompt, but is overridden
by the picker for scrolling. Since there are redundancies (Ctrl + p,
Ctrl + n), we can remove it from picker.

Ctrl + f and Ctrl + b
This are used by the prompt for back/forward movement. We could modify
it to be Ctrl + d and Ctrl + u, to match the vim behaviour.

Currently, the picker's re-using a few bindings which are also present
in the prompt. This causes some editing behaviours to not function on
the picker.

**Ctrl + k** and **Ctrl + j**
This should kill till the end of the line on prompt, but is overridden
by the picker for scrolling. Since there are redundancies (`Ctrl + p`,
`Ctrl + n`), we can remove it from picker.

**Ctrl + f** and **Ctrl + b**
This are used by the prompt for back/forward movement. We could modify
it to be Ctrl + d and Ctrl + u, to match the `vim` behaviour.
@crodjer
crodjer force-pushed the picker-prompt-conflicts branch from dca284d to e07d269 Compare March 11, 2022 11:23

@archseer archseer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! I don't know if I use ctrl-k/-j or -p/-n on the picker but I guess we'll see, I might need to retrain my muscle memory :D

@archseer
archseer merged commit 5d61631 into helix-editor:master Mar 31, 2022
@EpocSquadron

EpocSquadron commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

The ctrl-f and ctrl-b bindings were for consistency with full or half height scrolling as in #1614. I do think ctrl-d and ctrl-u should be present, but they should advance by half height. The pr that implemented the others #1612 mentioned it would be a little more difficult to do though.

Cc: @archseer

@heliostatic

Copy link
Copy Markdown
Contributor

Ah, I missed this PR -- I opened the original issue to add <C-j> and <C-k> (#615), and do prefer using those. But really, the best solution seems to be allowing remapping.

farwyler added a commit to farwyler/helix that referenced this pull request Nov 29, 2022
farwyler added a commit to farwyler/helix that referenced this pull request Dec 2, 2022
@archseer archseer mentioned this pull request Sep 18, 2023
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 10, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 12, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 13, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 13, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 15, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 16, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 16, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 19, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 23, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 27, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Sep 29, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Oct 1, 2025
littleblack111 added a commit to littleblack111/helix that referenced this pull request Oct 4, 2025
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.

4 participants