# Versions of a word, a sentence or a paragraph

Mayhap lets a word, a sentence, a paragraph or a headline hold more than one version. The version shown is the real text of your document, and the others wait beside it until you want to read them in place.

## Adding a version

![Mayhap with the Alternatives panel open on the left: Word, Sentence and Paragraph at its top, and six versions of the word quiet](https://mayhap.app/build/assets/hero-CacQigJR.webp)

1. **Put the caret in the text.** Put it in the word you'd like another version of, such as *quiet*, or select the words.
2. **Open the Alternatives panel.** Press `Ctrl+1 / ⌘1`. You may also click *Alternatives* at the bottom left of the window, or choose *Alternatives for selection* from the context menu.
3. **Pick what the versions are of.** At the top of the panel, pick *Word*, *Sentence* or *Paragraph*. A heading is a paragraph of its own, so its versions are under *Paragraph*.
4. **Type a version.** Type it on the empty line and press `Return`. Once the text has a second version, Mayhap draws its marks under it, so you can find it again later.
5. **Show each version.** Press `↑` or `↓` to show each version in the text. When you're happy with the one shown, press `Esc`: the panel closes and keeps it.
6. **Switch on the page.** Later, rest the mouse on the text and press `↑` or `↓`, or put the caret inside it and press `Alt+↑ / ⌥↑` or `Alt+↓ / ⌥↓`.

Each version is shown in its sentence, and the paragraph reflows around it, so you always read it where it belongs. In English text, *a* or *an* in front of a word follows the version shown: *a thumbtack* becomes *an eraser*.

The panel follows the caret. While it's open, click another word or move the caret with the arrow keys, and the panel shows the versions of the text you're in. The rest of the page dims a little, so the text in focus stands out.

## Marks on the page

Mayhap marks every piece of text that has versions. The marks are drawn by hand, as if with a pencil, and each one keeps its own shape:

Pencil line
: Under a word, a sentence or a headline that has versions.

Rings
: One for each version, under the end of the text. The filled one is the version shown. When another version is shown, a rust ring marks the original.

Corners
: Beside a paragraph that has versions, one at its top and one at its bottom, with its rings between them.

In the panel
: Each version has the ring it has on the page, and a version from AI has a small bot.

If you'd prefer straight lines and round dots, choose *Clean* under *Marks* in *Settings › Look*. You can learn more about this in [Themes and marks](https://mayhap.app/guide/themes-and-marks).

## Removing a version

To remove a version, show it in the panel and press `Backspace` or `Delete`. The next version takes its place in the text.

## Hiding the marks

Sometimes you may wish to read the page without any marks. To do so, press `Ctrl+Alt+A / ⌥⌘A`, or click *Alternatives layer* in the middle of the top bar. Your versions stay where they are; only their marks are hidden until you press the key again.

By default, every new window shows the marks. If you would like new windows to start without them, turn off *Alternatives layer in new windows* in *Settings › Writing*.

## Keys

| Command | Linux, Windows | macOS |
| --- | --- | --- |
| Alternatives panel | Ctrl+1 | ⌘1 |
| Alternatives for selection | Ctrl+Shift+A | ⇧⌘A |
| Add a version | Return | Return |
| Show the next / previous version | ↓ / ↑ | ↓ / ↑ |
| Remove the version | Backspace, Delete | Backspace, Delete |
| Close the panel | Esc | Esc |
| Next / previous version, hovered | ↓ / ↑ | ↓ / ↑ |
| Next / previous version at the caret | Alt+↓ / Alt+↑ | ⌥↓ / ⌥↑ |
| AI alternatives for selection | Ctrl+Shift+I | ⇧⌘I |
| Alternatives layer | Ctrl+Alt+A | ⌥⌘A |

Don't worry about remembering them: `F1` lists every key in Mayhap, including any you've changed. You may give any command other keys, as [Keys](https://mayhap.app/guide/keys) describes.

## Undo and versions from AI

Every change to a version is one undo step. If you remove a version by mistake, press `Ctrl+Z / ⌘Z`, in the panel or on the page, and it comes back.

If you would like AI to suggest more versions, type *??* on the empty line and press `Return`. Or, select the text and press `Ctrl+Shift+I / ⇧⌘I`, which opens the panel and asks at once. The suggestions join your own versions with a small bot beside them, and your text stays as it is until you show one. Mayhap asks the provider you've chosen in *Settings › AI*. Without a key for it, the panel says so and offers to add one. [AI providers](https://mayhap.app/guide/ai-providers) explains how to choose one.
