# Asking Nudge to flag, fix or trim the page

Nudge asks AI to read your page and point at what you may want to look at again: weak or long sentences, typos, words that could go. What it finds is marked on the page as a suggestion, and your text doesn't change until you accept it.

## Asking Nudge

To get started, press `Ctrl+2 / ⌘2`, or click *Nudge* in the middle of the bottom bar. A card opens over the bar with Nudge's six actions and, under them, the trim scale. Press `↑` or `↓` to pick one and `Return` to ask, or click it.

![Nudge's card over the page: its six actions, then the trim scale from Original to Halve](https://mayhap.app/build/assets/nudge-Cs8whljk.webp)

Nudge always reads the whole page. Once you've picked an action, the card folds into a single line that names it and the provider being asked, with *Cancel* at its end. The caret stays in your text the whole time, so you may go on writing while you wait.

Nudge asks the AI provider you chose in Settings. If you haven't added a key yet, the card says *Nudge needs an API key.* and offers *Add a key…*, which opens *Settings › AI*. You can learn more about this in [AI providers and keys](https://mayhap.app/guide/ai-providers).

## The six actions

The six actions above the trim scale each ask for one kind of thing. Every kind of flag has a colour of its own, so two kinds never look alike on the page.

Fix punctuation and typos
: Finds typos and slips of punctuation, each with its fix ready to accept or reject.

Flag the weakest sentences
: Marks the sentences that do the least for the page.

Flag sentences that run long
: Marks the sentences that could be split or shortened.

Flag convoluted sentences
: Marks the sentences that are hard to follow on a first read.

Flag words that don't fit the tone
: Marks words that sound out of place beside the rest of the page.

Flag hedges and filler
: Marks the softening words and padding a sentence could do without.

Asking for another action replaces what the last one found.

## The bar

When the answer comes, the small card goes and a bar takes its place above the *Nudge* button. Its first line names the action and how many it found, such as *5 flags* or *2 fixes*. Beside the count, *↑ 1* and *↓ 3* say how many lie above and below the part of the page in view. Click one to go to the next of them in that direction.

![The bar for Flag sentences that run long with 2 flags, over a page whose two long sentences are highlighted](https://mayhap.app/build/assets/ai-flags-Bt_mLlKs.webp)

Under that line, a short hint says what to do, and then come the words that act on everything at once: *Clear flags*; *Accept all* and *Clear fixes*; or, for a trim, *Make the cuts*, *Walk through* and *Clear cuts*. The answer never scrolls the page on its own.

To put the bar away, click its × or press `Esc` on the page. What Nudge found stays on the page, and the *Nudge* button shows how many are left. Click the button, or press `Ctrl+2 / ⌘2`, to bring the bar back.

## Flags

A flag is a soft highlighter stroke over the words. Rest the mouse on one for a moment, and a card shows a one-line reason with three actions:

AI alternatives
: Selects the flagged words, opens the *Alternatives* panel on them and asks AI for new versions.

Mark as maybe
: Turns the flagged words into a maybe, so they fade but stay on the page.

Dismiss
: Takes the flag away and leaves the words as they are.

Flags aren't saved with your document. *Clear flags* takes them all away, and so does asking Nudge again. You can learn more about versions in [Versions of a word, a sentence or a paragraph](https://mayhap.app/guide/versions).

## Fixes

*Fix punctuation and typos* underlines each word it would change in pencil. Rest the mouse on one, or click it, to see the replacement with *Accept* and *Reject*. While there's more than one fix, the card also offers *Accept all*, which you'll find on the bar as well.

![Three typos underlined on the page, and the bar with 3 fixes, Accept all and Clear fixes](https://mayhap.app/build/assets/ai-fixes-DPU7Fmcr.webp)

Each *Accept* is one undo step, and so is *Accept all*. A fix keeps the look of what it replaces: for example, a fix inside bold text stays bold.

## Trimming the page

The trim scale under the actions asks how the page could be shorter. Each step names roughly how much would go:

Snip
: About 10%.

Tighten
: About 20%.

Sharpen
: About 30%.

Halve
: About 50%.

For a trim, AI never rewrites a sentence: it only picks words that could go. Mayhap fades those words and strikes them through, so you read the page as it would be with them gone. The bar shows the trim and the count, for example *Tighten* with *535 → 480 words · −10%*.

![A Tighten trim: the words it would cut struck through, and the bar with the count, Make the cuts, Walk through and Clear cuts](https://mayhap.app/build/assets/ai-trim-DK_pk5Ii.webp)

If you would like to keep a crossed-out word, click it. When you're happy with what's left, choose *Make the cuts*. The words go as one undo step. *Clear cuts* lets the whole proposal go and leaves the page as it was, and *Original* on the trim scale does the same.

Before *Make the cuts* and *Accept all*, Mayhap keeps a copy of the whole document in its history. You can learn more about this in [History](https://mayhap.app/guide/history).

## Walking through the cuts

Sometimes you may wish to judge the cuts one at a time. To do so, choose *Walk through*. Mayhap scrolls to each cut in turn, and the bar says where you are: *Cut 2 of 5.*

At each cut, choose *Keep it* to keep those words, or *Next cut* to leave the cut in and move on. Whenever you've seen enough, *Make the cuts* takes the cuts that are left.

## Writing while Nudge reads

You don't have to wait for the answer. Keep writing, and when it comes, each flag, fix and cut lands where its words are now. Anything whose words you changed in the meantime is left out. If your edits went over everything it found, the card says *The page changed while the AI read it. Ask again.*

Nudge reads your maybes too, but it never flags, fixes or cuts anything inside one. You're already weighing those words.

## Cancelling a request

While Nudge asks, choose *Cancel* on its card or press `Ctrl+. / ⌘.`. Pressing `Esc` or clicking outside the card only puts the card away: the request goes on, and the little bot on the *Nudge* button keeps working until the answer comes. This is so a slip of the key never loses an answer you waited for.

Remember, a request that has been sent can't be called back. The provider still answers it and counts it against your key; Mayhap simply lets the answer go. Asking for another action while one is on its way does the same.

## Working from the keyboard

The same keys work on flags, fixes and cuts, while the caret stays in your text. Press `Alt+N / ⌘]` for the next item and `Alt+P / ⌘[` for the previous one. The caret moves to it, the page scrolls to it and its card shows. The keys follow the order of the text and go round again at the end.

`Alt+Return / ⌘Return`
: *AI alternatives* on a flag, *Accept* on a fix, *Next cut* on a cut.

`Alt+Backspace / ⌘Backspace`
: *Dismiss* on a flag, *Reject* on a fix, *Keep it* on a cut.

`Alt+Shift+Return / ⇧⌘Return`
: *Accept all* for fixes, *Make the cuts* for a trim.

`Return` on its own still starts a new line. `Esc` puts away one thing at a time: a flag's or a fix's card, then Nudge's card, then the bar. It never cancels a request and never clears what Nudge found.

## Keys

| Command | Linux, Windows | macOS |
| --- | --- | --- |
| Nudge | Ctrl+2 | ⌘2 |
| Pick an action | ↓ / ↑ | ↓ / ↑ |
| Ask | Return | Return |
| Cancel | Ctrl+. | ⌘. |
| Next item | Alt+N, Alt+] | ⌘] |
| Previous item | Alt+P, Alt+[ | ⌘[ |
| Accept or act on it | Alt+Return | ⌘Return |
| Reject, keep or dismiss | Alt+Backspace | ⌘Backspace |
| Accept or cut all | Alt+Shift+Return | ⇧⌘Return |
| Put away a card or the bar | Esc | Esc |
