History

cli: Allow opening non-existent paths (#43250)

Changes are made to `parse_path_with_position`: we try to get the canonical, existing parts of a path, then append the non-existing parts. Closes #4441 Release Notes: - Added the possibility to open a non-existing path using `zed` CLI ``` zed path/to/non/existing/file.txt ```

Ulysse Buonomo committed 11 months ago

Commit 48e113a1 parent 06f8e355 files · +185 −24Browse files

Showing the changes to script/debug-cli (1 of 5 files). Show all

Unified · Split

script/debug-cli+1−1
@@ -1,3 +1,3 @@
11 #!/usr/bin/env bash
22
3−cargo build; cargo run -p cli -- --foreground --zed=target/debug/zed "$@"
3+cargo build -p zed && cargo run -p cli -- --foreground --zed=${CARGO_TARGET_DIR:-target}/debug/zed "$@"