Repository navigation
feat(tuios): zoomとreloadの間だけfocus枠線をtmuxと同じ色にする - #448
Merged
Merged
Conversation
TUIOS 0.10.1 は zoom / reload で枠線色を変えられないため、prefix z・Ctrl+z・prefix r を tui mode に置き換え、focus 枠線の色だけ違う theme を client へ一時適用する。 zoom 状態は herdr の pane layout から読む。設定ファイルは書き換えない。
3 tasks done
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
tmux の
pane-active-border-styleと同じく、zoom 中は focus 中の枠線を紫#bb9af7、config の reload 中は橙#ff9e64にする。Changes
prefix z/Ctrl+z/prefix rをtui mode zoom|reload(shell command)に置き換え、focus 枠線の色だけ違う theme を client に一時適用する(tuios run-command SetTheme)。prefix_fullscreenを実行してから、herdr のpane layoutで zoom 状態を読み、tokyonight-tmux-zoomかtokyonight-tmuxを適用する。tokyonight-tmux-reloadを適用してからreload_configを実行し、zoom 状態に応じた theme に戻す。SetThemeは client にだけ効き、設定ファイルは書き換えない。themes/tokyonight-tmux-zoom.json/tokyonight-tmux-reload.jsonを追加。zや pane を閉じたことで zoom が解けた場合、次に zoom か reload するまで紫が残る。prefix(黄)は押下を拾う手段がないため、対応しない。反映
新しい theme ファイルを link するため、マージ後に
cd ~/dotfiles && git pull && stow -d common -t ~ --no-folding tuiosを実行し、続けてtuios theme reloadを実行する。Test plan
python3 scripts/test-tui.py(zoom 状態ごとの theme 選択、reload の順序)scripts/check-markdown-links.py/scripts/check-package-duplication.shprefix zで紫、Ctrl+zで青に戻るprefix rの実行中は橙、終わると青に戻るtuios keybinds doctorで衝突なし🤖 Generated with Claude Code