ZIm/crates/zed/src
Max Brunsfeld ebae894774 Fix handling of --diff flag (#33094)
* Restore the ability to combine --diff with other path arguments
* Restore combining --diff with --wait

There is still one defect in the current handling of `--diff`: when Zed
is already open, we'll open the diff view in your current active zed
window. It would be better to search all of the open zed windows for any
window containing the diffed paths, but implementing that is a bit
complex. Currently, the logic for *picking* an existing zed window is
coupled to the logic for opening buffers in that window. I'd like to
decouple it, but I wanted to keep this change small, so that we hotfix
it to stable without too much risk.

Release Notes:

- Fixed a bug where the `--diff` CLI flag did not work with `--wait`

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-06-20 13:03:27 +01:00
..
zed Fix handling of --diff flag (#33094) 2025-06-20 13:03:27 +01:00
main.rs Diff view (#32922) 2025-06-18 14:43:23 +00:00
reliability.rs Use shortened SHA when displaying version to install (#31281) 2025-05-23 14:53:53 +00:00
zed-main.rs Fix Unexpected Console Window When Running Zed Release Build (#32144) 2025-06-05 19:38:19 +08:00
zed.rs Diff view (#32922) 2025-06-18 14:43:23 +00:00