/partial at line start → command names (registry), detail = summary/source.
after a known command + space → its ArgKind: model ids, provider kinds, enum values, paths.
@partial anywhere → project files.
Ranking: prefix > substring > subsequence, then shorter first; case-insensitive. Move fuzzy/common_prefix out of hx-tui/editor.rs and make them generic over labels. Byte offsets must be UTF-8 safe.
Done when: table-driven test covers /, /mo, /model , a skill name, mid-line @src/, non-ASCII input.
Pure, UI-free `complete(line, cursor, ctx) -> Completion { start, items: Vec<(label, detail)> }`.
Context by token under cursor:
- `/partial` at line start → command names (registry), detail = summary/source.
- after a known command + space → its `ArgKind`: model ids, provider kinds, enum values, paths.
- `@partial` anywhere → project files.
Ranking: prefix > substring > subsequence, then shorter first; case-insensitive. Move `fuzzy`/`common_prefix` out of `hx-tui/editor.rs` and make them generic over labels. Byte offsets must be UTF-8 safe.
Done when: table-driven test covers `/`, `/mo`, `/model `, a skill name, mid-line `@src/`, non-ASCII input.
Depends on: #68
Context: #58
hermes
added this to the M8 milestone 2026-09-30 21:54:07 +00:00
hermes
added the core label 2026-09-30 21:54:07 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Pure, UI-free
complete(line, cursor, ctx) -> Completion { start, items: Vec<(label, detail)> }.Context by token under cursor:
/partialat line start → command names (registry), detail = summary/source.ArgKind: model ids, provider kinds, enum values, paths.@partialanywhere → project files.Ranking: prefix > substring > subsequence, then shorter first; case-insensitive. Move
fuzzy/common_prefixout ofhx-tui/editor.rsand make them generic over labels. Byte offsets must be UTF-8 safe.Done when: table-driven test covers
/,/mo,/model, a skill name, mid-line@src/, non-ASCII input.Depends on: #68
Context: #58