# Add a \`terminal::RerunTask\` action \(\#30288\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c64dc82e219b26cbe156b8122082f7b760a2d9b1

Requested commit: c64dc82e219b26cbe156b8122082f7b760a2d9b1

Commit: c64dc82e219b26cbe156b8122082f7b760a2d9b1

Tree: 5fccf042af7517ea1c30df0df0a637d8e6b9a7d4

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add a `terminal::RerunTask` action (#30288)

Bounded this action to the same defaults `task::Rerun` is bound to.

Unlike the `task::Rerun` which will always rerun the latest task, this
command reruns the current task tab, if focused.
The task is not in scope when the terminal pane is not focused, and
falls back to the regular rerun if invoked on a task-less terminal tab.

This way, we can add a proper tooltip to the terminal tab reruns:

<img width="231" alt="image"
src="https://github.com/user-attachments/assets/2cdd7458-5ba2-4cc7-a10b-3e2db059f1ca"
/>


Release Notes:

- Added `terminal::RerunTask` task action
```

## Parents

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

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