# project_panel: Add warning error for leading or trailing whitespace when creating file or directory \(\#28215\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 956f359045d9ea78550420dee9a2cfc7dc4feff3

Requested commit: 956f359045d9ea78550420dee9a2cfc7dc4feff3

Commit: 956f359045d9ea78550420dee9a2cfc7dc4feff3

Tree: 5d92daab11ad559f5c6c24aaedbb3e1b0c719be7

Author: Smit Barmase

Committer: GitHub

## Message

```
project_panel: Add warning error for leading or trailing whitespace when creating file or directory (#28215)

- Show yellow warning (instead or error) for leading/trailing
whitespace.
- Do not block user from creating it.
- If you rename existing file/dir which contains leading/trailing
whitespace, it will show error right away.

<img width="250" alt="image"
src="https://github.com/user-attachments/assets/562895ee-3a86-4ecd-bb38-703d1d8b8599"
/>

Release Notes:

- Added warning for leading or trailing whitespace while renaming or
creating new file or directory in Project Panel.
```

## Parents

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

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