docs: fix broken nested markdown code blocks and format configuration section in README.md

This commit is contained in:
Khoa Vo 2026-07-04 22:12:20 +07:00
parent 0495c7cbd7
commit 9d35db103e

View file

@ -197,6 +197,10 @@ toggle_method_key = "shift" # Ctrl+Shift to toggle VNI/Telex
start_enabled = true # Vietnamese by default start_enabled = true # Vietnamese by default
grab = true # grab keyboard (evdev) grab = true # grab keyboard (evdev)
[auto_restore]
enabled = false # Auto-restore English words (defaults to false)
trigger_keys = ["space", "escape"]
[password_detection] [password_detection]
enabled = true enabled = true
check_atspi2 = true check_atspi2 = true
@ -212,21 +216,9 @@ enabled = true
english_apps = ["code", "vim"] english_apps = ["code", "vim"]
vietnamese_apps = ["telegram", "discord", "firefox"] vietnamese_apps = ["telegram", "discord", "firefox"]
bypass_apps = ["steam"] bypass_apps = ["steam"]
### Terminal Usage
Viet+ works perfectly in terminals. When running inside a terminal (e.g., gnome-terminal, kitty), Vietnamese input is automatically enabled:
```toml
terminal_input_method = "vni" # Automatically switch to VNI when running in a terminal app
```
Supported terminals: `kitty`, `alacritty`, `gnome-terminal`, `konsole`, `foot`, `wezterm`, `st`, `urxvt`, `xterm`
Type Vietnamese directly — no pre-edit buffer, no underline, no duplication. Just type VNI or Telex digits and see Unicode characters instantly!
terminal_apps = ["kitty", "alacritty", "gnome-terminal", "konsole", "foot", terminal_apps = ["kitty", "alacritty", "gnome-terminal", "konsole", "foot",
"wezterm", "st", "urxvt", "xterm"] "wezterm", "st", "urxvt", "xterm"]
terminal_input_method = "vni" terminal_input_method = "vni" # Automatically switch to VNI when running in a terminal app
[macros] [macros]
ko = "không" ko = "không"
@ -234,6 +226,14 @@ dc = "được"
vs = "với" vs = "với"
``` ```
### Terminal Usage
Viet+ works perfectly in terminals. When running inside a terminal (e.g., gnome-terminal, kitty), Vietnamese input is automatically enabled using the input method specified by `terminal_input_method` under `[app_state]`.
Supported terminals: `kitty`, `alacritty`, `gnome-terminal`, `konsole`, `foot`, `wezterm`, `st`, `urxvt`, `xterm`
Type Vietnamese directly — no pre-edit buffer, no underline, no duplication. Just type VNI or Telex digits and see Unicode characters instantly!
--- ---
## Architecture ## Architecture