# tabular_data_preview: Finish generalizing crate naming \(\#62807\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dbc90d18b0be44d2be9de1c245b268dea1dfe89c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dbc90d18b0be44d2be9de1c245b268dea1dfe89c

Requested commit: dbc90d18b0be44d2be9de1c245b268dea1dfe89c

Commit: dbc90d18b0be44d2be9de1c245b268dea1dfe89c

Tree: 30923cb960af05a041d4abd8d2b81a3ddf5592dc

Author: Oleksandr Kholiavko

Committer: GitHub

## Message

```
tabular_data_preview: Finish generalizing crate naming (#62807)

# Objective

#62768 renamed `crates/csv_preview` to `crates/tabular_data_preview`,
but left the CSV-specific names inside it untouched (on purpose, to
reduce prev PR scope & git diff noise)

## Solution

Finished the generalization, one mechanical rename per commit for easier
review:

1. `CsvPreviewView` -> `TabularDataPreviewPane`
2. `CsvPreviewSettings` -> `TabularDataPreviewSettings`
3. Methods/vars
4. Test helpers/fn names
5. User-facing strings and element ids: tab title fallback:
    - `"CSV Preview"` -> `"Tabular Data Preview"`,
- empty state `"No CSV content to display"` -> `"No data to display"`,
- dev tooltip, and element ids
`csv-filter-*`/`csv-col-header-*`/`csv-table`/`csv-display-cell-*` ->
`table-*`/`tabular-data-table`
6. Doc comments that implied CSV-only behavior, reworded to be
format-agnostic

> NOTE: PR is split into commits by change type for ease of review)

## Testing

`cargo check -p tabular_data_preview -p zed` builds clean after each
commit; `cargo test -p tabular_data_preview --lib` passes (10/10).

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

- [05473ed83d2bada157e89f181e15c205a3b22163](https://git.cafe/gitcafe/zed/commit/05473ed83d2bada157e89f181e15c205a3b22163?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dbc90d18b0be44d2be9de1c245b268dea1dfe89c?format=markdown)
