Skip to content

Add diff view format options - #2

Draft
remorses wants to merge 3 commits into
mainfrom
codex/add-additions-only-and-deletions-only-diff-view
Draft

remorses wants to merge 3 commits into
mainfrom
codex/add-additions-only-and-deletions-only-diff-view

Conversation

@remorses

Copy link
Copy Markdown
Owner

Summary

  • support diff view format selection (unified, additions only, deletions only)
  • expose diff view format setting on Editor
  • filter diff hunks based on selected format
  • add command palette action to choose diff view format

Testing

  • cargo build (fails: build requires long compilation and network access)

https://chatgpt.com/codex/tasks/task_e_6856a272ff80832e86e36379e15fceca

knoopx pushed a commit to knoopx/zed that referenced this pull request Oct 19, 2026
…stries#51059)

Extract data table modules into separate files

This PR extracts the `tests` and `table_row` modules from
`data_table.rs` into separate files to improve code organization. This
is preparatory work for the upcoming column width API rework (remorses#2 in the
series), where separating mechanical changes from logical changes will
make the review easier.

The extraction was performed using rust-analyzer's "Extract module to
file" command.

**Context:**

This is part 1 of a 3-PR series improving data table column width
handling:
1. **This PR**: Extract modules into separate files (mechanical change)
2. [zed-industries#51060](zed-industries#51060) -
Introduce width config enum for redistributable column widths (API
rework)
3. Implement independently resizable column widths (new feature)

The series builds on previously merged infrastructure:
- [zed-industries#46341](zed-industries#46341) - Data
table dynamic column support
- [zed-industries#46190](zed-industries#46190) - Variable
row height mode for data tables

Primary beneficiary: CSV preview feature
([zed-industries#48207](zed-industries#48207))

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant