# Add an action for capturing your last edit as an edit prediction example \(\#44841\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b8e40e6fdb61fc108f2db7372b3a38655b101875

Requested commit: b8e40e6fdb61fc108f2db7372b3a38655b101875

Commit: b8e40e6fdb61fc108f2db7372b3a38655b101875

Tree: 06322dcb879ac0ca688e01249034417af1e4998d

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Add an action for capturing your last edit as an edit prediction example (#44841)

This PR adds a staff-only button to the edit prediction menu for
capturing your current editing session as edit prediction example file.

When you click that button, it opens a markdown tab with the example. By
default, the most recent change that you've made is used as the expected
patch, and all of the previous events are used as the editing history.

<img width="303" height="123" alt="Screenshot 2025-12-14 at 6 58 33 PM"
src="https://github.com/user-attachments/assets/600c7bf2-7cf4-4d27-8cd4-8bb70d0b20b0"
/>

Release Notes:

- N/A
```

## Parents

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

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