Open
Conversation
13f3fa0 to
7b3e183
Compare
The scratch pane can now follow across window/session switches via shell-based tmux hooks (~5ms per switch, no Python on the hot path). Per-server state files in ~/.local/state/lemonaid/: scratch-follow-<server> — "on" or empty scratch-pane-<server> — pane ID (plain text, was JSON) scratch-height-<server> — preserved height across switches scratch-follow.sh — shell hook script, generated once Setup: `lemonaid tmux scratch --follow` enables follow and prints the set-hook lines to add to .tmux.conf. --unfollow disables. Config: follow_scratch in [tmux-session] bootstraps the follow file on first run for new servers. In follow mode: - prefix+l toggles focus between scratch and main pane (never hides) - q in lma hides the pane; hooks no-op until next prefix+l - Pane height is saved before switches and restored by the hook - Selecting a notification doesn't auto-hide the pane
7b3e183 to
004034a
Compare
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.
Summary
The scratch pane can now follow across window/session switches. When enabled, switching windows or sessions in tmux automatically moves the scratch pane into the new window — keeping a persistent bird's-eye view of lemonaid sessions.
tmux join-panedirectly.prefix+lin follow mode toggles focus between scratch and main pane instead of hiding.qin lma temporarily parks the pane; nextprefix+lbrings it back with follow still active.--follow/--unfollowCLI to enable/disable per-server. Prints copy-pasteableset-hooklines for.tmux.confif not already present.scratch_height— default pane height, configurable in[tmux-session]. No more--heightflag needed in keybindings.follow_scratch— bootstraps follow state for new tmux servers on first scratch pane creation.Per-server state files in
~/.local/state/lemonaid/:tmux-scratch-<server>-follow— "on" or emptytmux-scratch-<server>-pane— pane ID (plain text, migrated from JSON)tmux-scratch-<server>-height— last known height in rowsTest plan
lemonaid tmux scratch --followenables + prints.tmux.conflinesprefix+ltoggles focus, doesn't hide paneqparks pane, hooks no-op until nextprefix+l--unfollowdisables, hooks become no-opscratch_heightconfig respected by all paths