aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-05-25 11:40:14 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-05-25 11:40:14 +0200
commita680f20614b6845781f930980e49e38feb71e810 (patch)
tree69c274150364e315c59fae9ba2f1256ca272e0aa
parent5a9ceb7b017187741ea725800236321dbc61068a (diff)
mozc keybind updateHEADmaster
-rw-r--r--.config/git/config##template2
-rw-r--r--.config/mozc/.gitattributes1
-rw-r--r--.config/mozc/config1.dbbin1906 -> 2047 bytes
-rwxr-xr-x.local/share/bin/mozc-config-filter6
4 files changed, 9 insertions, 0 deletions
diff --git a/.config/git/config##template b/.config/git/config##template
index 85f9b50..067832b 100644
--- a/.config/git/config##template
+++ b/.config/git/config##template
@@ -49,3 +49,5 @@
syntax-theme = base16
[safe]
directory = *
+[diff "mozc_config"]
+ textconv = mozc-config-filter
diff --git a/.config/mozc/.gitattributes b/.config/mozc/.gitattributes
new file mode 100644
index 0000000..078cff9
--- /dev/null
+++ b/.config/mozc/.gitattributes
@@ -0,0 +1 @@
+config1.db binary diff=mozc_config
diff --git a/.config/mozc/config1.db b/.config/mozc/config1.db
index e116637..65f9cde 100644
--- a/.config/mozc/config1.db
+++ b/.config/mozc/config1.db
Binary files differ
diff --git a/.local/share/bin/mozc-config-filter b/.local/share/bin/mozc-config-filter
new file mode 100755
index 0000000..bc33c20
--- /dev/null
+++ b/.local/share/bin/mozc-config-filter
@@ -0,0 +1,6 @@
+#!/bin/sh
+yay_dir="$(jq --raw-output .buildDir "$XDG_CONFIG_HOME/yay/config.json")"
+config_proto="$(mktemp)"
+git --git-dir="$yay_dir/mozc-ut/mozc" show HEAD:src/protocol/config.proto > "$config_proto"
+protoc --proto_path /tmp --decode=mozc.config.Config "$config_proto" < "$1"
+rm -f "$config_proto"