From 9074406167e5a16e14884e9168cfb9bcc982b6ad Mon Sep 17 00:00:00 2001 From: Yuichi TSUNEMATSU Date: Thu, 3 Sep 2026 10:36:37 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=AE=9F=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E5=81=B4=E3=81=AB=E6=BA=9C=E3=81=BE=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=83=89=E3=83=AA=E3=83=95=E3=83=88=E3=82=92=20chezmoi=20?= =?UTF-8?q?=E3=81=AB=E5=8F=96=E3=82=8A=E8=BE=BC=E3=82=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `chezmoi apply` を引数なしで実行すると、`.claude` 以外の3ファイルが古い内容 に巻き戻る状態だった。PR #81 の作業中に気づいたもので、apply のたびにスコープ を指定しないと事故る。実ファイル側が正なので、そちらを取り込む。 **`.zshrc`** — Rancher Desktop がインストール時に書いた PATH のブロックが リポジトリ側に無く、apply すると消えていた。消えると新しいシェルで docker が 見つからなくなる。 取り込むにあたり絶対パスを `$HOME` に変えた。このリポジトリは public で、 絶対パスにはアカウント名が入る。同じファイルの `$HOME/go/bin` に揃う形でもある。 `zsh -n` と、置換後の行を評価して `command -v docker` が解決することを確認済み。 ブロックには DO NOT EDIT と書いてあるが、これは Rancher Desktop 自身が 再生成するという意味である。再生成されれば絶対パスに戻ってドリフトが再発する ので、そのときは同じように取り込み直す。 **`.config/git/ignore`** — `**/.claude/.cc-writes/` の行が実ファイルにだけ あった。 **`.config/snapzy/config.toml`** — アプリが 1.30.1 から 1.31.0 に上がった際に `[menu_bar]` 節などを書き足していた。48 行が apply で消える状態だった。 なお snapzy はアプリ自身が随時書き換えるため、これからも定期的にドリフトする。 毎回取り込むのが面倒なら `.chezmoiignore` に入れて管理外にする手もある。今回は 取り込む側に倒した。機微な値は無いことを確認済み(bucket と endpoint は空、 `key = "3"` はショートカットキー)。 適用後の `chezmoi diff` は `.zshrc` の `$HOME` 置換1行だけになる。 Co-Authored-By: Claude Opus 5 (1M context) --- dot_zshrc | 4 ++ private_dot_config/git/ignore | 2 + private_dot_config/snapzy/config.toml | 60 ++++++++++++++++++++++++++- 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index 6f9ef27..af9b29d 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -68,3 +68,7 @@ fi ## local固有設定を読み込み [ -f ~/.zshrc.local ] && source ~/.zshrc.local + +### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT) +export PATH="$HOME/.rd/bin:$PATH" +### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT) diff --git a/private_dot_config/git/ignore b/private_dot_config/git/ignore index fe7ccfb..87ccf38 100644 --- a/private_dot_config/git/ignore +++ b/private_dot_config/git/ignore @@ -3,3 +3,5 @@ .vscode/* .DS_Store **/.claude/settings.local.json + +**/.claude/.cc-writes/ diff --git a/private_dot_config/snapzy/config.toml b/private_dot_config/snapzy/config.toml index 1ca7783..a532f76 100644 --- a/private_dot_config/snapzy/config.toml +++ b/private_dot_config/snapzy/config.toml @@ -1,5 +1,5 @@ schema_version = 1 -snapzy_min_version = "1.30.1" +snapzy_min_version = "1.31.0" [general] language = "ja" @@ -19,6 +19,11 @@ channel = "stable" enabled = true retention_days = 3 +[menu_bar] +icon_style = "default" +item_order = ["captureArea", "captureAreaAnnotate", "captureApplication", "captureFullscreen", "captureActiveWindow", "scrollingCapture", "captureOCR", "captureSmartElement", "captureObjectCutout", "recordScreen", "recordApplication", "openAnnotate", "combineImages", "editVideo", "cloudUploads", "openHistory", "shortcutList"] +hidden_items = [] + [capture] hide_desktop_icons = false hide_desktop_widgets = false @@ -34,12 +39,16 @@ show_cursor = false freeze_area = false show_selection_area_overlay = true reverse_magnifier_zoom_direction = false +show_magnifier_by_default = false +show_magnifier_color_panel = true [capture.scrolling] show_hints = true [capture.ocr] -success_notification = false +success_notification = true +selected_model = "builtin" +custom_models = "[]" [capture.object_cutout] auto_crop = true @@ -140,10 +149,14 @@ uploads_window_position = "center" [annotate] clipboard_image_open_behavior = "ask" +default_tool = "selection" +remember_last_tool = false close_after_drag = true bring_forward_after_drag = false quick_properties_sync = true combine_save_as_edit = true +crop_snap_to_edges = true +highlighter_text_snapping = true [shortcuts] enabled = true @@ -158,6 +171,11 @@ enabled = true key = "4" modifiers = ["command", "shift"] +[shortcuts.global.repeat_area] +enabled = true +key = "4" +modifiers = ["command", "shift", "control"] + [shortcuts.global.area_annotate] enabled = true key = "7" @@ -253,6 +271,44 @@ enabled = false key = "↩" modifiers = ["command"] +[shortcuts.quick_access.card_actions] +enabled = true + +[shortcuts.quick_access.card_actions.copy] +enabled = true +key = "C" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.save_or_open] +enabled = true +key = "S" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.dismiss] +enabled = true +key = "W" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.delete] +enabled = true +key = "⌫" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.edit] +enabled = true +key = "E" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.upload_to_cloud] +enabled = true +key = "U" +modifiers = ["command"] + +[shortcuts.quick_access.card_actions.pin_to_screen] +enabled = true +key = "P" +modifiers = ["command"] + [shortcuts.annotate_tools] disabled = [] crop = "c"