Repository navigation
Leave evil insert state when entering a read-only mode - #717
Merged
Merged
Conversation
Entering copy or Emacs mode from evil insert state left insert state active. Insert state binds no printable keys, so j, k and other motions hit the read-only fast-exit map, leaving copy mode and typing the letter into the terminal. ghostel-readonly-enter-hook runs after entering copy or Emacs mode. evil-ghostel uses it to switch insert state to normal state, which covers every entry path: C-c C-t, Emacs mode, prompt and link jumps, mouse selection, and search / minibuffer landings. Emacs state keeps the fast exit. The evil read-only elate suite covers C-c C-t and isearch from insert state. The word-boundaries suite, documented but never added, starts each double-click in insert state and checks that the resulting visual selection copies exactly the selected text. Supersedes #670.
dakra
force-pushed
the
fix/evil-readonly-entry-normal-state
branch
from
September 30, 2026 12:18
4d04d3a to
8cc9173
Compare
Closed
This branch was successfully deployed
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.
Entering copy or Emacs mode from evil insert state left insert state active. Insert state binds no printable keys, so
j,kand other motions hit the read-only fast-exit map, leaving copy mode and typing the letter into the terminal.ghostel-readonly-enter-hook, run after entering copy or Emacs mode.C-c C-t, Emacs mode, prompt and link jumps, mouse selection, and search / minibuffer landings. Emacs state keeps the fast exit.Supersedes #670: with insert state kept out of read-only modes (this PR) and read-only modes left on insert entry (#716), the fast-exit opt-out and the insert-state ESC handling there are no longer needed.