mode-keys option is display-onlyFile: src/window.zig:201-206; option table src/options.zig:268
Severity: MEDIUM
Status: ✅ FIXED
Pane.enterCopyMode reads the window’s mode-keys option (default vi) and constructs CopyMode with the matching keymap (emacs is available by setting mode-keys emacs)./ and ? activate copy-mode search mode and prompt across both keymaps with immediate server.dirty status repaint.q → exit, matching tmux 3.x’s unified copy-mode table.prefix2 option removed from SESSION_OPTIONS — it was never consulted.Test: enterCopyMode honours mode-keys option — bug #384
(default vi, then switch to emacs via window option).
pub fn enterCopyMode(self: *Pane) !void {
...
self.screen.copy_mode = @import("mode_copy.zig").CopyMode.init(.vi);
The only construction site passes .vi. Users setting mode-keys emacs see no
change; users relying on the documented default get vi keys anyway. The entire
emacs handler (handleEmacsKey, mode_copy.zig:801-906) can never run.
Read the session’s mode-keys option in enterCopyMode and pass it through;
while there, wire or delete the sibling dead option prefix2
(options.zig:246, zero consumers).