Skip to content

Add option to use emacs keymaps in prompt window - #147

Merged
mmrwoods merged 3 commits into
mainfrom
emacs_keys
Sep 19, 2026
Merged

mmrwoods merged 3 commits into
mainfrom
emacs_keys

Conversation

@mmrwoods

@mmrwoods mmrwoods commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Fuzzbox normally follows Vim cmdline editing keymaps, but if you prefer the Emacs style keymaps that are the default in Readline and probably the default in your shell, you can now set g:fuzzbox_emacs_keys to true.

Related to #145

Fuzzbox normally follows Vim cmdline editing keymaps, but if you prefer
the Emacs style keymaps that are the default in Readline and probably
the default in your shell, you can now set g:fuzzbox_emacs_keys to true
Map CTRL-K to delete from cursor to end of line in prompt when Emacs
keys are enabled and replace previous CTRL-K mappings in FuzzyMru and
FuzzyHighlights with CTRL-Y.

Why CTRL-Y? Honestly, mostly because I'm used to it from vim-unimpaired,
where it is used because "if you tilt it a bit it looks like a switch".
But, also because it doesn't make sense to apply Vim's CTRL-Y scroll up
behaviour in Fuzzbox as its opposite in Vim to scroll down is CTRL-E,
and CTRL-E is already used to moves the cursor to the end of the line,
same as Vim's cmdline editing or Readline's Emacs mode in a shell.
Update FuzzyHighlights and FuzzyMru to continue to support CTRL-K toggle
mapping when emacs editing mode has not been enabled, but show a warning
@mmrwoods
mmrwoods merged commit 054bce5 into main Sep 19, 2026
2 checks passed
@mmrwoods
mmrwoods deleted the emacs_keys branch September 19, 2026 11:16
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