From f425ec196d84deebaee92de297105cc4a0de2cc6 Mon Sep 17 00:00:00 2001 From: eeeXun Date: Fri, 23 Jun 2023 22:02:00 +0800 Subject: [PATCH] refactor: rename config key name --- config.go | 8 ++++---- example/keymap.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.go b/config.go index cbbe1fb..99bf146 100644 --- a/config.go +++ b/config.go @@ -21,10 +21,10 @@ func configInit() { "swap_language": "s", "clear": "q", "copy_selected": "y", - "copy_src": "g", - "copy_dst": "r", - "tts_src": "o", - "tts_dst": "p", + "copy_source": "g", + "copy_destination": "r", + "tts_source": "o", + "tts_destination": "p", "stop_tts": "x", "toggle_transparent": "t", "toggle_below": "\\", diff --git a/example/keymap.yaml b/example/keymap.yaml index 08b460d..aadf248 100644 --- a/example/keymap.yaml +++ b/example/keymap.yaml @@ -12,13 +12,13 @@ clear: "q" # Copy selected text, copy_selected: "y" # Copy all text in source of translation window, -copy_src: "g" +copy_source: "g" # Copy all text in destination of translation window, -copy_dst: "r" +copy_destination: "r" # Play text to speech on source of translation window, -tts_src: "o" +tts_source: "o" # Play text to speech on destination of translation window, -tts_dst: "p" +tts_destination: "p" # Stop playing text to speech, stop_tts: "x" # Toggle transparent,