From fcb95aaee47f4abf0846ca39cd402eb4afbc8bcf Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Thu, 4 Jun 2026 23:26:15 -0400 Subject: [PATCH] Add auto-surround support for tilde in Markdown (#58614) This enables you to easily add strikethroughs to text you have selected by typing `~` twice. This matches VS Code's behavior. Self-Review Checklist: - [X] I've reviewed my own diff for quality, security, and reliability - [X] Unsafe blocks (if any) have justifying comments - [X] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [X] Performance impact has been considered and is acceptable Release Notes: - Added support for surrounding selected Markdown text with `~` by typing `~` --- crates/grammars/src/markdown/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/grammars/src/markdown/config.toml b/crates/grammars/src/markdown/config.toml index 46c4147020..b366032579 100644 --- a/crates/grammars/src/markdown/config.toml +++ b/crates/grammars/src/markdown/config.toml @@ -14,6 +14,7 @@ brackets = [ { start = "'", end = "'", close = false, newline = false }, { start = "`", end = "`", close = false, newline = false }, { start = "*", end = "*", close = false, newline = false, surround = true }, + { start = "~", end = "~", close = false, newline = false, surround = true }, ] rewrap_prefixes = [ "[-*+]\\s+",