LogoUnimeTypeDocs

Getting Started

OverviewSetup and Shortcuts

Using UnimeType

Convert, Polish, and ExplainText Scope and Accepted ParagraphsApplication Compatibility

Safety

Privacy and Protected ContentStatus and Troubleshooting

Advanced technical reference

Advanced Technical Reference
تنزيل
LogoUnimeTypeDocs

Getting Started

OverviewSetup and Shortcuts

Using UnimeType

Convert, Polish, and ExplainText Scope and Accepted ParagraphsApplication Compatibility

Safety

Privacy and Protected ContentStatus and Troubleshooting

Advanced technical reference

Advanced Technical Reference
تنزيل

Text Scope and Accepted Paragraphs

How UnimeType chooses request text, preserves structure, and handles words appended after conversion.

UnimeType keeps three objects separate:

  • Captured text: text read from the host or local typing buffer.
  • Request text: the captured body after local protection is applied.
  • Replacement text: preserved prefix + model output + preserved suffix.

Every convertible capture satisfies captured text = preserved prefix + request body + preserved suffix. Caret and concurrent-edit checks use the complete captured host range, never the request body's relative range.

Capture order

Convert

  1. Use the non-empty selection. Convert excludes outer whitespace from the request body, but the replacement range remains the exact selection. Outer whitespace is reconstructed byte-for-byte, and selected structural markers remain part of the request body.
  2. In Terminal, Ghostty, VS Code, or VS Code Insiders, use the current local typing buffer when it is available and the caret is collapsed.
  3. Otherwise read the complete paragraph containing the caret. If the local typing buffer matches the host text immediately before the caret byte-for-byte, convert only that buffer and use the paragraph as read-only context. The same rule applies in the middle and at the end of a paragraph.
  4. If paragraph access is empty or unavailable, use the current typing buffer.
  5. If no source is available, report Nothing to convert.

Polish and Explain

  1. Use the exact non-empty selection, including its outer whitespace.
  2. Otherwise capture the sentence around the caret. Sentence delimiters are 。!?.!? and newline.
  3. If sentence access is unavailable, use the current typing buffer.

Paragraph and structure boundaries

A hard newline defines a paragraph boundary. Soft visual wrapping does not. The boundary newline is never part of the automatic replacement range.

For automatic Convert capture, UnimeType preserves outer whitespace and removes these structural prefixes from the request body:

  • Markdown headings such as ##
  • Block quotes such as >
  • Ordered and unordered list markers
  • Task boxes such as [ ] and [x]

Outer whitespace from automatic capture and explicit Convert selections is not sent to the model, but it remains inside the complete replacement envelope and is restored byte-for-byte. Convert does not strip a selected structural prefix. Polish and Explain keep their explicit selection exact, including outer whitespace and prefixes.

Accepted paragraphs and appended words

After a verified paragraph conversion, UnimeType remembers the resulting text, its starting range, and the host client. If the same paragraph still begins with that accepted text and the user appends more words, the next Convert sends only the new suffix. Up to 100 preceding characters from the accepted prefix are included as read-only context.

If the current paragraph no longer begins with the accepted text, UnimeType sends the complete paragraph body again. When only the newly typed suffix can be verified in the local buffer, replacement deletes and replaces only that suffix, leaving the accepted prefix in the host.

Typing-buffer invalidation

The local buffer is cleared by a client change, pointer input outside the action menu, newline, navigation or focus keys, Command/Control editing commands, Option-Backspace, an untrackable key, input-method deactivation, or a completed or unchanged action. Normal Backspace removes its last character.

Immediately before replacement, UnimeType checks that the captured host range or typed-buffer generation is still unchanged. A mismatch reports Text changed and prevents replacement.

Table of Contents

Capture orderConvertPolish and ExplainParagraph and structure boundariesAccepted paragraphs and appended wordsTyping-buffer invalidation