mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 21:44:39 +08:00
cleanup: remove unused help mode
This commit is contained in:
parent
f99103ede6
commit
69d3b76512
3 changed files with 7 additions and 4 deletions
|
|
@ -50,6 +50,8 @@
|
||||||
module instead of hard-coding one key per language.
|
module instead of hard-coding one key per language.
|
||||||
- Language parsing, language-code output, and help-language cycling now share
|
- Language parsing, language-code output, and help-language cycling now share
|
||||||
one internal language registry.
|
one internal language registry.
|
||||||
|
- Removed the unused `MODE_HELP` enum value and refreshed development-guide
|
||||||
|
module descriptions for the split between language parsing and text lookup.
|
||||||
- Documented i18n and user-facing text rules for English-first source text,
|
- Documented i18n and user-facing text rules for English-first source text,
|
||||||
stable command syntax, concise help copy, and translation-only localization.
|
stable command syntax, concise help copy, and translation-only localization.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,8 @@ src/
|
||||||
├── history_view.c - NORMAL-mode scroll window rules
|
├── history_view.c - NORMAL-mode scroll window rules
|
||||||
├── tui.c - Terminal UI rendering (ANSI escape codes)
|
├── tui.c - Terminal UI rendering (ANSI escape codes)
|
||||||
├── tui_status.c - Mode/status/input-line rendering
|
├── tui_status.c - Mode/status/input-line rendering
|
||||||
├── i18n.c - Language selection and shared UI text
|
├── i18n.c - UI language selection and locale parsing
|
||||||
|
├── i18n_text.c - Shared UI text catalog
|
||||||
├── help_text.c - Full-screen key reference text
|
├── help_text.c - Full-screen key reference text
|
||||||
├── manual.c - Concise manual panel rendering
|
├── manual.c - Concise manual panel rendering
|
||||||
├── manual_text.c - Concise manual text
|
├── manual_text.c - Concise manual text
|
||||||
|
|
@ -395,7 +396,8 @@ case MODE_INSERT:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Update `src/help_text.c` and status hints in `src/i18n.c` / `src/tui_status.c` if the binding is user-visible.**
|
2. **Update `src/help_text.c` and status hints in `src/i18n_text.c` /
|
||||||
|
`src/tui_status.c` if the binding is user-visible.**
|
||||||
|
|
||||||
3. **Document in README.md**
|
3. **Document in README.md**
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,7 @@
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MODE_INSERT,
|
MODE_INSERT,
|
||||||
MODE_NORMAL,
|
MODE_NORMAL,
|
||||||
MODE_COMMAND,
|
MODE_COMMAND
|
||||||
MODE_HELP
|
|
||||||
} client_mode_t;
|
} client_mode_t;
|
||||||
|
|
||||||
/* UI language */
|
/* UI language */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue