zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Kakoune text editor starts with 'y' character in buffer

Open evannjohnson opened this issue 6 months ago • 0 comments

1. Graphical issue inside a terminal pane (eg. something does not look as it should)

Basic information

zellij --version: zellij 0.40.1

stty size: 54 189

uname -av or ver(Windows): Darwin my-computer.lan 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64

Further information

Background: kakoune is a vim-inspired text editor. You can tell it to run commands after it initializes with the -e flag:

kak -e 'exec i'

That command will launch kakoune, then run the exec i command, which is short for execute-keys i, which will virtually press the 'i' key, entering insert mode. The intent is that kakoune starts in insert mode instead of normal mode.

The issue is that when this command is run inside of zellij, it does start in insert mode, but a 'y' character is placed into the buffer. This occurs in every situation I have tested it in:

  • tested in Kitty, Wezterm, and the native macOS Terminal
  • tested in zsh, bash, and fish
  • occurs whether executed at the command line, or run in a script
  • tested with vanilla no-config zellij

Logs

zellij-13.log zellij.log

One line is jumping out at me, as the timing lines up for this being when I launch kakoune:

zellij.log:11:WARN   |zellij_server::panes::gri| 2024-08-11 11:14:18.206 [screen    ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 61->[]

This unhandled escape code does not occur when launching kakoune without -e 'exec i'.

evannjohnson avatar Aug 11 '24 17:08 evannjohnson