# terminal: Add right-click in terminal to create a new selection if none is present \(\#29131\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f8ac6eef75b6797178990c57000c5b0cbc651694

Requested commit: f8ac6eef75b6797178990c57000c5b0cbc651694

Commit: f8ac6eef75b6797178990c57000c5b0cbc651694

Tree: f2736afaddfc61cc9c625f1d5957fb6345e5d2cc

Author: Ho Chun Lau

Committer: GitHub

## Message

```
terminal: Add right-click in terminal to create a new selection if none is present (#29131)

This PR adds functionality to right click in terminal create new
selection if none present. The selection is identical with double click
a text in terminal, plus the logic is moved from the double-click in the
terminal::mouse_down.

Closes #28237 

Release Notes:
- Adds functionality to right click in terminal create new selection if
none present
```

## Parents

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

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