# workspace: Add trailing \`/\` to directories on completion when using \`OpenPathPrompt\` \(\#25430\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 11b79d0ab9f1dac9e1be8a9a73297a96873f131f

Requested commit: 11b79d0ab9f1dac9e1be8a9a73297a96873f131f

Commit: 11b79d0ab9f1dac9e1be8a9a73297a96873f131f

Tree: af1ff6baf1ab3ef6e8dc8c03e66c01e144708ae2

Author: 张小白

Committer: GitHub

## Message

```
workspace: Add trailing `/` to directories on completion when using `OpenPathPrompt` (#25430)

Closes #25045

With the setting `"use_system_path_prompts": false`, previously, if the
completion target was a directory, no separator would be added after it,
requiring us to manually append a `/` or `\`. Now, if the completion
target is a directory, a `/` or `\` will be automatically added. On
Windows, both `/` and `\` are considered valid path separators.



https://github.com/user-attachments/assets/0594ce27-9693-4a49-ae0e-3ed29f62526a



Release Notes:

- N/A
```

## Parents

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

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