# Improve Zed prompts for file path selection \(\#32014\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4aabba6cf620afd6b2ff4dc45f3ddf3a96b8123f

Requested commit: 4aabba6cf620afd6b2ff4dc45f3ddf3a96b8123f

Commit: 4aabba6cf620afd6b2ff4dc45f3ddf3a96b8123f

Tree: 4833a8e849be581f5a9aa9d1262b24ceb7fb06e4

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Improve Zed prompts for file path selection (#32014)

Part of https://github.com/zed-industries/zed/discussions/31653
`"use_system_path_prompts": false` is needed in settings for these to
appear as modals for new file save and file open.

Fixed a very subpar experience of the "save new file" Zed modal,
compared to a similar "open file path" Zed modal by uniting their code.

Before:


https://github.com/user-attachments/assets/c4082b70-6cdc-4598-a416-d491011c8ac4


After:



https://github.com/user-attachments/assets/21ca672a-ae40-426c-b68f-9efee4f93c8c


Also 

* alters both prompts to start in the current worktree directory, with
the fallback to home directory.
* adjusts the code to handle Windows paths better

Release Notes:

- Improved Zed prompts for file path selection

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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