Skip to content

Conversation

@burke
Copy link
Contributor

@burke burke commented Dec 1, 2025

Implements full-featured line editing in search buffer with cursor positioning:

  • Ctrl-A: Move to beginning of line
  • Ctrl-E: Move to end of line
  • Ctrl-B: Move cursor backward one character
  • Ctrl-F: Move cursor forward one character
  • Ctrl-H/Backspace: Delete character before cursor
  • Ctrl-K: Delete from cursor to end of line
  • Ctrl-W: Delete word backward (stops at alphanumeric boundaries)

Also updated spec and added tests.

burke and others added 2 commits November 30, 2025 23:33
…Ctrl-F, Ctrl-H, Ctrl-K, Ctrl-W)

Implements full-featured line editing in search buffer with cursor positioning:
- Ctrl-A: Move to beginning of line
- Ctrl-E: Move to end of line
- Ctrl-B: Move cursor backward one character
- Ctrl-F: Move cursor forward one character
- Ctrl-H/Backspace: Delete character before cursor
- Ctrl-K: Delete from cursor to end of line
- Ctrl-W: Delete word backward (stops at alphanumeric boundaries)

Key changes:
- Added separate text cursor position (@input_cursor_pos) from navigation cursor
- Cursor now renders by inverting character at its position using ANSI codes
- Characters can be inserted/deleted at arbitrary positions in buffer
- Removed Ctrl-J from down navigation (was conflicting with Enter)
- Removed Ctrl-K from up navigation (now used for line editing)

Updated spec with separated Navigation and Line Editing sections, and added comprehensive test coverage for all new keybindings with specific, predictable assertions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@tobi tobi merged commit 50fe79e into tobi:main Dec 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants