Skip to content

Commit f25e7ee

Browse files
montfortclaude
andauthored
chore(cli): remove undocumented vim aliases l and h (cli-3.5.2) (#63)
The TUI silently treated lowercase 'l' as a synonym for Enter / Right (open document) and lowercase 'h' as a synonym for Esc / Left (back). Neither was listed in the '?' help popup or the status bar, and the 'l' alias clashed with the language switcher 'L' added in cli-3.5.0 — slipping off Shift dropped you into "open document" instead of cycling languages. Drop both. The documented vim-style alternates that DO appear in the help popup (j / k for navigation and scroll, g / G for top/bottom, n / N for next/previous) stay untouched. Update CLI-REFERENCE.md (EN / ES / zh-CN) so the feature bullet stops advertising "vim-style keybindings" and instead names the specific j/k alternates we keep. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2bdf8be commit f25e7ee

10 files changed

Lines changed: 39 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project uses [independent versioning](README.md#versioning) for Framewo
77

88
---
99

10+
## CLI 3.5.2 — Remove Undocumented Vim-Style Aliases (`l`, `h`)
11+
12+
### Changed (CLI)
13+
- `devtrail explore` no longer treats lowercase `l` as a synonym for `Enter` / `Right` (open document / expand group) and no longer treats lowercase `h` as a synonym for `Esc` / `Left` (back / collapse). These bindings were never documented in the `?` help popup nor the status bar, and `l` clashed with the language switcher key `L` introduced in cli-3.5.0 — users pressing `L` could land on `l` if Shift slipped, accidentally opening a document instead of cycling languages. The documented `j` / `k`, `g` / `G`, and `n` / `N` keys (all listed in the help popup) remain unchanged.
14+
- "Fullscreen document mode, vim-style keybindings" is now described as "alternate `j` / `k` keys for `` / ``" in `docs/adopters/CLI-REFERENCE.md` (EN / ES / zh-CN). DevTrail no longer claims vim compatibility — only specific documented alternates.
15+
16+
---
17+
1018
## CLI 3.5.1 — Metadata Panel and Welcome Screen i18n Coverage
1119

1220
### Fixed (CLI)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ DevTrail uses independent version tags for each component:
207207
| Component | Tag prefix | Example | Includes |
208208
|-----------|-----------|---------|----------|
209209
| Framework | `fw-` | `fw-4.3.0` | Templates (12 types), governance, directives |
210-
| CLI | `cli-` | `cli-3.5.1` | The `devtrail` binary |
210+
| CLI | `cli-` | `cli-3.5.2` | The `devtrail` binary |
211211

212212
Check installed versions with `devtrail status` or `devtrail about`.
213213

cli/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "devtrail-cli"
3-
version = "3.5.1"
3+
version = "3.5.2"
44
edition = "2021"
55
description = "CLI tool for DevTrail - Documentation Governance for AI-Assisted Development"
66
license = "MIT"

cli/src/tui/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn handle_key(app: &mut App, key: KeyEvent) {
7575
},
7676

7777
// Enter: open/expand or follow selected related link
78-
KeyCode::Enter | KeyCode::Char('l') | KeyCode::Right => {
78+
KeyCode::Enter | KeyCode::Right => {
7979
if app.active_panel == ActivePanel::Navigation {
8080
app.nav_enter();
8181
} else if app.active_panel == ActivePanel::Metadata
@@ -86,7 +86,7 @@ fn handle_key(app: &mut App, key: KeyEvent) {
8686
}
8787

8888
// Back: collapse/go back / clear search
89-
KeyCode::Esc | KeyCode::Char('h') | KeyCode::Left => {
89+
KeyCode::Esc | KeyCode::Left => {
9090
match app.active_panel {
9191
ActivePanel::Document if key.code == KeyCode::Esc => {
9292
if app.view_mode == ViewMode::Fullscreen {

docs/adopters/CLI-REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DevTrail uses **independent version tags** for each component:
4949
| Component | Tag prefix | Example | What it includes |
5050
|-----------|-----------|---------|------------------|
5151
| Framework | `fw-` | `fw-4.3.0` | Templates (12 types), governance docs, directives |
52-
| CLI | `cli-` | `cli-3.5.1` | The `devtrail` binary |
52+
| CLI | `cli-` | `cli-3.5.2` | The `devtrail` binary |
5353

5454
Framework and CLI are released independently. A framework update does not require a CLI update, and vice versa.
5555

@@ -110,7 +110,7 @@ $ devtrail update
110110
Updating framework...
111111
✔ Framework updated to fw-4.3.0
112112
Updating CLI...
113-
✔ CLI updated to cli-3.5.1
113+
✔ CLI updated to cli-3.5.2
114114
```
115115

116116
---
@@ -143,11 +143,11 @@ Use `--method` to override auto-detection: `--method=github` or `--method=cargo`
143143

144144
```bash
145145
$ devtrail update-cli
146-
✔ CLI updated to cli-3.5.1
146+
✔ CLI updated to cli-3.5.2
147147

148148
$ devtrail update-cli --method=cargo
149149
Compiling from source, this may take a few minutes...
150-
✔ CLI updated to cli-3.5.1
150+
✔ CLI updated to cli-3.5.2
151151
```
152152

153153
---
@@ -210,7 +210,7 @@ $ devtrail status
210210
┌───────────┬──────────────────────────┐
211211
│ Path │ /home/user/my-project │
212212
│ Framework │ fw-4.3.0 │
213-
│ CLI │ cli-3.5.1
213+
│ CLI │ cli-3.5.2
214214
│ Language │ en │
215215
└───────────┴──────────────────────────┘
216216
@@ -643,7 +643,7 @@ Browse and read DevTrail documentation interactively in a terminal UI.
643643
|------|---------|-------------|
644644
| `--lang <code>` | resolved from project (see below) | Display language for the TUI shell and framework governance docs (`en`, `es`, `zh-CN`). Falls back silently to English when a translation is missing. |
645645

646-
**Language resolution order** (since cli-3.5.1):
646+
**Language resolution order** (since cli-3.5.2):
647647

648648
1. `--lang <code>` flag, when provided
649649
2. `language` field in `.devtrail/config.yml`, when the file exists (an explicit value — even `language: en` — is treated as a deliberate user choice)
@@ -657,7 +657,7 @@ Browse and read DevTrail documentation interactively in a terminal UI.
657657
- Markdown rendering with colors, tables, code blocks, and heading indentation
658658
- Navigate between related documents via hyperlinks
659659
- Search by filename, title, tags, or date
660-
- Fullscreen document mode, vim-style keybindings
660+
- Fullscreen document mode, with `j` / `k` as alternate keys for `` / ``
661661
- Localization-aware: framework docs (`QUICK-REFERENCE`, `AGENT-RULES`, China regulatory guides, etc.) are served in the language set by `language` in `.devtrail/config.yml` or by `--lang`
662662

663663
**Key bindings:**
@@ -695,7 +695,7 @@ Show version, authorship, and license information.
695695
```bash
696696
$ devtrail about
697697
DevTrail CLI
698-
CLI version: cli-3.5.1
698+
CLI version: cli-3.5.2
699699
Framework version: fw-4.3.0
700700
Author: Strange Days Tech, S.A.S.
701701
License: MIT

docs/i18n/es/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ DevTrail usa tags de versión independientes para cada componente:
150150
| Componente | Prefijo de tag | Ejemplo | Incluye |
151151
|------------|---------------|---------|---------|
152152
| Framework | `fw-` | `fw-4.3.0` | Plantillas (12 tipos), gobernanza, directivas |
153-
| CLI | `cli-` | `cli-3.5.1` | El binario `devtrail` |
153+
| CLI | `cli-` | `cli-3.5.2` | El binario `devtrail` |
154154

155155
Verifica las versiones instaladas con `devtrail status` o `devtrail about`.
156156

docs/i18n/es/adopters/CLI-REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DevTrail usa **tags de versión independientes** para cada componente:
4949
| Componente | Prefijo de tag | Ejemplo | Qué incluye |
5050
|------------|---------------|---------|-------------|
5151
| Framework | `fw-` | `fw-4.3.0` | Plantillas (12 tipos), docs de gobernanza, directivas |
52-
| CLI | `cli-` | `cli-3.5.1` | El binario `devtrail` |
52+
| CLI | `cli-` | `cli-3.5.2` | El binario `devtrail` |
5353

5454
Framework y CLI se publican de forma independiente. Una actualización del framework no requiere actualización del CLI, y viceversa.
5555

@@ -109,7 +109,7 @@ $ devtrail update
109109
Updating framework...
110110
✔ Framework updated to fw-4.3.0
111111
Updating CLI...
112-
✔ CLI updated to cli-3.5.1
112+
✔ CLI updated to cli-3.5.2
113113
```
114114

115115
---
@@ -142,11 +142,11 @@ Usa `--method` para forzar el método: `--method=github` o `--method=cargo`.
142142

143143
```bash
144144
$ devtrail update-cli
145-
✔ CLI updated to cli-3.5.1
145+
✔ CLI updated to cli-3.5.2
146146

147147
$ devtrail update-cli --method=cargo
148148
Compiling from source, this may take a few minutes...
149-
✔ CLI updated to cli-3.5.1
149+
✔ CLI updated to cli-3.5.2
150150
```
151151

152152
---
@@ -204,7 +204,7 @@ DevTrail Status
204204
───────────────
205205
Path: /home/user/my-project
206206
Framework version: fw-4.3.0
207-
CLI version: cli-3.5.1
207+
CLI version: cli-3.5.2
208208
Language: en
209209
Structure: ✔ Complete
210210

@@ -515,7 +515,7 @@ Explora y lee la documentación de DevTrail interactivamente en una interfaz de
515515
|------|---------|-------------|
516516
| `--lang <código>` | resuelto desde el proyecto (ver abajo) | Idioma del shell del TUI y los docs de gobernanza del framework (`en`, `es`, `zh-CN`). Cae silenciosamente al inglés si falta la traducción. |
517517
518-
**Orden de resolución del idioma** (desde cli-3.5.1):
518+
**Orden de resolución del idioma** (desde cli-3.5.2):
519519
520520
1. Flag `--lang <código>`, cuando se especifica
521521
2. Campo `language` en `.devtrail/config.yml`, cuando el archivo existe (un valor explícito — incluso `language: en` — se respeta como una decisión deliberada del usuario)
@@ -529,7 +529,7 @@ Explora y lee la documentación de DevTrail interactivamente en una interfaz de
529529
- Renderizado de Markdown con colores, tablas, bloques de código e indentación por niveles
530530
- Navegación entre documentos relacionados mediante hipervínculos
531531
- Búsqueda por nombre de archivo, título, tags o fecha
532-
- Modo pantalla completa, atajos estilo vim
532+
- Modo pantalla completa, con `j` / `k` como teclas alternas para `↓` / `↑`
533533
- Consciente de localización: los docs del framework (`QUICK-REFERENCE`, `AGENT-RULES`, guías regulatorias de China, etc.) se sirven en el idioma definido por `language` en `.devtrail/config.yml` o por `--lang`
534534
535535
**Atajos de teclado:**
@@ -567,7 +567,7 @@ Muestra información de versión, autoría y licencia.
567567
```bash
568568
$ devtrail about
569569
DevTrail CLI
570-
CLI version: cli-3.5.1
570+
CLI version: cli-3.5.2
571571
Framework version: fw-4.3.0
572572
Author: Strange Days Tech, S.A.S.
573573
License: MIT

docs/i18n/zh-CN/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ DevTrail 为每个组件使用独立的版本标签:
150150
| 组件 | 标签前缀 | 示例 | 包含内容 |
151151
|------|----------|------|----------|
152152
| Framework | `fw-` | `fw-4.3.0` | 模板(12 种类型)、治理文档、指令 |
153-
| CLI | `cli-` | `cli-3.5.1` | `devtrail` 二进制文件 |
153+
| CLI | `cli-` | `cli-3.5.2` | `devtrail` 二进制文件 |
154154

155155
使用 `devtrail status``devtrail about` 查看已安装的版本。
156156

docs/i18n/zh-CN/adopters/CLI-REFERENCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DevTrail 为每个组件使用**独立的版本标签**:
4949
| 组件 | 标签前缀 | 示例 | 包含内容 |
5050
|------|----------|------|----------|
5151
| Framework | `fw-` | `fw-4.3.0` | 模板(12 种类型)、治理文档、指令 |
52-
| CLI | `cli-` | `cli-3.5.1` | `devtrail` 二进制文件 |
52+
| CLI | `cli-` | `cli-3.5.2` | `devtrail` 二进制文件 |
5353

5454
Framework 和 CLI 独立发布。Framework 更新不需要 CLI 更新,反之亦然。
5555

@@ -110,7 +110,7 @@ $ devtrail update
110110
Updating framework...
111111
✔ Framework updated to fw-4.3.0
112112
Updating CLI...
113-
✔ CLI updated to cli-3.5.1
113+
✔ CLI updated to cli-3.5.2
114114
```
115115

116116
---
@@ -143,11 +143,11 @@ $ devtrail update-framework
143143

144144
```bash
145145
$ devtrail update-cli
146-
✔ CLI updated to cli-3.5.1
146+
✔ CLI updated to cli-3.5.2
147147

148148
$ devtrail update-cli --method=cargo
149149
Compiling from source, this may take a few minutes...
150-
✔ CLI updated to cli-3.5.1
150+
✔ CLI updated to cli-3.5.2
151151
```
152152

153153
---
@@ -210,7 +210,7 @@ $ devtrail status
210210
┌───────────┬──────────────────────────┐
211211
│ Path │ /home/user/my-project │
212212
│ Framework │ fw-4.3.0 │
213-
│ CLI │ cli-3.5.1
213+
│ CLI │ cli-3.5.2
214214
│ Language │ en │
215215
└───────────┴──────────────────────────┘
216216
@@ -636,7 +636,7 @@ $ devtrail audit --output markdown
636636
|------|--------|------|
637637
| `--lang <代码>` | 从项目解析(见下方) | TUI 界面与框架治理文档的显示语言(`en``es``zh-CN`)。缺少翻译时静默回退到英文。 |
638638

639-
**语言解析顺序**(自 cli-3.5.1 起):
639+
**语言解析顺序**(自 cli-3.5.2 起):
640640

641641
1. 提供 `--lang <代码>` 标志时优先
642642
2. `.devtrail/config.yml` 文件存在时使用其中的 `language` 字段(即便是显式的 `language: en` 也视为用户的明确选择)
@@ -650,7 +650,7 @@ $ devtrail audit --output markdown
650650
- Markdown 渲染,支持颜色、表格、代码块和标题缩进
651651
- 通过超链接在关联文档间导航
652652
- 按文件名、标题、标签或日期搜索
653-
- 全屏文档模式,vim 风格快捷键
653+
- 全屏文档模式,`j` / `k` 作为 `` / `` 的替代按键
654654
- 本地化感知:框架文档(`QUICK-REFERENCE``AGENT-RULES`、中国合规指南等)按 `.devtrail/config.yml` 中的 `language``--lang` 提供对应语言版本
655655

656656
**快捷键:**
@@ -688,7 +688,7 @@ $ devtrail explore --lang es # 会话内切换到西班牙语
688688
```bash
689689
$ devtrail about
690690
DevTrail CLI
691-
CLI version: cli-3.5.1
691+
CLI version: cli-3.5.2
692692
Framework version: fw-4.3.0
693693
Author: Strange Days Tech, S.A.S.
694694
License: MIT

0 commit comments

Comments
 (0)