> ## Documentation Index
> Fetch the complete documentation index at: https://docs.framesports.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit codes on the timeline

> Select, move, change and delete codes on MatchCoder's timeline, rate a code, comment on a moment, and undo a change from Changes.

The timeline under the video shows every code on the session, one row for each kind of code. This page covers how to select and change codes, how to comment on a moment, and how to undo a change.

## Open the timeline

The timeline is folded away until you open it. Press **Timeline** on the playback bar, or the down arrow key. Press it again to fold it away.

Along the top of the timeline are four tabs:

* **Timeline**: the rows of codes.
* **Matrix**: a count of the codes. See [Find codes and count them](https://docs.framesports.ai/matchcoder/find-and-matrix.md).
* **Find**: a searchable list of codes. See [Find codes and count them](https://docs.framesports.ai/matchcoder/find-and-matrix.md).
* **Changes**: every change made to the codes, with a way to undo it. See [Undo a change from Changes](#undo-a-change-from-changes).

To make the timeline taller or shorter, drag its top edge. Double-click the edge to fit it to the rows again.

## Select codes

To select one code, click it. To change it, double-click it: its details open beside it, with its type, its variant and the shirt number, and **Delete**. To put codes in a presentation, see [Turn codes into presentations](https://docs.framesports.ai/matchcoder/presentations.md).

To select more than one code:

* Hold <kbd>Shift</kbd> and click another code to add it.
* Press <kbd>Ctrl</kbd> + <kbd>A</kbd> (<kbd>Cmd</kbd> + <kbd>A</kbd> on a Mac) to select every code.
* With a code selected, press <kbd>Tab</kbd> for the next code and <kbd>Shift</kbd> + <kbd>Tab</kbd> for the one before.

Dragging across an empty part of the timeline moves it left or right. It does not select codes.

## Move a code or change its length

Drag a code along its row to move it. For a code with a length, such as a ruck, drag either end to make it longer or shorter.

You can also use the video. Select the code, move the video to the right moment, then press <kbd>\[</kbd> to start the code there, or <kbd>]</kbd> to end it there.

## What can I do to a selected code?

Right-click a code, or a selection of codes, to see what you can do to it.

![The menu that opens when you right-click a code, with Add to presentation, View clip, Comment, Edit code, Download clip, Edit player number, Shift by and Delete.](https://mintcdn.com/framesports/cd41OeNgwVxZ5-D-/images/matchcoder/code-menu.png?fit=max\&auto=format\&n=cd41OeNgwVxZ5-D-\&q=85\&s=7a83612605c4f85a4e260f08317b7a5c)

The menu shows what applies to that selection, from this list:

| Menu item | What it does |
| - | - |
| **Add to presentation** | Adds the codes' clips to a presentation. See [Turn codes into presentations](https://docs.framesports.ai/matchcoder/presentations.md). |
| **View clip** | Plays the code. |
| **Comment** | Comments on that code's moment. |
| **Merge** | Joins two or more selected codes of the same kind into one code. Only codes with a length, such as rucks, can be merged. |
| **Edit code** | Opens the code's details so you can change them. |
| **Download clip** | Saves the code's video as a file. |
| **Report an error** | Tells Framesports something about the code is wrong, so it can be checked. |
| **Edit player number** | Changes the shirt number on the selected codes. |
| **Split** | Cuts the code in two at the playhead. |
| **Shift by…** | Moves the selected codes earlier or later by a number of seconds, for example `-2` or `1.5`. |
| **Delete** | Deletes the selected codes. You can also press <kbd>Delete</kbd>. |

To copy codes, select them and press <kbd>Ctrl</kbd> + <kbd>C</kbd>. Move the video to where you want them and press <kbd>Ctrl</kbd> + <kbd>V</kbd>. On a Mac, use <kbd>Cmd</kbd>.

Every change saves by itself. To take back the last change, press <kbd>Ctrl</kbd> + <kbd>Z</kbd> (<kbd>Cmd</kbd> + <kbd>Z</kbd> on a Mac).

## Rate a code as good or bad

When you use the **Framesports codes** coding window, selecting a code shows it at the top of the coding window. You can rate it there:

* **Good** or **Bad**, for example **Good Kick** or **Bad Kick**. Press the same button again to take the rating off.
* **Add comment** comments on that code.
* **Next**, for example **Next Kick**, selects the next code on the same row and moves the video to it.
* **More detail** opens the rest of the code's details, when it has any.

Ratings are saved for your club, and show in **Changes**.

## Arrange the rows

Each row holds one kind of code, such as Tackle or Kick. To put the rows in a different order, drag a row's name up or down. The order is kept on that browser.

To see one row for each player instead, open **⋯** at the end of the timeline's toolbar and choose **Customise**. On the **Layout** tab, under **Rows**, choose **One row per player**. To go back, choose **One row per code**.

Right-click a row's name for more:

* **Open as table** lists that row's codes in **Find**.
* **Combine with another row…** makes a new row from two rows' codes.
* **Remove row** removes a row you added that has no codes yet.

## Comment on a moment

A comment marks a moment of the match with a clip and, if you like, a few words. Your club's coaches and admins see your comments.

![The New comment box under the video, with the words typed, the presentation picker, Cancel and send, and the clip's two brackets on the seek bar.](https://mintcdn.com/framesports/cd41OeNgwVxZ5-D-/images/matchcoder/comment.png?fit=max\&auto=format\&n=cd41OeNgwVxZ5-D-\&q=85\&s=532538fdf0239ba24d35b63236fca6ec)

To comment:

1. Press **New comment** at the top right of the video, or <kbd>Ctrl</kbd> + <kbd>=</kbd> (<kbd>Cmd</kbd> + <kbd>=</kbd> on a Mac). The video pauses.
2. Drag the two brackets on the seek bar to set where the clip starts and ends. They start 5 seconds before and 10 seconds after the moment you are on.
3. Type what to look at, if you want. Words are optional, so a comment with no words works as a bookmark.
4. Choose a presentation for the clip, **New presentation**, or **No presentation**.
5. Press **Send**, or <kbd>Enter</kbd>.

To start a new line in the comment, press <kbd>Shift</kbd> + <kbd>Enter</kbd>. To close the box without saving, press **Cancel** or <kbd>Esc</kbd>.

The clip also goes into your club's clip library, named after your words. Comments need an internet connection.

## Undo a change from Changes

The **Changes** tab lists every change to the session's codes, newest first, with who made it. To go back:

* **Restore this code** puts one code back as it was.
* **Restore this version** puts every code back as it was at that point.

To keep named copies of your codes that you can return to later, see [Save and put back versions](https://docs.framesports.ai/matchcoder/versions.md).

## Frequently Asked Questions

**I deleted a code by mistake. Can I get it back?**
Yes. Press <kbd>Ctrl</kbd> + <kbd>Z</kbd> (<kbd>Cmd</kbd> + <kbd>Z</kbd> on a Mac) straight away, or find the change in the **Changes** tab and press **Restore this code**. See [Undo a change from Changes](#undo-a-change-from-changes).

**Does deleting a code delete clips made from it?**
No. Clips already saved from a code stay in your clip library.

**Who can see my comments?**
Your club's coaches and admins. See [Comment on a moment](#comment-on-a-moment).

**How do I move several codes by the same amount?**
Select them, right-click, and choose **Shift by…**. Type the seconds, for example `-2` to move them two seconds earlier. See [What can I do to a selected code?](#what-can-i-do-to-a-selected-code)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.