Repository navigation
Conversation
- {clipboard} inserts the clipboard text into the prompt (useful e.g. to draft a reply to a copied message without pasting it into the field). Clips marked sensitive (EXTRA_IS_SENSITIVE) and image clips (image/* or image URIs) are skipped.
- If a prompt uses {clipboard} without {text}, the field text is not sent and the key also works in an empty field (offline & standard). When both {text} and {clipboard} are present, they are substituted in a single pass so placeholders inside either text are not expanded twice; an empty field is caught when {text} is used.
- {text} placeholder is now also supported in the standard (online) ProofreadService, and placeholders ignore case and whitespace ({Text}, { clipboard }).
- #prepend ("Prepend result") inserts the result at the cursor, or before the selection (including backwards selections), separated by empty lines (handling both LF and CRLF); the rest of the text stays. #append and #prepend are mutually exclusive in the UI and normalized on load.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
{clipboard}placeholder support and a#prepend("Prepend result") modifier for custom AI keys:{clipboard}placeholder: Inserts the current clipboard text into the prompt (for example, to draft a reply to a copied message without pasting it into the field first). Clips marked sensitive (EXTRA_IS_SENSITIVE) and image clips (image/*or image URIs) are skipped.{Text},{ clipboard }). When a prompt uses{clipboard}without{text}, the field text is not sent and the key also works in an empty field (both offline and standard). When both{text}and{clipboard}are used, they are substituted in a single pass so placeholders inside either text are not expanded twice; an empty field is caught when{text}is used.{text}is now also supported in thestandard(online)ProofreadService(offline/ProofreadService.ktis left untouched to avoid conflicts with Offline AI: performance settings, thinking mode, speed display and real cancel (for plugin 1.1.0) #994).#prepend("Prepend result"): Inserts the AI result at the cursor, or before the selected text (including backwards selections), separated by empty lines (handling LF and CRLF) while keeping the rest of the text intact.#appendand#prependare mutually exclusive in the configuration UI and normalized on load.Tested
./gradlew testOfflineDebugUnitTest --tests helium314.keyboard.latin.utils.CustomAIKeyTextTest --tests helium314.keyboard.latin.InputLogicTest— passed (12/12 + 191/192, 1 pre-existing@Ignoreskipped)./gradlew testStandardDebugUnitTest --tests helium314.keyboard.latin.utils.CustomAIKeyTextTest --tests helium314.keyboard.latin.InputLogicTest— passed (12/12 + 191/192, 1 pre-existing@Ignoreskipped)