feat: add Zellij as alternative terminal multiplexer #23
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.
Summary
Changes
New files:
internal/daemon/multiplexer.go- Interface definition and factoryinternal/daemon/multiplexer_tmux.go- Tmux implementationinternal/daemon/multiplexer_zellij.go- Zellij implementationModified files:
internal/daemon/process.go- Refactored to use Multiplexer interfaceinternal/daemon/server.go- Initialize multiplexer from configinternal/cli/config.go- Addedmultiplexerdefaultinternal/cli/root.go- AddedgetMultiplexer()helperinternal/cli/up.go- Pass multiplexer to daemon configinternal/cli/agent_watch.go- Support both multiplexers with appropriate keyboard hintsinternal/cli/clean.go- Clean sessions from both multiplexersproto/map/v1/daemon.proto- Added multiplexer field to status messagesREADME.md- Documentation for multiplexer configurationConfiguration
The multiplexer can be configured via (in priority order):
MAP_MULTIPLEXER=zellij~/.mapd/config.yamlwithmultiplexer: zellijtmuxTest plan
MAP_MULTIPLEXER=zellij map upmap config set multiplexer zellijmap agent watchshows correct keyboard shortcuts for each multiplexermap cleanremoves sessions from both multiplexersmake testandgolangci-lint runCloses #14
🤖 Generated with Claude Code