Skip to content

Comments

feat(tui): word-jump and line-jump cursor navigation#557

Merged
bug-ops merged 2 commits intomainfrom
feat/487-tui-cursor-nav
Feb 18, 2026
Merged

feat(tui): word-jump and line-jump cursor navigation#557
bug-ops merged 2 commits intomainfrom
feat/487-tui-cursor-nav

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 18, 2026

Summary

  • Add Alt+Left/Right for word boundary navigation in TUI input field
  • Add Ctrl+A/E for line start/end navigation (emacs-style)
  • Add Alt+Backspace for word deletion
  • Add prev_word_boundary/next_word_boundary helpers with Unicode support

Test plan

  • 15 new unit tests covering all navigation and deletion shortcuts
  • Unicode word boundary tests (Cyrillic)
  • Edge cases: cursor at boundaries, empty input, consecutive spaces
  • All 143 zeph-tui tests pass
  • clippy clean, fmt clean

Closes #487

@github-actions github-actions bot added rust enhancement New feature or request size/M labels Feb 18, 2026
@bug-ops bug-ops force-pushed the feat/487-tui-cursor-nav branch from c819d6b to 72138f1 Compare February 18, 2026 18:39
Add standard terminal cursor shortcuts to handle_insert_key():
- Alt+Left/Right for word boundary navigation
- Ctrl+A/E for line start/end (emacs-style)
- Alt+Backspace for word deletion

Includes prev_word_boundary/next_word_boundary helpers with Unicode
support via char::is_alphanumeric().

Closes #487
@bug-ops bug-ops force-pushed the feat/487-tui-cursor-nav branch from 72138f1 to bc6e437 Compare February 18, 2026 18:49
Verify cursor_position stays in bounds for arbitrary Unicode input
and that Alt+Backspace preserves valid state.
@github-actions github-actions bot added size/L and removed size/M labels Feb 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 18, 2026 18:53
@bug-ops bug-ops merged commit 0d72613 into main Feb 18, 2026
18 checks passed
@bug-ops bug-ops deleted the feat/487-tui-cursor-nav branch February 18, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: word-jump and line-jump cursor navigation in input field

1 participant