Skip to content

fix(keymaps): preserve default behavior in command-line buffer#3

Open
iamavolk wants to merge 2 commits intodaliusd:mainfrom
iamavolk:cmd_buf_fallback
Open

fix(keymaps): preserve default behavior in command-line buffer#3
iamavolk wants to merge 2 commits intodaliusd:mainfrom
iamavolk:cmd_buf_fallback

Conversation

@iamavolk
Copy link

What

Preserve default key behavior when inside the command-line window (q:).

Why

Some people (myself, for instance) tend to use <C-m> or <CR> for incremental selection. However, inside the cmd buffer
one should be able to execute commands with the said keys. Hence the patch. Decrement got fixed along the way for consistency.

How

Added a in_cmd_win helper that checks buf type at keypress.

Extra note

x mode doesn't seem to be affected or, at least, use cases are not well defined inside the said buffer type.

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.

1 participant