Skip to content

CLI: open files for unexisting directories #4441

@BuonOmo

Description

@BuonOmo

Current behaviour

$ zed path/to/unexisting/dir/file.txt
Error: No such file or directory (os error 2)

Feature idea

I'd like this same command to open the file as if the folder existed. And create the folder when the file is saved.

$ zed path/to/unexisting/dir/file.txt
# open editor without creating the path until file saved

This is the VSC behaviour, and I love it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliCommand-line interface feedback

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions