# git_ui: Add setting to control default click behavior for git panel \(\#59649\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 514b14ed49068de1075b65dfb7608c8454206d19

Requested commit: 514b14ed49068de1075b65dfb7608c8454206d19

Commit: 514b14ed49068de1075b65dfb7608c8454206d19

Tree: c0bb23da605bde7cb44d29771a0b7bdb3308d0d1

Author: Nathan Fiscaletti

Committer: GitHub

## Message

```
git_ui: Add setting to control default click behavior for git panel (#59649)

# Objective

The current behavior of the git panel is that when you click a file it
will open the multi-buffer view that shows all files with changes. If
you use CMD+Click or CTRL+Click, it will open the solo-file experience
where you only see the diff of the file you have selected. But, there is
no way to customize this behavior.

Related to:
https://github.com/zed-industries/zed/pull/56152#issuecomment-4641971669

## Solution

This MR adds a setting that allows you to customize the default click
behavior. The alternate behavior will always be accessible via CMD+Click
or CTRL+Click.

## Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [X] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [X] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

---

Release Notes:

- Added a setting to control default click behavior for git panel files

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

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

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