# Fix case-only renaming of files in project panel \(\#7835\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2dffc5f6e1526a4494f34bfaca8c738998712d6b

Requested commit: 2dffc5f6e1526a4494f34bfaca8c738998712d6b

Commit: 2dffc5f6e1526a4494f34bfaca8c738998712d6b

Tree: 9fa5a3e5d6567d1e8568a08b665a5390912c771e

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix case-only renaming of files in project panel (#7835)

This is a follow-up to #7768 but now also fixes #5211.

Explanation is relatively simple: case-only renames previously failed
because while Zed would think that `foobar` and `FOOBAR` are different,
the filesystem would give us an file-already-exists error when renaming.

So what we're doing here is to check whether we're on a case-insensitive
filesystem and if so, we overwrite the old file.

Release Notes:

- Fixed case-only renaming of files in project panel.
([#5211](https://github.com/zed-industries/zed/issues/5211)).

Proof:



https://github.com/zed-industries/zed/assets/1185253/57d5063f-09d9-47b1-a2df-3d7edefca97d
```

## Parents

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

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