diff options
| -rw-r--r-- | .config/git/config##template | 2 | ||||
| -rw-r--r-- | .config/mozc/.gitattributes | 1 | ||||
| -rw-r--r-- | .config/mozc/config1.db | bin | 1906 -> 2047 bytes | |||
| -rwxr-xr-x | .local/share/bin/mozc-config-filter | 6 |
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 Binary files differindex e116637..65f9cde 100644 --- a/.config/mozc/config1.db +++ b/.config/mozc/config1.db 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" |