fix(zellij): repair scrollback logging on shell exit #55
Reference in New Issue
Block a user
Delete Branch "fix/zellij-logging-dump-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Zellij pane logging never produced any log files. Root cause:
functions/zellij.fishwrapped everyzellijinvocation aszellij options --theme catppuccin-mocha <args>— valid only for launching a new session. This mangled every subcommand (action,attach,list-sessions,--version), including thezellij action dump-screencall inside_zellij_dump_log, so the dump always errored out silently. The theme is already set inconfig.kdl:314, making the wrapper redundant.Changes
functions/zellij.fish— redundant (theme is inconfig.kdl) and broke every zellij subcommand._zellij_dump_log:--path(server-side write, flaky).--ansito preserve color in logs.exit/Ctrl-D), unlike tmux's continuouspipe-panestream. Closing a pane or quitting zellij tears down the pane/server before it can be dumped. Documented indocs/fish-config.md(Section 7, C5),README.md, and removed the stalezellijfunction entry fromdocs/fish-config.index.Manual Verification
zellij --version— prints the version (nooptions --themeusage error)._zellij_dump_log, thenls -lt ~/.terminal_history/zellij_*.log— a new log file appears.less -Rorov— scrollback is present with color preserved.exit/ Ctrl-D — azellij_<session>-p<pane>_<timestamp>.logis created.zellij(now sourced fromconfig.kdl).grep -rn 'zellij' docs/fish-config.md README.md— no references to the removed wrapper function remain.