co-mono/packages
Sviatoslav Abakumov d075291b08
feat(tui): add sticky column for vertical cursor navigation (#1120)
When moving up/down through lines of varying lengths, the editor now
remembers the original column position and restores it when reaching a
line long enough to accommodate it.

Example: cursor at column 10, move up to a shorter line (cursor clamps
to end), move up again to a longer line - cursor returns to column 10.

Implementation:

- Add preferredVisualCol instance property (nullable)
- Set it when moving to a shorter line during vertical navigation
- Clear it when arriving at a line that fits the preferred column
- Clear it on any horizontal movement or editing via setCursorCol()
- Detect line rewrap by checking if cursor is in middle of line
- When pressing right at end of prompt, set preferredVisualCol so
  subsequent up/down navigation uses that column position
2026-01-31 22:52:47 +01:00
..
agent Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00
ai Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00
coding-agent Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00
mom Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00
pods Release v0.50.7 2026-01-31 01:08:29 +01:00
tui feat(tui): add sticky column for vertical cursor navigation (#1120) 2026-01-31 22:52:47 +01:00
web-ui Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00