# cli: Allow opening non-existent paths \(\#43250\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/48e113a90e42e6277ac289ca74a76d8ea54dc2c9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 48e113a90e42e6277ac289ca74a76d8ea54dc2c9

Requested commit: 48e113a90e42e6277ac289ca74a76d8ea54dc2c9

Commit: 48e113a90e42e6277ac289ca74a76d8ea54dc2c9

Tree: 1c48144418532bb9c64c745334a285e8ef71b205

Author: Ulysse Buonomo

Committer: GitHub

## Message

````
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
  ```

Co-authored-by: Syed Sadiq Ali <sadiqonemail@gmail.com>
````

## Parents

- [06f8e355979b708999c28b871988e0f277e2a250](https://git.cafe/gitcafe/zed/commit/06f8e355979b708999c28b871988e0f277e2a250?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/48e113a90e42e6277ac289ca74a76d8ea54dc2c9?format=markdown)
