Skip to content

Persist register selection in pending keymaps#7277

Merged
archseer merged 2 commits intomasterfrom
persist-register-in-pending-keymaps
Jun 7, 2023
Merged

Persist register selection in pending keymaps#7277
archseer merged 2 commits intomasterfrom
persist-register-in-pending-keymaps

Conversation

@the-mikedavis
Copy link
Copy Markdown
Member

Previously the register selection (via ") would be lost in the middle of any key sequence longer than one key. For example, <space>f would clear the register selection after the <space> making it inaccessible for the file_picker command.

This behavior does not currently have any effect in the default keymap but might affect custom keymaps. This change aligns the behavior of the register with count. Making this change allows propagating the register to the command_palette (see the child commit) or other pickers should we decide to use registers in those in the future. (Interactive global search for example.)

Previously the register selection (via `"`) would be lost in the middle
of any key sequence longer than one key. For example, `<space>f` would
clear the register selection after the `<space>` making it inaccessible
for the `file_picker` command.

This behavior does not currently have any effect in the default keymap
but might affect custom keymaps. This change aligns the behavior of the
register with count. Making this change allows propagating the register
to the `command_palette` (see the child commit) or other pickers should
we decide to use registers in those in the future. (Interactive global
search for example.)
Previously a count or register selection would be lost while opening
the command palette. This change allows using a register selection or
count in any command chosen from the command palette.
@the-mikedavis the-mikedavis added C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer. labels Jun 7, 2023
@archseer archseer merged commit b394997 into master Jun 7, 2023
@archseer archseer deleted the persist-register-in-pending-keymaps branch June 7, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants