ZIm/crates
Marshall Bowers b54b3d6246
editor: Add rewrap command (#17909)
This PR adds a rewrap command to the editor.

Executing this command will rewrap the text in the selection to the
maximum line width:


https://github.com/user-attachments/assets/69aa9428-17fd-4315-89f1-f354d0f5f459

If there isn't an active selection, the selection will be expanded to
contiguous text from the cursor's location.

Rewrapping only works in Markdown, Plain Text, and within comments for
any other language.

Release Notes:

- Added an `editor: rewrap` command for rewrapping text to the maximum
line width.

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Bennet <bennet@zed.dev>
2024-09-16 19:58:22 -04:00
..
activity_indicator Derive icon paths (#17816) 2024-09-13 21:12:29 -04:00
anthropic chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
assets add ui::Vector and separate images from icons (#17815) 2024-09-13 17:44:16 -04:00
assistant Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
assistant_slash_command Fix more bugs in files (#16241) 2024-08-16 10:09:38 -07:00
assistant_tool assistant: Add basic tool invocation (#17368) 2024-09-04 14:32:20 -04:00
audio chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
auto_update Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
breadcrumbs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
call Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
channel Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
cli zed: Use CLI env for lang servers, tasks, terminal (#17075) 2024-08-29 18:09:06 +02:00
client Move ProtoClient to RPC crate, behind feature flag disabled in collab (#17908) 2024-09-16 14:50:30 -07:00
clock Lay the groundwork for collaborating on assistant panel (#13991) 2024-07-10 17:36:22 +02:00
collab Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
collab_ui Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
collections gpui: Add SVG rendering to img element and generic asset cache (#9931) 2024-03-29 17:09:49 -07:00
command_palette chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
command_palette_hooks chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
context_servers context_servers: Hide actions when no context servers are configured (#17833) 2024-09-14 17:00:37 -04:00
copilot Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
db chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
dev_server_projects chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
diagnostics Derive icon paths (#17816) 2024-09-13 21:12:29 -04:00
docs_preprocessor Don't rely on relative path for docs preprocessor (#16883) 2024-08-26 11:43:13 -04:00
editor editor: Add rewrap command (#17909) 2024-09-16 19:58:22 -04:00
extension Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
extension_api zed_extension_api: Use v0.2.0 WIT types (#17802) 2024-09-13 14:49:50 -04:00
extension_cli chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
extensions_ui Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
feature_flags /auto (#16696) 2024-09-13 13:17:49 -04:00
feedback chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
file_finder chore: Another round of style lints fixes (#17519) 2024-09-07 02:36:55 +02:00
file_icons chore: Clean up allocs around project panel (#15422) 2024-07-29 14:21:41 +02:00
fs /auto (#16696) 2024-09-13 13:17:49 -04:00
fsevent Retain run loop (#11241) 2024-04-30 23:31:59 -06:00
fuzzy Improve slash commands (#16195) 2024-08-13 23:06:07 -07:00
git /auto (#16696) 2024-09-13 13:17:49 -04:00
git_hosting_providers Update http crate name (#15041) 2024-07-23 15:01:05 -07:00
go_to_line Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
google_ai assistant: Add display_name for OpenAI and Gemini (#17508) 2024-09-10 13:41:06 -04:00
gpui Fix keystroke observer leak in vim crate (#17913) 2024-09-16 15:50:12 -07:00
gpui_macros add ui::Vector and separate images from icons (#17815) 2024-09-13 17:44:16 -04:00
headless chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
html_to_markdown chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
http_client /auto (#16696) 2024-09-13 13:17:49 -04:00
image_viewer chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
indexed_docs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
inline_completion_button chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
install_cli Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
journal chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
language Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
language_model Ollama: Specify keep_alive via settings (#17906) 2024-09-16 18:47:25 -04:00
language_selector use ssh lsp store (#17655) 2024-09-10 15:51:01 -04:00
language_tools Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
languages rust: Lookup rust-analyzer on PATH by default (#17885) 2024-09-16 18:45:11 +02:00
live_kit_client chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
live_kit_server live_kit_server: Re-remove protocol submodule (#15317) 2024-07-26 21:10:56 -04:00
lsp lsp: Fix noisy logs when starting language servers (#17713) 2024-09-11 12:56:39 -04:00
markdown ssh lsp completions (#17665) 2024-09-16 12:22:39 -06:00
markdown_preview use ssh lsp store (#17655) 2024-09-10 15:51:01 -04:00
media Update Rust crate bindgen to 0.70.0 (#17024) 2024-08-28 22:12:49 -07:00
menu open picker (#14524) 2024-07-15 17:04:15 -06:00
multi_buffer Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
node_runtime chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
notifications chore: Remove a bunch of unused structs (#16139) 2024-08-13 01:43:19 +02:00
ollama ollama: Add context_size for new "yi-coder" model (#17409) 2024-09-05 11:05:57 -04:00
open_ai OpenAI o1-preview and o1-mini support (#17796) 2024-09-13 16:23:55 -04:00
outline chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
outline_panel Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
paths assistant: Pass up tool results in LLM request messages (#17656) 2024-09-10 15:25:57 -04:00
picker chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
prettier Lookup prettier more leniently (#14403) 2024-07-13 21:59:14 +03:00
project See language server status on remote (#17912) 2024-09-16 17:05:26 -06:00
project_panel Refine symbolic link project tooltip (#17869) 2024-09-16 08:12:24 -03:00
project_symbols Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
proto Fix renames over language server for SSH remoting (#17897) 2024-09-16 16:20:17 -06:00
quick_action_bar Derive icon paths (#17816) 2024-09-13 21:12:29 -04:00
recent_projects Add stray UI polish to the SSH flow (#17798) 2024-09-13 17:05:34 -03:00
refineable Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
release_channel chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
remote Move ProtoClient to RPC crate, behind feature flag disabled in collab (#17908) 2024-09-16 14:50:30 -07:00
remote_server See language server status on remote (#17912) 2024-09-16 17:05:26 -06:00
repl ssh lsp completions (#17665) 2024-09-16 12:22:39 -06:00
rich_text Disable definition lists in Markdown (#17648) 2024-09-10 11:16:27 -04:00
rope chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
rpc Move ProtoClient to RPC crate, behind feature flag disabled in collab (#17908) 2024-09-16 14:50:30 -07:00
search Refactor SearchSettings (#17550) 2024-09-07 19:58:28 -04:00
semantic_index /auto (#16696) 2024-09-13 13:17:49 -04:00
semantic_version Extract SemanticVersion into its own crate (#9956) 2024-03-29 12:11:57 -04:00
session chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
settings Fix different kinds values used for worktree_id (#17523) 2024-09-07 00:51:09 -04:00
settings_ui chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
snippet Correct escaping in snippets (#14912) 2024-07-22 00:57:34 +02:00
snippet_provider lsp: Watch paths outside of worktrees at language servers request (#17499) 2024-09-06 15:47:17 +02:00
sqlez chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
sqlez_macros Replace lazy_static with std::sync::LazyLock (#16066) 2024-08-20 14:27:33 -04:00
story chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
storybook add ui::Vector and separate images from icons (#17815) 2024-09-13 17:44:16 -04:00
sum_tree chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
supermaven chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
supermaven_api chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
tab_switcher Implement "join pane into next" (#16077) 2024-08-27 00:51:51 +03:00
task chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
tasks_ui Revert "settings: Remove auxiliary Content types where possible (#16744)" (#17768) 2024-09-12 14:46:08 -04:00
telemetry_events docs: Update telemetry documentation (#16628) 2024-08-21 20:24:35 -04:00
terminal Fix parenthesis matching for file links in terminal (#17512) 2024-09-07 10:51:02 -04:00
terminal_view Derive icon paths (#17816) 2024-09-13 21:12:29 -04:00
text chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
theme theme: Clamp font sizes between 6px and 100px (#17829) 2024-09-14 15:44:54 -04:00
theme_importer chore: Another round of style lints fixes (#17519) 2024-09-07 02:36:55 +02:00
theme_selector settings_ui: Add theme settings controls (#15115) 2024-07-24 16:25:52 -04:00
time_format chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
title_bar Fix missing on-mouseup when dragging the window on Linux (#17801) 2024-09-13 11:51:14 -07:00
ui Refine assistant config UI (#17871) 2024-09-16 08:12:07 -03:00
ui_input Rename ui_text_field crate to ui_input (#13949) 2024-07-08 17:05:30 -04:00
ui_macros Add ui_macros crate & DerivePathStr derive macro (#17811) 2024-09-13 16:45:16 -04:00
util Use a bigger prefix for numeric sorting (#17752) 2024-09-12 09:11:19 -04:00
vcs_menu chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
vim Fix keystroke observer leak in vim crate (#17913) 2024-09-16 15:50:12 -07:00
welcome Welcome tweaks (#17874) 2024-09-16 08:29:46 -04:00
workspace Don't show extra row in toolbar if it is empty (#17888) 2024-09-16 12:00:49 -04:00
worktree Move ProtoClient to RPC crate, behind feature flag disabled in collab (#17908) 2024-09-16 14:50:30 -07:00
zed ssh lsp completions (#17665) 2024-09-16 12:22:39 -06:00
zed_actions Improve Linux terminal keymap and context menu (#16845) 2024-08-26 01:01:46 +03:00