# Suggest unsaved buffer content text as the default filename \(\#35707\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7993ee9c07a56e61ead665ca95343c038ea2765a

Requested commit: 7993ee9c07a56e61ead665ca95343c038ea2765a

Commit: 7993ee9c07a56e61ead665ca95343c038ea2765a

Tree: db2966367f55e81a68ec1f311e2fbdb487332c73

Author: Igal Tabachnik

Committer: GitHub

## Message

```
Suggest unsaved buffer content text as the default filename (#35707)

Closes #24672

This PR complements a feature added earlier by @JosephTLyons (in
https://github.com/zed-industries/zed/pull/32353) where the text is
considered as the tab title in a new buffer. It piggybacks off that
change and sets the title as the suggested filename in the save dialog
(completely mirroring the same functionality in VSCode):

![2025-08-05 11 50
28](https://github.com/user-attachments/assets/49ad9e4a-5559-44b0-a4b0-ae19890e478e)

Release Notes:

- Text entered in a new untitled buffer is considered as the default
filename when saving
```

## Parents

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

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