Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! このプルリクエストは、WezTermとGhosttyという2つの新しいターミナルエミュレータのサポートを既存のドットファイル設定に統合することを目的としています。これにより、ユーザーはより多様なターミナル環境を選択できるようになり、各ターミナルがtmuxとシームレスに連携するように設定が調整されています。ドキュメントも更新され、新しいツールの追加が反映されています。 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughGhostyとWezTermのターミナルエミュレータサポートを追加。新規の設定テンプレートファイルを作成し、既存の設定やパッケージインストールスクリプトをこれら対応に更新。ドキュメントも複数ターミナルエミュレータの列記に変更。 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can disable the changed files summary in the walkthrough.Disable the |
dot_config/ghostty/config.tmpl
Outdated
| keybind = super+w=text:\x02x | ||
| keybind = super+x=text:\x02x | ||
| keybind = super+shift+w=text:\x02d | ||
| keybind = super+z=text:\x02z | ||
| keybind = super+shift+z=text:\x02z |
| send_string_binding("{", "CMD|SHIFT", "\x02p") | ||
| send_string_binding("}", "CMD|SHIFT", "\x02n") | ||
| send_string_binding("{", "CMD|SHIFT|OPT", "\x02\x18") | ||
| send_string_binding("}", "CMD|SHIFT|OPT", "\x02\x19") |
There was a problem hiding this comment.
{ や } のようなShiftキーを伴う文字を key に指定すると、weztermが暗黙的に SHIFT 修飾子を追加します。そのため、mods にも SHIFT を指定すると冗長になり、可読性が低下する可能性があります。
より明確にするために、ベースとなるキー(例: [)を key に指定し、mods に SHIFT を含める形に統一することをお勧めします。
send_string_binding("[", "CMD|SHIFT", "\x02p")
send_string_binding("]", "CMD|SHIFT", "\x02n")
send_string_binding("[", "CMD|SHIFT|OPT", "\x02\x18")
send_string_binding("]", "CMD|SHIFT|OPT", "\x02\x19")
| case "${TERM:-}" in | ||
| alacritty|rio|wezterm|ghostty|xterm-ghostty) | ||
| should_auto_attach_tmux=1 | ||
| ;; | ||
| esac | ||
|
|
||
| case "${TERM_PROGRAM:-}" in | ||
| WezTerm|ghostty|Ghostty) | ||
| should_auto_attach_tmux=1 | ||
| ;; | ||
| esac |
There was a problem hiding this comment.
現在の実装では、$TERM と $TERM_PROGRAM をチェックするために2つの case 文が使用されています。これは正常に動作しますが、より簡潔で効率的に記述できます。
最初の case 文で一致しなかった場合にのみ2つ目の case 文を評価するようにネストすることで、可読性と効率を改善できます。
case "${TERM:-}" in
alacritty|rio|wezterm|ghostty|xterm-ghostty)
should_auto_attach_tmux=1
;;
*)
case "${TERM_PROGRAM:-}" in
WezTerm|ghostty|Ghostty)
should_auto_attach_tmux=1
;;
esac
;;
esac
| thock | ||
| thebrowsercompany-dia | ||
| visual-studio-code | ||
| wezterm@nightly |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (2)
dot_config/wezterm/wezterm.lua (1)
129-131: Ubuntu-20.04のバージョン確認WSLのデフォルトディストリビューションとして
Ubuntu-20.04が指定されていますが、Ubuntu 20.04は2025年4月にEOLを迎えています。より新しいLTSバージョン(例:Ubuntu-24.04)の使用を検討してください。♻️ 新しいUbuntuバージョンへの更新
else - config.default_prog = { "wsl.exe", "~", "-d", "Ubuntu-20.04" } + config.default_prog = { "wsl.exe", "~", "-d", "Ubuntu-24.04" } end🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@dot_config/wezterm/wezterm.lua` around lines 129 - 131, The config sets config.default_prog to launch wsl.exe with the hardcoded distribution "Ubuntu-20.04", which is EOL; update the distro string to a supported LTS (e.g., "Ubuntu-24.04") or make it configurable via an environment variable so future upgrades are easier; specifically modify the config.default_prog entry (and any place that references "Ubuntu-20.04") to use "Ubuntu-24.04" or process.env.WSL_DISTRO_NAME with a sensible default.dot_config/ghostty/config.tmpl (1)
58-62: 重複するキーバインディングの確認以下のキーバインディングが同じ値にマッピングされています:
super+wとsuper+xが両方とも\x02x(tmux kill-pane)super+zとsuper+shift+zが両方とも\x02z(tmux zoom)意図的な設定であれば問題ありませんが、
super+xやsuper+shift+zに別の機能を割り当てることも検討できます。🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@dot_config/ghostty/config.tmpl` around lines 58 - 62, 設定ファイル内のキーバインディングで super+w と super+x が両方とも `\x02x` に、また super+z と super+shift+z が両方とも `\x02z` に割り当てられており(キー行: `keybind = super+w`, `keybind = super+x`, `keybind = super+shift+w`, `keybind = super+z`, `keybind = super+shift+z`)、重複が発生しています。意図しない重複なら `super+x` と/または `super+shift+z` のマッピングを変更して別機能を割り当てるか、重複を削除して片方をコメントアウト/削除してください(例: `super+x` を `\x02...` の別シーケンスにする、または `super+shift+z` を削除して `super+z` のみを残す)。確認が必要な場合は、どちらのショートカットを保持するか明示してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@dot_config/tmux/tmux.conf`:
- Line 23: tmuxのterminal-overrides行 ("set -ag terminal-overrides
\",alacritty:RGB,rio:Tc,wezterm:RGB,xterm-ghostty:RGB,ghostty:RGB\"") は WezTerm
側の wezterm.lua で config.term = "xterm-256color" が設定されていると wezterm:RGB
オーバーライドが効かないため、ターミナル名の不整合を解消してください。対応策としては tmux.conf の terminal-overrides に
xterm-256color:RGB を追加するか、WezTerm の設定ファイル wezterm.lua の config.term を "wezterm"
に変更して wezterm:RGB オーバーライドが確実に適用されるようにしてください。
In `@dot_config/wezterm/wezterm.lua`:
- Line 21: The TERM detection in your zshrc (the case "${TERM:-}" branch that
checks for "wezterm") is effectively dead because wezterm.lua sets config.term =
"xterm-256color"; either make the values consistent or change detection: update
wezterm.lua's config.term to a value that zshrc expects (e.g., "wezterm") or
modify dot_zshrc to detect wezterm via TERM_PROGRAM (WezTerm) instead of TERM;
locate the symbols config.term in wezterm.lua and the case "${TERM:-}" branch in
dot_zshrc and apply the matching change so the TERM-based branch is reachable.
In `@dot_config/zsh/dot_zshrc`:
- Around line 6-10: The case branch that checks for "wezterm" in the TERM check
is dead code because wezterm.lua sets config.term = "xterm-256color", so $TERM
will never be "wezterm"; update the case block that sets should_auto_attach_tmux
to either remove the "wezterm" token from the pattern
(alacritty|rio|ghostty|xterm-ghostty) or, if you prefer to keep it for clarity,
add a short comment next to "wezterm" explaining that wezterm sets TERM to
xterm-256color via wezterm.lua (and that TERM_PROGRAM-based detection via
TERM_PROGRAM is the authoritative check used elsewhere).
---
Nitpick comments:
In `@dot_config/ghostty/config.tmpl`:
- Around line 58-62: 設定ファイル内のキーバインディングで super+w と super+x が両方とも `\x02x` に、また
super+z と super+shift+z が両方とも `\x02z` に割り当てられており(キー行: `keybind = super+w`,
`keybind = super+x`, `keybind = super+shift+w`, `keybind = super+z`, `keybind =
super+shift+z`)、重複が発生しています。意図しない重複なら `super+x` と/または `super+shift+z`
のマッピングを変更して別機能を割り当てるか、重複を削除して片方をコメントアウト/削除してください(例: `super+x` を `\x02...`
の別シーケンスにする、または `super+shift+z` を削除して `super+z`
のみを残す)。確認が必要な場合は、どちらのショートカットを保持するか明示してください。
In `@dot_config/wezterm/wezterm.lua`:
- Around line 129-131: The config sets config.default_prog to launch wsl.exe
with the hardcoded distribution "Ubuntu-20.04", which is EOL; update the distro
string to a supported LTS (e.g., "Ubuntu-24.04") or make it configurable via an
environment variable so future upgrades are easier; specifically modify the
config.default_prog entry (and any place that references "Ubuntu-20.04") to use
"Ubuntu-24.04" or process.env.WSL_DISTRO_NAME with a sensible default.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ebe5a92d-aee3-476f-b567-1f1b5a30466a
📒 Files selected for processing (8)
CLAUDE.mdREADME.mddot_config/brew/brew_cask.jsondot_config/ghostty/config.tmpldot_config/tmux/tmux.confdot_config/wezterm/wezterm.luadot_config/zsh/dot_zshrcrun_once_install-packages_mac.sh
Summary by CodeRabbit
リリースノート
新機能
ドキュメント
Chores