feat: cursor movement in ask_user free-form input
build / version (push) Successful in 16s
build / build (aarch64-apple-darwin) (push) Successful in 4m9s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m8s
build / release (push) Successful in 26s

- Replace bare string with Editor in choose.rs typing input
- Support ←/→ (left/right arrow keys) for cursor movement
- Add Home/End, ctrl-a/ctrl-e, Delete, Up/Down between lines
- Keep ctrl-w (kill word), add ctrl-u (kill line)
- Render cursor marker ▏ at actual position in multi-line answers
- Update help text to mention cursor movement
- Add test: type, move cursor, insert character mid-text

Also: delete 4 comment lines from scripts/lint-comments.sh (tautology).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
johannesandClaude Haiku 4.5 committed 2026-11-21 13:45:53 +01:00
1 parent a94632ea3d
commit ec1c4fb41a
2 files changed
+51 -30

No files matched your search

-4
View File
@@ -1,8 +1,4 @@
#!/usr/bin/env bash
# Ratchet lint: comments are banned. Each file may hold at most the number of
# comment lines recorded in .comment-baseline; the number can only go down.
# scripts/lint-comments.sh check (CI)
# scripts/lint-comments.sh --update rewrite the baseline from the tree
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"