Inline rewrite
Select a passage, say what should change, and keep or discard the result in place.
Inline rewrite is for one passage and one instruction. It has no key of its own: selecting text is the gesture. It sees the passage you selected and your instruction, so it is quick, and it cannot wander into another part of the paper.
1Select, then describe
Select some text in the editor and a small popup appears beside it with two actions, Edit and Add to Chat. Choose Edit, type what you want, and press ↩.
Selected: We utilize a novel approach in order to improve results.Edit: shorter, and name the methodResult: We improve results with contrastive pretraining.
2Keep it or discard it
The new text streams in as a diff over your selection. Your file does not change while you read it, and the document is locked against typing until you decide.
- Accept replaces the selection. The button shows its key, ⌘ ↩, which means this while a rewrite is on screen.
- Reject leaves the text as it was. Esc does the same, and also cancels a rewrite that is still streaming.
3How much you can select
- Five characters or fewer: no popup, so ordinary selecting stays out of your way.
- Under 2,000 characters: both actions are available.
- 2,000 to 10,000 characters: Add to Chat only, because a rewrite that long is slow and unreliable.
- Over 10,000 characters: the popup asks you to select a smaller passage.
4When to use the chat instead
Use the chat, with ⌘ J, when the change depends on anything outside the selection: a term defined in another section, a citation, or an edit that spans several files. Add to Chat attaches your selection to the next message, so you can still point at the exact passage.