Add Emacs-like keybindings as a preset configuration#1106
Open
noborus wants to merge 2 commits into
Open
Conversation
noborus
commented
Jun 19, 2026
Owner
- Add EmacsKeyBinds function that returns a KeyBind with Emacs-like keybindings.
- Update GetKeyBinds to include the "emacs" preset.
- Update renderConfigTemplate to include the "emacs" preset.
- Update the help test to include a test case for EmacsKeyBinds.
- Add EmacsKeyBinds function that returns a KeyBind with Emacs-like keybindings. - Update GetKeyBinds to include the "emacs" preset. - Update renderConfigTemplate to include the "emacs" preset. - Update the help test to include a test case for EmacsKeyBinds.
Owner
Author
|
This pull request will be closed and not merged if it does not receive comments from multiple people who will actually use it. Try this branch. git fetch
git switch emacs-keybinds
make
make test
./ov --generate-config=emacs > ov-emacs.yaml
./ov --config ov-emacs.yaml README.mdIf you change a key, you can test for duplicates using go test ./oviewer -v -run 'TestDuplicateKeyBind' |
Some terminals and tcell keyboard protocol modes can report < and > differently (e.g. as alt+shift+, / alt+shift+. or as alt+< / alt+>). To make Emacs-style navigation consistent across terminal/protocol combinations, define both representations for move-top and move-bottom keybindings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.