You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add configurable code editor line numbers (#10012)
Closes#9816
## Description
- Add a persisted `text_editing.code_editor_line_number_mode` setting
with `Absolute` and `Relative` modes.
- Add a Text Editing settings dropdown for code editor line-number mode.
- Render relative code editor gutter line numbers for the active
editor/active diff section while keeping inactive diff/review sections
absolute.
- Repaint line gutters on setting and cursor changes, and add focused
helper tests for display-value behavior.
## Linked Issue
- [x] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).
## Screenshots / Videos
Not included; this implementation was validated through code-level
checks in the sandbox.
## Testing
- `cargo fmt`
- `cargo check -p warp --no-default-features`
- `cargo clippy -p warp --no-default-features -- -D warnings`
- `cargo check -p warp --lib --all-features`
- Attempted `cargo test -p warp code::editor::element::tests
--no-default-features`, but `rustc` compiling `warp` lib tests was
killed by SIGKILL (signal 9) before tests ran in this sandbox.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-IMPROVEMENT: Add configurable absolute and relative line
numbers for code editors.
---------
Co-authored-by: Oz <oz-agent@warp.dev>
Co-authored-by: Narley Brittes <narley@users.noreply.github.com>
Co-authored-by: Lili Wilson <56806227+liliwilson@users.noreply.github.com>
Co-authored-by: liliwilson <lilimmwilson@gmail.com>
0 commit comments