Addressing #1

Not simulating the editing seems to not invoke auto-complete
pull/4/head
Haoming 2023-06-02 19:00:46 +08:00
parent 010b78662f
commit 57a388db6c
2 changed files with 7 additions and 4 deletions

View File

@ -20,4 +20,7 @@ Sometimes, when you type too fast or copy prompts from all over the places, you
- [x] Respect line breaks
- **Note:** `Remove Duplicates` only checks within the same line
- [x] **[New]** Pressing `Ctrl + \` to quickly escape the **brackets** of the hovered tag
- Normally, **brackets** *(parentheses)* are used to increase the weight of a prompt. Therefore, for tags like `mejiro mcqueen (umamusume)`, you will need to escape it like `mejiro mcqueen \(umamusume\)`.
- Normally, **brackets** *(parentheses)* are used to increase the weight of a prompt. Therefore, for tags like `mejiro mcqueen (umamusume)`, you will need to escape it like `mejiro mcqueen \(umamusume\)`.
<sup><b>Note:</b> This is purely visual. The actual prompt is unchanged until you manually edit the text again.</sup>

View File

@ -57,7 +57,7 @@ function injectBracketEscape(id) {
textarea.selectionEnd = result[1] + 3
}
updateInput(textarea)
// updateInput(textarea)
}
}
})
@ -166,10 +166,10 @@ onUiLoaded(async () => {
textAreas[0].value = lines[0].join('\n')
updateInput(textAreas[0])
// updateInput(textAreas[0])
textAreas[1].value = lines[1].join('\n')
updateInput(textAreas[1])
// updateInput(textAreas[1])
}
})