b9d5eb1
Fix typo (#7223)
Click to expand commit body
Release Notes: - N/A
d1y created
b9d5eb1
Fix typo (#7223)
Release Notes: - N/A
d1y created
adc7cfb
Fix moving focus to docks when navigating via keybinds (#7221)
This is a follow-up to #7141 and fixes the focus-switching to docks in case they haven't been focused before. We ran into issues when trying to focus a dock, that hasn't been focused in the app's lifecycle: focus would only flip after the next re-render (which could be triggered by moving the mouse, for example) This changes the approach and uses the one we have for `toggle focus` actions. Release Notes: - N/A Co-authored-by: Piotr <piotr@zed.dev> Co-authored-by: bennetbo <bennetbo@gmx.de>
Thorsten Ball , Piotr , and bennetbo created
a853a80
Add YAML file type icon (#7185)
Add YAML file type icon from [file-icons/icons](https://github.com/file-icons/icons) https://github.com/file-icons/icons/blob/master/svg/YAML.svg Release Notes: - Added YAML file type icon. --------- Co-authored-by: d1y <chenhonzhou@gmail.com>
thurain and d1y created
2d41a11
markdown: Support alignment for table cells (#7201)
Just a small improvement as a follow up to @kierangilliam great work on #6958 Rendering a table specified like this: ```markdown | Left columns | Center columns | Right columns | | ------------- |:--------------:| -------------:| | left foo | center foo | right foo | | left bar | center bar | right bar | | left baz | center baz | right baz | ``` Does now look like this (notice the cell alignments):  Release Notes: - N/A
Bennet Bo Fenner created
0102ffb
Refactor file_finder send element open code (#7210)
Follow-up of https://github.com/zed-industries/zed/pull/6947 (cc @alygin) that fixes a few style nits and refactors the code around: * use already stored `currently_opened_path` to decide what to do with the history item sorting * use the same method to set history items, encapsulate the bubbling up logic there * ensure history elements are properly sorted before populating The main reason to change all that is the new comparator in the previous version: https://github.com/zed-industries/zed/pull/6947/files#diff-eac7c8c99856f77cee39117708cd1467fd5bbc8805da2564f851951638020842R234 that almost violated `util::extend_sorted` contract, requiring both collections to be sorted the same way as the comparator would be: it did work, because we bubbled currently open item up in the history items list manually, and that we have only one such item. Release Notes: - N/A
Kirill Bulatov created
0edffd9
Select the second item in the file finder by default (#6947)
This PR completes the first task of the Tabless editing feature (#6424). It makes file finder select the previously opened file by default which allows the user to quickly switch between two last opened files by clicking `Cmd-P + Enter`. This feature was also requested in #4663 comments. Release Notes: * Improved file finder selection: currently opened item is not selected now
Andrew Lygin created
e65a76f
Add ability to navigate to/from docks via keybindings (#7141)
This adds the ability to navigate to/from docks (Terminal, Project, Collaboration, Assistant) via keybindings. When using the `ActivatePaneInDirection` keybinding from the left/bottom/right dock, we check whether the movement is towards the center panel. If it is, we focus the last active pane. Fixes https://github.com/zed-industries/zed/issues/6833 and it came up in a few other tickes/discussions. Release Notes: - Added ability to navigate to docks and back to the editor using the `workspace::ActivatePaneInDirection` action (by default bound to `Ctrl-w [hjkl]` in Vim mode). ([#6833](https://github.com/zed-industries/zed/issues/6833)). ## Drawback There's this weird behavior: if you start Zed and no files are opened, you focus terminal, go left (project panel), then back to right to terminal, the terminal isn't focused. Even though we focus it in the code. Maybe this is a bug in the current focus handling code? ## Demo https://github.com/zed-industries/zed/assets/1185253/5d56db40-36aa-4758-a3bc-7a0de20ce5d7 --------- Co-authored-by: Piotr <piotr@zed.dev>
Thorsten Ball and Piotr created
6c93c4b
assistant: render api key editor if no credentials are set (#7197)
This hopefully reduces confusion for new users. I updated the docs just this morning, but I figured it's probably better to fix the issue itself. So what this does is to render the API key editor whenever the assistant panel is opened/focused and no credentials can be found. See: https://github.com/zed-industries/zed/discussions/6943 Release Notes: - Fixed assistant panel not showing dialog to enter API key when opened without saved credentials. --------- Co-authored-by: Piotr <piotr@zed.dev>
Thorsten Ball and Piotr created
8bafc61
Add initial markdown preview to Zed (#6958)
Adds a "markdown: open preview" action to open a markdown preview. https://github.com/zed-industries/zed/assets/18583882/6fd7f009-53f7-4f98-84ea-7dd3f0dd11bf This PR extends the work done in `crates/rich_text` to render markdown to also support: - Variable heading sizes - Markdown tables - Code blocks - Block quotes ## Release Notes - Added `Markdown: Open preview` action to partially close ([#6789](https://github.com/zed-industries/zed/issues/6789)). ## Known issues that will not be included in this PR - Images. - Nested block quotes. - Footnote Reference. - Headers highlighting. - Inline code highlighting (this will need to be implemented in `rich_text`) - Checkboxes (`- [ ]` and `- [x]`) - Syntax highlighting in code blocks. - Markdown table text alignment. - Inner markdown URL clicks
Kieran Gill created
3b88291
Filter LSP github releases that have no assets to properly download LSP servers (#7189)
Fixes https://github.com/zed-industries/zed/issues/7183 Release Notes: - Filter lsp github releases that have no assets ([7189](https://github.com/zed-industries/zed/issues/7183))
Ares Andrew created
5e64d45
Remove links to docs.zed.dev (#7187)
Release Notes: - N/A
Conrad Irwin created
3df7da2
Also add proxy to zed http client (#7184)
Follow up to #6765 because I couldn't figure out how to add to that PR. Release Notes: - N/A
Conrad Irwin created
5e81d78
Read HTTP proxy from env (#6765)
This PR will use http proxy from env for downloading files.
lichuan6 created
cbc2746
docs: add gitcommit language and update go language (#7181)
Release Notes: - N/A
d1y created
aaba98d
Debug build (#7176)
Release Notes: - N/A
Conrad Irwin created
2cc2a61
collab 0.44.0
Conrad Irwin created
3025e56
Tell the user when screen-sharing fails (#7171)
Release Notes: - Added an alert when screen-sharing fails
Conrad Irwin created
c4083c3
Watch the themes directory for changes (#7173)
This PR makes Zed watch the themes directory for changes. When theme files are added or modified, we reload the theme and apply any changes to Zed. Release Notes: - Added live reloading for the themes directory.
Marshall Bowers created
2187513
app version to server (#7130)
- Send app version and release stage to collab on connect - Read the new header on the server Release Notes: - Added the ability to collaborate with users on different releases of Zed.
Conrad Irwin created
5b7b5bf
Add a checksum telemetry request (#7168)
We're seeing a bit of nonsense on telemetry. Although the checksum seed isn't secret per-se, it does make sending nonsense a little more effort. Release Notes: - N/A
Conrad Irwin created
a588a7d
Fix some typos in comments (#7169)
This PR fixes a couple typos I found in some comments/doc comments. Release Notes: - N/A
Marshall Bowers created
dcca484
disallow opening private files (#7165)
- Disallow sharing gitignored files through collab - Show errors when failing to open files - Show a warning to followers when view is unshared /cc @mikaylamaki, let's update this to use your `private_files` config before merge. Release Notes: - Added the ability to prevent sharing private files over collab. --------- Co-authored-by: Piotr <piotr@zed.dev> Co-authored-by: Mikayla <mikayla@zed.dev>
Conrad Irwin , Piotr , and Mikayla created
c983c9b
v0.122.x dev
Joseph T. Lyons created
f98d636
WIP: Add a setting to visually redact enviroment variables (#7124)
Release Notes: - Added bash syntax highlighting to `.env` files. - Added a `private_files` setting for configuring which files should be considered to contain environment variables or other sensitive information. - Added a `redact_private_values` setting to add or remove censor bars over variable values in files matching the `private_files` patterns. -(internal) added a new `redactions.scm` query to our language support, allowing different config file formats to indicate where environment variable values can be identified in the syntax tree, added this query to `bash`, `json`, `toml`, and `yaml` files. --------- Co-authored-by: Nathan <nathan@zed.dev>
Mikayla Maki and Nathan created
5333eff
Improve file finder by ignoring spaces in query (#7068)
Release Notes: - Changed file finder to ignore spaces in queries ([#5324 ](https://github.com/zed-industries/zed/issues/5324)).  --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Ben Hamment and Marshall Bowers created
135bca2
vim: Make H/M/L work in visual mode (#7166)
Release notes: - N/A
Conrad Irwin created
5d85801
Add highlighting for go.work (#7142)
<img width="617" alt="image" src="https://github.com/zed-industries/zed/assets/45585937/ecb28152-db02-450e-bc81-395abd1c1eef"> Release Notes: - Added highlighting for go.work
d1y created
ebdabb9
vim: Support counts for `H` and `L` motions (#7149)
Release Notes: - Added support for counts to `H` and `L` motions ([#4941](https://github.com/zed-industries/zed/issues/4941)).
Vishal Bhavsar created
689d430
Don't panic when collaborating with older Zed versions (#7162)
Older Zed versions may send a buffer id of 0, which is no-longer supported. (as of #6993) This doesn't fix that, but it does ensure that we don't panic in the workspace by maintaining the invariant that from_proto_state returns Some(Task) if the variant matches. It also converts the panic to an error should something similar happen again in the future. Release Notes: - N/A
Conrad Irwin created
59f77d3
Use mimalloc as default allocator (#7140)
From https://github.com/microsoft/mimalloc: > In our benchmarks (see [below](https://github.com/microsoft/mimalloc#performance)), mimalloc outperforms other leading allocators (jemalloc, tcmalloc, Hoard, etc), and often uses less memory. A nice property is that it does consistently well over a wide range of benchmarks. There is also good huge OS page support for larger server programs. Release Notes: - Changed default allocator to mimalloc.
Ares Andrew created
b7ced39
Add highlighting for git_commit (#7147)
https://github.com/zed-industries/zed/assets/45585937/32cf5622-e960-4775-986d-bcfd30c81098 Release Notes: - Added highlighting for git_commit
d1y created
39200ec
Adjust heading levels in docs (#7163)
This PR adjusts the heading levels in the docs, as some of them weren't following the right hierarchy. I also formatted all of the docs with Prettier. Release Notes: - N/A
Marshall Bowers created
6e443ac
Add PHP file type icon (#7159)
Add PHP file type icon from [file-icons/icons](https://github.com/file-icons/icons) [https://github.com/file-icons/icons/blob/master/svg/PHP.svg](https://github.com/file-icons/icons/blob/master/svg/PHP.svg) <img width="408" alt="Screenshot 2024-01-31 at 23 14 55" src="https://github.com/zed-industries/zed/assets/44226349/26c3d19d-3a5d-4fc6-b551-f5351ba62b7d"> Release Notes: - Added PHP file type icon.
Pyae Sone Aung created
5941102
gpui: Add runtime-shaders feature so that Xcode.app is no longer necessary for Nix-based workflows (#7148)
Release Notes: - N/A Co-authored-by: Niklas <niklas@niklaskorz.de>
Piotr Osiewicz and Niklas created
8c8a5ad
Make theme parsing more lenient (#7154)
This PR improves the theme parsing to be a bit more lenient, allowing things like comments and trailing commas in theme files. Release Notes: - N/A
Marshall Bowers created
7cb97e5
Add debounce for re-querying completion documentation
Julia created
634fe99
Add LSP support for Elm (#7116)
Closes #4595 Release Notes: - Added LSP support for Elm ([#4595](https://github.com/zed-industries/zed/issues/4595)). --------- Co-authored-by: Jared M. Smith <absynce@gmail.com>
Andrey Kuzmin and Jared M. Smith created
c3d4fa4
Permalink add Gitee host support (#7134)
China's largest git code hosting platform About Gitee: https://gitee.com/about_us Release Notes: - Added Gitee host support with Git-Permalink
d1y created
ba91adf
languages: add highlighting for go.mod (#7137)
Release Notes: - Added syntax highlighting for go.mod files. Fixes #7133 <img width="863" alt="image" src="https://github.com/zed-industries/zed/assets/8725798/dc521a02-c53a-44aa-b0c1-eebf31835679">
Derrick Laird created
e5fe811
theme_importer: Add ability to print theme JSON schema (#7129)
This PR adds a quick subcommand to the `theme_importer` to facilitate printing out the JSON schema for a theme. Note that you do need to pass a `<PATH>` to the subcommand still, even though it will be ignored. I'll rework the CLI to this at some point. The JSON schema for the current version of the theme can also be found at [`https://zed.dev/schema/themes/v0.1.0.json`](https://zed.dev/schema/themes/v0.1.0.json). Release Notes: - N/A
Marshall Bowers created
9459394
Re-enable language plugin functionality with some fixes (#7105)
Part of https://github.com/zed-industries/zed/issues/7096 * [x] Load all queries for language plugins, not just highlight query * [x] Auto-reload languages when changing the `plugins` directory * [x] Bump Tree-sitter for language loading and unloading fixes * [x] Figure out code signing Release Notes: - N/A --------- Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Max Brunsfeld , Antonio , and Marshall Bowers created
db99d4f
No more nightly/preview collab anymore (#7112)
Release Notes: - N/A
Conrad Irwin created
aee0f65
Attempt to fix a panic in worktree scanning (#7128)
Somehow (and this should be investigated separately) we're ending up with paths that look like: /path/to/project/../../path/to/dependency, these pass the Ok(repo_path) = path.strip_prefix(), but then fail. Release Notes: - Fixed (hopefully) a panic that could occur due to path confusing in git status
Conrad Irwin created
dbb5fad
Fix some formatting issues in `Cargo.toml` files (#7127)
This PR fixes some formatting issues in some of the `Cargo.toml` files. I tried to fix most of these in #7126, but there were a few that I missed. Release Notes: - N/A
Marshall Bowers created
28f875f
Note installation step via Homebrew (#7053)
https://formulae.brew.sh/cask/zed
Zongle Wang created
e338f34
Sort dependencies in `Cargo.toml` files (#7126)
This PR sorts the dependency lists in our `Cargo.toml` files so that they are in alphabetical order. This should make them easier to visually scan when looking for a dependency. Apologies in advance for any merge conflicts 🙈 Release Notes: - N/A
Marshall Bowers created
d97e780
Restrict access to global `Audio` (#7122)
This PR restricts access to the `Audio` global to force consumers to go through the `Audio` public interface to interact with it. Release Notes: - N/A
Marshall Bowers created
176f63e
Add ability to copy a permalink to a line (#7119)
This PR adds the ability to copy the permalink to a line from within Zed. This functionality is available through the `editor: copy permalink to line` action in the command palette: <img width="589" alt="Screenshot 2024-01-30 at 7 07 46 PM" src="https://github.com/zed-industries/zed/assets/1486634/332282cb-211f-4f16-9eb1-415bcfee9b7b"> Executing this action will create a permalink to the currently selected line(s) and copy it to the clipboard. Here is an example line: ``` https://github.com/maxdeviant/auk/blob/56c80e80112744740be1969c89fdd34db4be6f64/src/lib.rs#L25 ``` Currently, both GitHub and GitLab are supported. ### Notes and known limitations - In order to determine where to permalink to, we read the URL of the `origin` remote in Git. This feature will not work if the `origin` remote is not present. - Attempting to permalink to a ref that is not pushed to the origin will result in the link 404ing. - Attempting to permalink when Git is in a dirty state may not generate the right link. - For instance, modifying a file (e.g., adding new lines) and grabbing a permalink to it will result in incorrect line numbers. Release Notes: - Added the ability to copy a permalink to a line ([#6777](https://github.com/zed-industries/zed/issues/6777)). - Available via the `editor: copy permalink to line` action in the command palette.
Marshall Bowers created
cbcaca4
Show highlighted symbol in the scrollbar (#7029)
Release Notes: - Added highlighted symbols to the scrollbar; partially mentioned in: - https://github.com/zed-industries/zed/issues/5308 - https://github.com/zed-industries/zed/issues/4866
Felix Salazar created
871b852
Fix per-env settings override (#7114)
Due to a misplaced .trim(), the RELEASE_CHANNEL_NAME included the trailing newline. Release Notes: - N/A
Conrad Irwin created