Repository navigation
Conversation
Keep copy mode active for Vim motions and allow ESC to recover from read-only insert state.
ivanrg99
force-pushed
the
3-evil-copy-mode
branch
from
September 2, 2026 13:07
7baae77 to
0433a6e
Compare
dakra
added a commit
that referenced
this pull request
Sep 30, 2026
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.
Owner
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.
Keep copy mode active for Vim motions and allow ESC to recover from read-only insert state.