# pane: Add ability to use custom tooltip content \(\#22879\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5c239be7572fa8dbe38a83160b26b22d5d383174

Requested commit: 5c239be7572fa8dbe38a83160b26b22d5d383174

Commit: 5c239be7572fa8dbe38a83160b26b22d5d383174

Tree: 95ff0d094ea71136b2fe210343f95ca3e6285036

Author: Danilo Leal

Committer: GitHub

## Message

```
pane: Add ability to use custom tooltip content (#22879)

This PR is an alternate version of
https://github.com/zed-industries/zed/pull/22850, but now using a
similar approach to the existing `tab_content` and `tab_content_text`,
where `tab_tooltip_content` refers to the existing `tab_tooltip_text` if
there's no custom tooltip content/trait defined, meaning it will
simplify render the text/string content in this case.

This is all motivated by
https://github.com/zed-industries/zed/pull/21955, as we want to pull off
the ability to add custom content to a terminal tab tooltip.

Release Notes:

- N/A
```

## Parents

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

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