From a680f20614b6845781f930980e49e38feb71e810 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 25 May 2026 11:40:14 +0200 Subject: mozc keybind update --- .config/git/config##template | 2 ++ .config/mozc/.gitattributes | 1 + .config/mozc/config1.db | Bin 1906 -> 2047 bytes .local/share/bin/mozc-config-filter | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 .config/mozc/.gitattributes create mode 100755 .local/share/bin/mozc-config-filter 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 Binary files a/.config/mozc/config1.db and b/.config/mozc/config1.db 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" -- cgit v1.2.3