Skip to content

Fix default keybindings for Ctrl-c and Ctrl-x in command mode - #3973

Merged
JoeKar merged 1 commit into
micro-editor:masterfrom
dmaluka:ctrlc-ctrlv-commandmode-fix
Jan 23, 2026
Merged

JoeKar merged 1 commit into
micro-editor:masterfrom
dmaluka:ctrlc-ctrlv-commandmode-fix

Conversation

@dmaluka

@dmaluka dmaluka commented Jan 22, 2026 •

Copy link
Copy Markdown
Collaborator

Micro doesn't support chained actions for command mode keybindings yet, it only supports them for regular buffer keybindings. Whereas Ctrl-c and Ctrl-x are bound by default to the chained actions Copy|CopyLine and Cut|CutLine in both buffer mode and command mode, so in command mode Ctrl-c and Ctrl-x don't work at all (with default keybindings).

Luckily CopyLine and CutLine would not be not very useful in command mode anyway. So fix the issue by changing the default keybindings in command mode to the simple non-chained actions Copy and Cut.

Fixes #3972
Fixes #3784

Micro doesn't support chained actions for command mode keybindings yet,
it only supports them for regular buffer keybindings. Whereas Ctrl-c and
Ctrl-v are bound by default to the chained actions Copy|CopyLine and
Cut|CutLine in both buffer mode and command mode, so in command mode
Ctrl-c and Ctrl-v don't work at all (with default keybindings).

Luckily CopyLine and CutLine would not be not very useful in command
mode anyway. So fix the issue by changing the default keybindings in
command mode to the simple non-chained actions Copy and Cut.

@JoeKar JoeKar 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.

Simple and good "fix" till the chained actions are supported. 👍

@JoeKar
JoeKar merged commit dc2d70b into micro-editor:master Jan 23, 2026
6 checks passed
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-c and ctrl-x don't work in command mode ctrl-c doesn't copy text in command mode

2 participants