v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-16 15:50:52 -07:00

docs: keymap keys without double prime

This commit is contained in:
eeeXun 2023-07-02 13:11:15 +08:00
parent 09207e7e3d
commit 22aa6c5333
2 changed files with 18 additions and 18 deletions

View File

@ -142,11 +142,11 @@ You can overwrite the following key
- `toggle_transparent`: Toggle transparent. - `toggle_transparent`: Toggle transparent.
- `toggle_below`: Toggle Definition/Example & Part of speech. - `toggle_below`: Toggle Definition/Example & Part of speech.
For key to combine with `Ctrl`, the value can be `"C-Space"`, `"C-\\"`, `"C-]"`, `"C-^"`, `"C-_"` or `"C-a"` to `"C-z"`. For key to combine with `Ctrl`, the value can be `C-Space`, `C-\`, `C-]`, `C-^`, `C-_` or `C-a` to `C-z`.
For key to combine with `Alt`, the value can be `"A-Space"` or `"A-"` + the character you want. For key to combine with `Alt`, the value can be `A-Space` or `A-` with the character you want.
Or you can use function key, the value can be `"F1"` to `"F64"`. Or you can use function key, the value can be `F1` to `F64`.
See the example in [keymap.yaml](example/keymap.yaml) file. This file should be located at `$XDG_CONFIG_HOME/gtt/keymap.yaml` or `$HOME/.config/gtt/keymap.yaml`. See the example in [keymap.yaml](example/keymap.yaml) file. This file should be located at `$XDG_CONFIG_HOME/gtt/keymap.yaml` or `$HOME/.config/gtt/keymap.yaml`.

View File

@ -1,35 +1,35 @@
# This file should be located at $XDG_CONFIG_HOME/gtt/keymap.yaml or $HOME/.config/gtt/keymap.yaml. # This file should be located at $XDG_CONFIG_HOME/gtt/keymap.yaml or $HOME/.config/gtt/keymap.yaml.
# For key to combine with Ctrl, the value can be "C-Space", "C-\\", "C-]", "C-^", "C-_" or "C-a" to "C-z". # For key to combine with Ctrl, the value can be C-Space, C-\, C-], C-^, C-_ or C-a to C-z.
# For key to combine with Alt, the value can be "A-Space" or "A-" + the character you want. # For key to combine with Alt, the value can be A-Space or A- with the character you want.
# Or you can use function key, the value can be "F1" to "F64". # Or you can use function key, the value can be F1 to F64.
# The following is the default key map # The following is the default key map
# Exit program, <C-c> # Exit program, <C-c>
exit: "C-c" exit: C-c
# Translate from source to destination window, <C-j> # Translate from source to destination window, <C-j>
translate: "C-j" translate: C-j
# Swap language, <C-s> # Swap language, <C-s>
swap_language: "C-s" swap_language: C-s
# Clear all text in source of translation window, <C-q> # Clear all text in source of translation window, <C-q>
clear: "C-q" clear: C-q
# Copy selected text, <C-y> # Copy selected text, <C-y>
copy_selected: "C-y" copy_selected: C-y
# Copy all text in source of translation window, <C-g> # Copy all text in source of translation window, <C-g>
copy_source: "C-g" copy_source: C-g
# Copy all text in destination of translation window, <C-r> # Copy all text in destination of translation window, <C-r>
copy_destination: "C-r" copy_destination: C-r
# Play text to speech on source of translation window, <C-o> # Play text to speech on source of translation window, <C-o>
tts_source: "C-o" tts_source: C-o
# Play text to speech on destination of translation window, <C-p> # Play text to speech on destination of translation window, <C-p>
tts_destination: "C-p" tts_destination: C-p
# Stop playing text to speech, <C-x> # Stop playing text to speech, <C-x>
stop_tts: "C-x" stop_tts: C-x
# Toggle transparent, <C-t> # Toggle transparent, <C-t>
toggle_transparent: "C-t" toggle_transparent: C-t
# Toggle Definition/Example & Part of speech, <C-\> # Toggle Definition/Example & Part of speech, <C-\>
toggle_below: "C-\\" toggle_below: C-\