Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Rename `csv_preview` crate to `tabular_data_preview` (#62768)

Oleksandr Kholiavko05473ed83d2b
diff --git a/Cargo.lock b/Cargo.lock
index 633b0a3f951..3832bbe955c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4573,23 +4573,6 @@ dependencies = [
"syn 2.0.117",
]
-[[package]]
-name = "csv_preview"
-version = "0.1.0"
-dependencies = [
- "anyhow",
- "editor",
- "feature_flags",
- "fuzzy",
- "gpui",
- "log",
- "picker",
- "proptest",
- "text",
- "ui",
- "workspace",
-]
-
[[package]]
name = "ctor"
version = "1.0.12"
@@ -18453,6 +18436,23 @@ dependencies = [
"zlog",
]
+[[package]]
+name = "tabular_data_preview"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "editor",
+ "feature_flags",
+ "fuzzy",
+ "gpui",
+ "log",
+ "picker",
+ "proptest",
+ "text",
+ "ui",
+ "workspace",
+]
+
[[package]]
name = "taffy"
version = "0.13.0"
@@ -23323,7 +23323,6 @@ dependencies = [
"copilot_chat",
"copilot_ui",
"crashes",
- "csv_preview",
"dap_adapters",
"db",
"debug_adapter_extension",
@@ -23423,6 +23422,7 @@ dependencies = [
"sysinfo 0.37.2",
"system_specs",
"tab_switcher",
+ "tabular_data_preview",
"task",
"tasks_ui",
"telemetry",
diff --git a/Cargo.toml b/Cargo.toml
index 96717ccea25..b49e6de2314 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,6 @@ members = [
"crates/copilot_chat",
"crates/crashes",
"crates/credentials_provider",
- "crates/csv_preview",
"crates/dap",
"crates/dap_adapters",
"crates/db",
@@ -89,19 +88,19 @@ members = [
"crates/git_ui_core",
"crates/go_to_line",
"crates/google_ai",
- "crates/grammars",
"crates/gpui",
"crates/gpui_apple",
- "crates/gpui_shared_string",
"crates/gpui_linux",
"crates/gpui_macos",
"crates/gpui_macros",
"crates/gpui_platform",
+ "crates/gpui_shared_string",
"crates/gpui_tokio",
"crates/gpui_util",
"crates/gpui_web",
"crates/gpui_wgpu",
"crates/gpui_windows",
+ "crates/grammars",
"crates/html_to_markdown",
"crates/http_client",
"crates/http_client_tls",
@@ -134,9 +133,9 @@ members = [
"crates/lsp_locations",
"crates/markdown",
"crates/markdown_preview",
- "crates/mermaid_render",
"crates/media",
"crates/menu",
+ "crates/mermaid_render",
"crates/migrator",
"crates/miniprofiler_ui",
"crates/mistral",
@@ -147,11 +146,11 @@ members = [
"crates/oauth_callback_server",
"crates/ollama",
"crates/onboarding",
- "crates/openai_subscribed",
- "crates/opencode",
"crates/open_ai",
"crates/open_path_prompt",
"crates/open_router",
+ "crates/openai_subscribed",
+ "crates/opencode",
"crates/outline",
"crates/outline_panel",
"crates/panel",
@@ -200,9 +199,10 @@ members = [
"crates/streaming_diff",
"crates/sum_tree",
"crates/svg_preview",
- "crates/system_specs",
"crates/syntax_theme",
+ "crates/system_specs",
"crates/tab_switcher",
+ "crates/tabular_data_preview",
"crates/task",
"crates/tasks_ui",
"crates/telemetry",
@@ -212,9 +212,9 @@ members = [
"crates/text",
"crates/theme",
"crates/theme_extension",
- "crates/theme_settings",
"crates/theme_importer",
"crates/theme_selector",
+ "crates/theme_settings",
"crates/time_format",
"crates/title_bar",
"crates/toolchain_selector",
@@ -230,13 +230,13 @@ members = [
"crates/web_search",
"crates/web_search_providers",
"crates/which_key",
+ "crates/windows_resources",
"crates/workspace",
"crates/worktree",
"crates/worktree_benchmarks",
"crates/x_ai",
"crates/zed",
"crates/zed_actions",
- "crates/windows_resources",
"crates/zed_credentials_provider",
"crates/zed_env_vars",
"crates/zeta_prompt",
@@ -274,8 +274,8 @@ edition = "2024"
# Workspace member crates
#
-acp_tools = { path = "crates/acp_tools" }
acp_thread = { path = "crates/acp_thread" }
+acp_tools = { path = "crates/acp_tools" }
action_log = { path = "crates/action_log" }
activity_indicator = { path = "crates/activity_indicator" }
agent = { path = "crates/agent" }
@@ -302,6 +302,7 @@ clock = { path = "crates/clock" }
cloud_api_client = { path = "crates/cloud_api_client" }
cloud_api_types = { path = "crates/cloud_api_types" }
cloud_llm_client = { path = "crates/cloud_llm_client" }
+codestral = { path = "crates/codestral" }
collab = { path = "crates/collab" }
collab_ui = { path = "crates/collab_ui" }
collections = { path = "crates/collections", version = "0.1.0" }
@@ -310,15 +311,12 @@ command_palette_hooks = { path = "crates/command_palette_hooks" }
compliance = { path = "tooling/compliance" }
component = { path = "crates/component" }
component_preview = { path = "crates/component_preview" }
-console = "0.16"
context_server = { path = "crates/context_server" }
copilot = { path = "crates/copilot" }
copilot_chat = { path = "crates/copilot_chat" }
copilot_ui = { path = "crates/copilot_ui" }
crashes = { path = "crates/crashes" }
credentials_provider = { path = "crates/credentials_provider" }
-crossbeam = "0.8.4"
-csv_preview = { path = "crates/csv_preview"}
dap = { path = "crates/dap" }
dap_adapters = { path = "crates/dap_adapters" }
db = { path = "crates/db" }
@@ -329,7 +327,11 @@ deepseek = { path = "crates/deepseek" }
derive_refineable = { path = "crates/refineable/derive_refineable" }
dev_container = { path = "crates/dev_container" }
diagnostics = { path = "crates/diagnostics" }
-dialoguer = { version = "0.12", default-features = false }
+edit_prediction = { path = "crates/edit_prediction" }
+edit_prediction_context = { path = "crates/edit_prediction_context" }
+edit_prediction_metrics = { path = "crates/edit_prediction_metrics" }
+edit_prediction_types = { path = "crates/edit_prediction_types" }
+edit_prediction_ui = { path = "crates/edit_prediction_ui" }
editor = { path = "crates/editor" }
encoding_selector = { path = "crates/encoding_selector" }
env_var = { path = "crates/env_var" }
@@ -352,28 +354,25 @@ git_ui = { path = "crates/git_ui" }
git_ui_core = { path = "crates/git_ui_core" }
go_to_line = { path = "crates/go_to_line" }
google_ai = { path = "crates/google_ai" }
-grammars = { path = "crates/grammars" }
gpui = { path = "crates/gpui", default-features = false }
gpui_apple = { path = "crates/gpui_apple" }
-gpui_shared_string = { path = "crates/gpui_shared_string" }
gpui_linux = { path = "crates/gpui_linux", default-features = false }
gpui_macos = { path = "crates/gpui_macos", default-features = false }
gpui_macros = { path = "crates/gpui_macros" }
gpui_platform = { path = "crates/gpui_platform", default-features = false }
+gpui_shared_string = { path = "crates/gpui_shared_string" }
+gpui_tokio = { path = "crates/gpui_tokio" }
+gpui_util = { path = "crates/gpui_util" }
gpui_web = { path = "crates/gpui_web" }
gpui_wgpu = { path = "crates/gpui_wgpu" }
gpui_windows = { path = "crates/gpui_windows", default-features = false }
-gpui_tokio = { path = "crates/gpui_tokio" }
-gpui_util = { path = "crates/gpui_util" }
+grammars = { path = "crates/grammars" }
html_to_markdown = { path = "crates/html_to_markdown" }
http_client = { path = "crates/http_client" }
http_client_tls = { path = "crates/http_client_tls" }
http_proxy = { path = "crates/http_proxy" }
icons = { path = "crates/icons" }
image_viewer = { path = "crates/image_viewer" }
-edit_prediction_types = { path = "crates/edit_prediction_types" }
-edit_prediction_ui = { path = "crates/edit_prediction_ui" }
-edit_prediction_context = { path = "crates/edit_prediction_context" }
input_latency_ui = { path = "crates/input_latency_ui" }
inspector_ui = { path = "crates/inspector_ui" }
install_cli = { path = "crates/install_cli" }
@@ -400,36 +399,34 @@ lsp = { path = "crates/lsp" }
lsp_locations = { path = "crates/lsp_locations" }
markdown = { path = "crates/markdown" }
markdown_preview = { path = "crates/markdown_preview" }
-mermaid_render = { path = "crates/mermaid_render" }
-svg_preview = { path = "crates/svg_preview" }
media = { path = "crates/media" }
menu = { path = "crates/menu" }
-mime = "0.3.17"
+mermaid_render = { path = "crates/mermaid_render" }
migrator = { path = "crates/migrator" }
+miniprofiler_ui = { path = "crates/miniprofiler_ui" }
mistral = { path = "crates/mistral" }
multi_buffer = { path = "crates/multi_buffer" }
-miniprofiler_ui = { path = "crates/miniprofiler_ui" }
net = { path = "crates/net" }
node_runtime = { path = "crates/node_runtime" }
notifications = { path = "crates/notifications" }
oauth_callback_server = { path = "crates/oauth_callback_server" }
ollama = { path = "crates/ollama" }
onboarding = { path = "crates/onboarding" }
-openai_subscribed = { path = "crates/openai_subscribed" }
-opencode = { path = "crates/opencode" }
open_ai = { path = "crates/open_ai" }
open_path_prompt = { path = "crates/open_path_prompt" }
open_router = { path = "crates/open_router", features = ["schemars"] }
+openai_subscribed = { path = "crates/openai_subscribed" }
+opencode = { path = "crates/opencode" }
outline = { path = "crates/outline" }
outline_panel = { path = "crates/outline_panel" }
panel = { path = "crates/panel" }
-paths = { path = "crates/paths" }
path = { path = "crates/path" }
+paths = { path = "crates/paths" }
perf = { path = "tooling/perf" }
picker = { path = "crates/picker" }
picker_preview = { path = "crates/picker_preview" }
+platform_title_bar = { path = "crates/platform_title_bar" }
prettier = { path = "crates/prettier" }
-settings_profile_selector = { path = "crates/settings_profile_selector" }
project = { path = "crates/project" }
project_panel = { path = "crates/project_panel" }
project_symbols = { path = "crates/project_symbols" }
@@ -447,17 +444,18 @@ reqwest_client = { path = "crates/reqwest_client" }
rodio = { git = "https://github.com/RustAudio/rodio", rev = "e50e726ddd0292f6ef9de0dda6b90af4ed1fb66a", features = ["wav", "playback", "wav_output", "recording"] }
rope = { path = "crates/rope" }
rpc = { path = "crates/rpc" }
-scheduler = { path = "crates/scheduler" }
sandbox = { path = "crates/sandbox" }
+scheduler = { path = "crates/scheduler" }
search = { path = "crates/search" }
session = { path = "crates/session" }
-sidebar = { path = "crates/sidebar" }
settings = { path = "crates/settings" }
settings_content = { path = "crates/settings_content" }
settings_json = { path = "crates/settings_json" }
settings_macros = { path = "crates/settings_macros" }
+settings_profile_selector = { path = "crates/settings_profile_selector" }
settings_ui = { path = "crates/settings_ui" }
shell_command_parser = { path = "crates/shell_command_parser" }
+sidebar = { path = "crates/sidebar" }
snippet = { path = "crates/snippet" }
snippet_provider = { path = "crates/snippet_provider" }
snippets_ui = { path = "crates/snippets_ui" }
@@ -465,10 +463,11 @@ sqlez = { path = "crates/sqlez" }
sqlez_macros = { path = "crates/sqlez_macros" }
streaming_diff = { path = "crates/streaming_diff" }
sum_tree = { path = "crates/sum_tree" }
-codestral = { path = "crates/codestral" }
-system_specs = { path = "crates/system_specs" }
+svg_preview = { path = "crates/svg_preview" }
syntax_theme = { path = "crates/syntax_theme" }
+system_specs = { path = "crates/system_specs" }
tab_switcher = { path = "crates/tab_switcher" }
+tabular_data_preview = { path = "crates/tabular_data_preview"}
task = { path = "crates/task" }
tasks_ui = { path = "crates/tasks_ui" }
telemetry = { path = "crates/telemetry" }
@@ -478,10 +477,9 @@ terminal_view = { path = "crates/terminal_view" }
text = { path = "crates/text" }
theme = { path = "crates/theme" }
theme_extension = { path = "crates/theme_extension" }
-theme_settings = { path = "crates/theme_settings" }
theme_selector = { path = "crates/theme_selector" }
+theme_settings = { path = "crates/theme_settings" }
time_format = { path = "crates/time_format" }
-platform_title_bar = { path = "crates/platform_title_bar" }
title_bar = { path = "crates/title_bar" }
toolchain_selector = { path = "crates/toolchain_selector" }
ui = { path = "crates/ui" }
@@ -492,11 +490,10 @@ util = { path = "crates/util" }
util_macros = { path = "crates/util_macros" }
vim = { path = "crates/vim" }
vim_mode_setting = { path = "crates/vim_mode_setting" }
-which_key = { path = "crates/which_key" }
-
watch = { path = "crates/watch" }
web_search = { path = "crates/web_search" }
web_search_providers = { path = "crates/web_search_providers" }
+which_key = { path = "crates/which_key" }
workspace = { path = "crates/workspace" }
worktree = { path = "crates/worktree" }
x_ai = { path = "crates/x_ai" }
@@ -504,8 +501,6 @@ zed = { path = "crates/zed" }
zed_actions = { path = "crates/zed_actions" }
zed_credentials_provider = { path = "crates/zed_credentials_provider" }
zed_env_vars = { path = "crates/zed_env_vars" }
-edit_prediction = { path = "crates/edit_prediction" }
-edit_prediction_metrics = { path = "crates/edit_prediction_metrics" }
zeta_prompt = { path = "crates/zeta_prompt" }
zlog = { path = "crates/zlog" }
zlog_settings = { path = "crates/zlog_settings" }
@@ -541,14 +536,14 @@ async-fs = "2.1"
async-io = "2.6.0"
async-lock = "3.4.2"
async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
-async-recursion = "1.0.0"
# `unstable` is required to compile async-tar's Windows symlink support.
+async-process = "2.5.0"
+async-recursion = "1.0.0"
async-std = { version = "1.12", features = ["unstable"] }
async-tar = "0.6"
async-task = "4.7"
async-trait = "0.1"
async-tungstenite = "0.31.0"
-async-process = "2.5.0"
async_zip = { version = "0.0.18", features = ["deflate", "deflate64"] }
aws-config = { version = "1.8.10", features = ["behavior-version-latest"] }
aws-credential-types = { version = "1.2.8", features = [
@@ -566,10 +561,10 @@ bitflags = "2.6.0"
block = "0.1"
block2 = "0.6"
brotli = "8.0.2"
+brush-parser = "0.3"
bytes = "1.0"
cargo_metadata = "0.19"
cargo_toml = "0.21"
-brush-parser = "0.3"
cbindgen = { version = "0.28.0", default-features = false }
cfg-if = "1.0.3"
chardetng = "0.1"
@@ -581,6 +576,8 @@ clap_complete = { version = "4.4" }
clap_complete_nushell = { version = "4.4" }
cocoa = "=0.26.0"
cocoa-foundation = "=0.2.0"
+console = "0.16"
+console_error_panic_hook = "0.1.7"
const_format = "0.2"
convert_case = "0.11.0"
core-foundation = "0.10"
@@ -591,6 +588,7 @@ core-video = { version = "0.5.2", features = ["metal"] }
cpal = "0.17"
crash-handler = "0.7"
criterion = { version = "0.5", features = ["html_reports"] }
+crossbeam = "0.8.4"
ctor = "1.0.12"
dap-types = { git = "https://github.com/zed-industries/dap-types", rev = "1b461b310481d01e02b2603c16d7144b926339f8" }
dashmap = "6.0"
@@ -605,38 +603,38 @@ derive_more = { version = "2.1.1", features = [
"mul_assign",
"not",
] }
+dialoguer = { version = "0.12", default-features = false }
dirs = "6.0"
documented = "0.9.1"
dotenvy = "0.15.0"
dunce = "1.0"
ec4rs = { version = "1.2", features = ["allow-empty-values"] }
emojis = "0.6.1"
-env_logger = "0.11"
encoding_rs = "0.8"
+env_logger = "0.11"
etagere = "0.2"
exec = "0.3.1"
fancy-regex = "0.18.0"
-fork = "0.4.0"
flume = "0.12"
foreign-types = "0.5"
+fork = "0.4.0"
futures = "0.3.32"
futures-concurrency = "7.7.1"
futures-lite = "1.13"
futures-util = "0.3.32"
gh-workflow = { git = "https://github.com/zed-industries/gh-workflow", rev = "37f3c0575d379c218a9c455ee67585184e40d43f" }
-
globset = "0.4"
-heapless = "0.9.2"
handlebars = "4.3"
-heck = "0.5"
hdrhistogram = "7"
+heapless = "0.9.2"
+heck = "0.5"
heed = { version = "0.21.0", features = ["read-txn-no-tls"] }
hex = "0.4.3"
-human_bytes = "0.4.1"
html5ever = "0.27.0"
http = "1.1"
http-body = "1.0"
httparse = "1.10"
+human_bytes = "0.4.1"
idna = "1.0"
ignore = "0.4.22"
# image's default features minus "avif", which only adds an encoder (rav1e);
@@ -663,6 +661,7 @@ indexmap = { version = "2.7.0", features = ["serde"] }
indoc = "2"
inventory = "0.3.19"
itertools = "0.14.0"
+js-sys = "0.3"
json_dotpath = "1.1"
jsonschema = "0.37.0"
jsonwebtoken = "10.0"
@@ -670,8 +669,8 @@ jupyter-protocol = "1.4.0"
jupyter-websocket-client = "1.1.0"
libc = "0.2"
libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
-linkify = "0.10.0"
libwebrtc = "0.3.26"
+linkify = "0.10.0"
livekit = { version = "0.7.32", features = ["tokio", "rustls-tls-native-roots"] }
log = { version = "0.4.16", features = ["kv_unstable_serde", "serde"] }
lru = "0.16"
@@ -679,6 +678,7 @@ lsp-types = { git = "https://github.com/zed-industries/lsp-types", rev = "f4dfa8
mach2 = "0.5"
markup5ever_rcdom = "0.3.0"
metal = "0.33"
+mime = "0.3.17"
minidumper = "0.9"
moka = { version = "0.12.10", features = ["sync"] }
nanoid = "0.4"
@@ -729,11 +729,11 @@ open = "5.0.0"
ordered-float = "2.1.1"
palette = { version = "0.7.5", default-features = false, features = ["std"] }
parking_lot = "0.12.1"
-partial-json-fixer = "0.5.3"
parse_int = "0.9"
+partial-json-fixer = "0.5.3"
+pathdiff = "0.2"
pathfinder_geometry = "0.5"
pciid-parser = "0.8.0"
-pathdiff = "0.2"
percent-encoding = "2.3.2"
pet = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "bb8e04607b96a3865d6aa4bb2a5a5a82ce05b5f0" }
pet-conda = { git = "https://github.com/microsoft/python-environment-tools.git", rev = "bb8e04607b96a3865d6aa4bb2a5a5a82ce05b5f0" }
@@ -749,19 +749,19 @@ pretty_assertions = { version = "1.3.0", features = ["unstable"] }
proc-macro2 = "1.0.93"
profiling = "1"
# replace this with main when #635 is merged
+pollster = "0.4.0"
proptest = { git = "https://github.com/proptest-rs/proptest", rev = "3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b", features = ["attr-macro"] }
proptest-derive = "0.8.0"
-proxyvars = "0.2"
prost = "0.9"
prost-build = "0.9"
prost-types = "0.9"
-pollster = "0.4.0"
+proxyvars = "0.2"
pulldown-cmark = { version = "0.13.0", default-features = false }
quick-xml = "0.38"
quote = "1.0.9"
rand = "0.9"
-rayon = "1.8"
raw-window-handle = "0.6"
+rayon = "1.8"
regex = "1.5"
# WARNING: If you change this, you must also publish a new version of zed-reqwest to crates.io
reqwest = { git = "https://github.com/zed-industries/reqwest.git", rev = "c15662463bda39148ba154100dd44d3fba5873a4", default-features = false, features = [
@@ -795,14 +795,14 @@ seccompiler = "0.5"
semver = { version = "1.0", features = ["serde"] }
serde = { version = "1.0.221", features = ["derive", "rc"] }
serde_json = { version = "1.0.144", features = ["preserve_order", "raw_value"] }
-serde_yaml_ng = "0.10"
serde_json_lenient = { version = "0.2", features = [
"preserve_order",
"raw_value",
] }
-serde_yaml = "0.9.34"
serde_path_to_error = "0.1.17"
serde_urlencoded = "0.7"
+serde_yaml = "0.9.34"
+serde_yaml_ng = "0.10"
sha2 = "0.10"
shellexpand = "3.1"
shlex = "1.3.0"
@@ -839,6 +839,7 @@ toml_edit = { version = "0.22", default-features = false, features = [
"serde",
] }
tower-http = "0.4.4"
+tracing = "0.1.40"
tree-sitter = "0.26.9"
tree-sitter-bash = "0.25.1"
tree-sitter-c = "0.24.1"
@@ -862,7 +863,6 @@ tree-sitter-ruby = "0.23"
tree-sitter-rust = "0.24.2"
tree-sitter-typescript = { git = "https://github.com/zed-industries/tree-sitter-typescript", rev = "e2c53597d6a5d9cf7bbe8dccde576fe1e46c5899" } # https://github.com/tree-sitter/tree-sitter-typescript/pull/347
tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" }
-tracing = "0.1.40"
unicase = "2.6"
unicode-bidi = { version = "0.3.18", default-features = false, features = [
"hardcoded-data",
@@ -888,16 +888,14 @@ wasmtime = { version = "36", default-features = false, features = [
"incremental-cache",
"parallel-compilation",
] }
-wasmtime-wasi = "36"
-wax = "0.7"
-which = "6.0.0"
wasm-bindgen = "0.2.120"
wasm-bindgen-futures = "0.4"
-js-sys = "0.3"
-console_error_panic_hook = "0.1.7"
+wasmtime-wasi = "36"
+wax = "0.7"
web-time = "1.1.0"
webrtc-sys = "0.3.23"
wgpu = "29.0.4"
+which = "6.0.0"
windows-core = "0.61"
windows-registry = "0.6.0"
yaml-rust2 = "0.8"
@@ -1029,10 +1027,10 @@ breadcrumbs = { codegen-units = 1 }
collections = { codegen-units = 1 }
command_palette = { codegen-units = 1 }
command_palette_hooks = { codegen-units = 1 }
+edit_prediction_ui = { codegen-units = 1 }
feature_flags = { codegen-units = 1 }
file_icons = { codegen-units = 1 }
image_viewer = { codegen-units = 1 }
-edit_prediction_ui = { codegen-units = 1 }
install_cli = { codegen-units = 1 }
journal = { codegen-units = 1 }
json_schema_store = { codegen-units = 1 }
diff --git a/crates/csv_preview/Cargo.toml b/crates/tabular_data_preview/Cargo.toml
similarity index 86%
rename from crates/csv_preview/Cargo.toml
rename to crates/tabular_data_preview/Cargo.toml
index bada16f1f50..dd457495911 100644
--- a/crates/csv_preview/Cargo.toml
+++ b/crates/tabular_data_preview/Cargo.toml
@@ -1,11 +1,11 @@
[package]
-name = "csv_preview"
+name = "tabular_data_preview"
version = "0.1.0"
publish.workspace = true
edition.workspace = true
[lib]
-path = "src/csv_preview.rs"
+path = "src/tabular_data_preview.rs"
[dependencies]
anyhow.workspace = true
diff --git a/crates/csv_preview/LICENSE-GPL b/crates/tabular_data_preview/LICENSE-GPL
similarity index 100%
rename from crates/csv_preview/LICENSE-GPL
rename to crates/tabular_data_preview/LICENSE-GPL
diff --git a/crates/csv_preview/src/parser.rs b/crates/tabular_data_preview/src/parser.rs
similarity index 100%
rename from crates/csv_preview/src/parser.rs
rename to crates/tabular_data_preview/src/parser.rs
diff --git a/crates/csv_preview/src/renderer.rs b/crates/tabular_data_preview/src/renderer.rs
similarity index 100%
rename from crates/csv_preview/src/renderer.rs
rename to crates/tabular_data_preview/src/renderer.rs
diff --git a/crates/csv_preview/src/renderer/performance_metrics_overlay.rs b/crates/tabular_data_preview/src/renderer/performance_metrics_overlay.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/performance_metrics_overlay.rs
rename to crates/tabular_data_preview/src/renderer/performance_metrics_overlay.rs
diff --git a/crates/csv_preview/src/renderer/preview_view.rs b/crates/tabular_data_preview/src/renderer/preview_view.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/preview_view.rs
rename to crates/tabular_data_preview/src/renderer/preview_view.rs
diff --git a/crates/csv_preview/src/renderer/render_table.rs b/crates/tabular_data_preview/src/renderer/render_table.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/render_table.rs
rename to crates/tabular_data_preview/src/renderer/render_table.rs
diff --git a/crates/csv_preview/src/renderer/row_identifiers.rs b/crates/tabular_data_preview/src/renderer/row_identifiers.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/row_identifiers.rs
rename to crates/tabular_data_preview/src/renderer/row_identifiers.rs
diff --git a/crates/csv_preview/src/renderer/settings.rs b/crates/tabular_data_preview/src/renderer/settings.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/settings.rs
rename to crates/tabular_data_preview/src/renderer/settings.rs
diff --git a/crates/csv_preview/src/renderer/table_cell.rs b/crates/tabular_data_preview/src/renderer/table_cell.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/table_cell.rs
rename to crates/tabular_data_preview/src/renderer/table_cell.rs
diff --git a/crates/csv_preview/src/renderer/table_header.rs b/crates/tabular_data_preview/src/renderer/table_header.rs
similarity index 100%
rename from crates/csv_preview/src/renderer/table_header.rs
rename to crates/tabular_data_preview/src/renderer/table_header.rs
diff --git a/crates/csv_preview/src/settings.rs b/crates/tabular_data_preview/src/settings.rs
similarity index 100%
rename from crates/csv_preview/src/settings.rs
rename to crates/tabular_data_preview/src/settings.rs
diff --git a/crates/csv_preview/src/table_data_engine.rs b/crates/tabular_data_preview/src/table_data_engine.rs
similarity index 100%
rename from crates/csv_preview/src/table_data_engine.rs
rename to crates/tabular_data_preview/src/table_data_engine.rs
diff --git a/crates/csv_preview/src/table_data_engine/filtering_by_column.rs b/crates/tabular_data_preview/src/table_data_engine/filtering_by_column.rs
similarity index 100%
rename from crates/csv_preview/src/table_data_engine/filtering_by_column.rs
rename to crates/tabular_data_preview/src/table_data_engine/filtering_by_column.rs
diff --git a/crates/csv_preview/src/table_data_engine/sorting_by_column.rs b/crates/tabular_data_preview/src/table_data_engine/sorting_by_column.rs
similarity index 100%
rename from crates/csv_preview/src/table_data_engine/sorting_by_column.rs
rename to crates/tabular_data_preview/src/table_data_engine/sorting_by_column.rs
diff --git a/crates/csv_preview/src/csv_preview.rs b/crates/tabular_data_preview/src/tabular_data_preview.rs
similarity index 100%
rename from crates/csv_preview/src/csv_preview.rs
rename to crates/tabular_data_preview/src/tabular_data_preview.rs
diff --git a/crates/csv_preview/src/types.rs b/crates/tabular_data_preview/src/types.rs
similarity index 100%
rename from crates/csv_preview/src/types.rs
rename to crates/tabular_data_preview/src/types.rs
diff --git a/crates/csv_preview/src/types/coordinates.rs b/crates/tabular_data_preview/src/types/coordinates.rs
similarity index 100%
rename from crates/csv_preview/src/types/coordinates.rs
rename to crates/tabular_data_preview/src/types/coordinates.rs
diff --git a/crates/csv_preview/src/types/table_cell.rs b/crates/tabular_data_preview/src/types/table_cell.rs
similarity index 100%
rename from crates/csv_preview/src/types/table_cell.rs
rename to crates/tabular_data_preview/src/types/table_cell.rs
diff --git a/crates/csv_preview/src/types/table_like_content.rs b/crates/tabular_data_preview/src/types/table_like_content.rs
similarity index 100%
rename from crates/csv_preview/src/types/table_like_content.rs
rename to crates/tabular_data_preview/src/types/table_like_content.rs
diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml
index 2ccdffb3f67..b691fa623e0 100644
--- a/crates/zed/Cargo.toml
+++ b/crates/zed/Cargo.toml
@@ -63,10 +63,13 @@ path = "src/visual_test_runner.rs"
required-features = ["visual-tests"]
[dependencies]
+acp_thread.workspace = true
acp_tools.workspace = true
+action_log = { workspace = true, optional = true }
activity_indicator.workspace = true
-agent.workspace = true
agent-client-protocol.workspace = true
+agent.workspace = true
+agent_servers = { workspace = true, optional = true }
agent_settings.workspace = true
agent_skills.workspace = true
agent_ui = { workspace = true, features = ["audio"] }
@@ -78,11 +81,12 @@ auto_update.workspace = true
auto_update_ui.workspace = true
breadcrumbs.workspace = true
call.workspace = true
-chrono.workspace = true
channel.workspace = true
+chrono.workspace = true
clap.workspace = true
cli.workspace = true
client.workspace = true
+clock = { workspace = true, optional = true }
codestral.workspace = true
collab_ui.workspace = true
collections.workspace = true
@@ -93,7 +97,6 @@ copilot.workspace = true
copilot_chat.workspace = true
copilot_ui.workspace = true
crashes.workspace = true
-csv_preview.workspace = true
dap_adapters.workspace = true
db.workspace = true
debug_adapter_extension.workspace = true
@@ -114,25 +117,20 @@ fs.workspace = true
futures.workspace = true
git.workspace = true
git_hosting_providers.workspace = true
-git_ui = { workspace = true, features = ["call"] }
+git_ui = { workspace = true, features = [ "call" ] }
git_ui_core.workspace = true
go_to_line.workspace = true
-system_specs.workspace = true
-gpui = { workspace = true, features = [
- "profiler",
-] }
-gpui_platform = {workspace = true, features=["screen-capture", "font-kit", "wayland", "x11"]}
+gpui = { workspace = true, features = [ "profiler" ] }
+gpui_platform = { workspace = true, features = [ "screen-capture", "font-kit", "wayland", "x11" ] }
+gpui_tokio.workspace = true
hdrhistogram.workspace = true
image = { workspace = true, optional = true }
itertools.workspace = true
+rayon.workspace = true
semver.workspace = true
+system_specs.workspace = true
+tabular_data_preview.workspace = true
tempfile = { workspace = true, optional = true }
-clock = { workspace = true, optional = true }
-acp_thread.workspace = true
-action_log = { workspace = true, optional = true }
-agent_servers = { workspace = true, optional = true }
-gpui_tokio.workspace = true
-rayon.workspace = true
edit_prediction.workspace = true
edit_prediction_ui.workspace = true
@@ -159,8 +157,8 @@ markdown.workspace = true
markdown_preview.workspace = true
menu.workspace = true
migrator.workspace = true
-miniprofiler_ui.workspace = true
mimalloc = { version = "0.1", optional = true }
+miniprofiler_ui.workspace = true
node_runtime.workspace = true
notifications.workspace = true
onboarding.workspace = true
@@ -204,15 +202,14 @@ telemetry.workspace = true
telemetry_events.workspace = true
terminal_view.workspace = true
theme.workspace = true
-theme_settings.workspace = true
theme_extension.workspace = true
theme_selector.workspace = true
+theme_settings.workspace = true
time.workspace = true
time_format.workspace = true
title_bar.workspace = true
-ztracing.workspace = true
-tracing.workspace = true
toolchain_selector.workspace = true
+tracing.workspace = true
ui.workspace = true
ui_prompt.workspace = true
url.workspace = true
@@ -231,6 +228,7 @@ zed_credentials_provider.workspace = true
zed_env_vars.workspace = true
zlog.workspace = true
zlog_settings.workspace = true
+ztracing.workspace = true
[target.'cfg(target_os = "windows")'.dependencies]
etw_tracing.workspace = true
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 971599e2acf..04d2b786713 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -772,7 +772,7 @@ fn main() {
git_ui::init(cx);
feedback::init(cx);
markdown_preview::init(cx);
- csv_preview::init(cx);
+ tabular_data_preview::init(cx);
svg_preview::init(cx);
onboarding::init(cx);
settings_ui::init(cx);
diff --git a/crates/zed/src/zed/quick_action_bar/preview.rs b/crates/zed/src/zed/quick_action_bar/preview.rs
index 51d8696fb31..25b137389b5 100644
--- a/crates/zed/src/zed/quick_action_bar/preview.rs
+++ b/crates/zed/src/zed/quick_action_bar/preview.rs
@@ -1,9 +1,9 @@
-use csv_preview::{CsvPreviewView, TabularDataPreviewFeatureFlag};
use editor::{Editor, MultiBuffer};
use feature_flags::FeatureFlagAppExt as _;
use gpui::{AnyElement, Entity, Modifiers};
use markdown_preview::markdown_preview_view::MarkdownPreviewView;
use svg_preview::svg_preview_view::SvgPreviewView;
+use tabular_data_preview::{CsvPreviewView, TabularDataPreviewFeatureFlag};
use ui::{Tooltip, prelude::*, text_for_keystroke};
use super::QuickActionBar;
@@ -11,7 +11,7 @@ use super::QuickActionBar;
enum PreviewTarget {
Markdown(Entity<Editor>),
Svg(Entity<MultiBuffer>),
- Csv(Entity<Editor>),
+ TabularData(Entity<Editor>),
}
impl QuickActionBar {
@@ -34,7 +34,7 @@ impl QuickActionBar {
&& cx.has_flag::<TabularDataPreviewFeatureFlag>()
&& CsvPreviewView::is_csv_file(&editor, cx)
{
- PreviewTarget::Csv(editor)
+ PreviewTarget::TabularData(editor)
} else {
return None;
};
@@ -50,10 +50,10 @@ impl QuickActionBar {
"Preview SVG",
&svg_preview::OpenPreview as &dyn gpui::Action,
),
- PreviewTarget::Csv(_) => (
- "toggle-csv-preview",
- "Preview CSV",
- &csv_preview::OpenPreview as &dyn gpui::Action,
+ PreviewTarget::TabularData(_) => (
+ "toggle-tabular-preview",
+ "Preview Tabular Data",
+ &tabular_data_preview::OpenPreview as &dyn gpui::Action,
),
};
@@ -114,7 +114,7 @@ impl QuickActionBar {
);
}
}
- PreviewTarget::Csv(editor) => {
+ PreviewTarget::TabularData(editor) => {
let editor = editor.clone();
if open_to_the_side {
CsvPreviewView::open_preview_to_the_side_of_pane(