# Open excerpt on double click in multibuffer by default\. \(\#9196\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 02dcdd02287f258d120c8d646422552b8782d5b8

Requested commit: 02dcdd02287f258d120c8d646422552b8782d5b8

Commit: 02dcdd02287f258d120c8d646422552b8782d5b8

Tree: 7bfad56cbcbeb0c446b92f6e76df7a4ac14fc99c

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Open excerpt on double click in multibuffer by default. (#9196)

Closes https://github.com/zed-industries/zed/issues/5275

Double click with `alt` modifier pressed will do the regular word
selection.

Adds a setting to disable this behavior and instead select a word, as in
the regular buffer.

```
// What to do when multibuffer is double clicked in some of its excerpts
// (parts of singleton buffers).
// May take 2 values:
//  1. Behave as a regular buffer and select the whole word.
//         "double_click_in_multibuffer": "select"
//  2. Open the excerpt clicked as a new buffer in the new tab (default).
//         "double_click_in_multibuffer": "open",
// For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
"double_click_in_multibuffer": "open",
```


Release Notes:

- Made multibuffer to open excerpts in new tabs on double click by
default (changing settings or keeping alt restores the word selection
behavior). ([5275](https://github.com/zed-industries/zed/issues/5275))
````

## Parents

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

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