Add optional QuickSymbols IPC support#184
Open
LatencyBryer wants to merge 1 commit into
Open
Conversation
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.
This pull request introduces QuickSymbols plugin IPC integration for ChatTwo.
Essentially, the aim is to enable ChatTwo users to launch the QuickSymbols popup-list when the ChatTwo input is focused, pick symbols and then have ChatTwo place those chosen symbols into its own text entry field.
ChatTwo has its own text input, focus, selection and caret state, so the safest integration is for ChatTwo to opt in via IPC and perform the final insertion on its side.
How it works
No clipboard, synthetic input or external ImGui input writing is used.
ChatTwo monitors its own input while active and informs QuickSymbols via
QuickSymbols.WatchInput.Upon pressing the QuickSymbols keybind it will open its own popup for the ChatTwo owner. When you select a symbol, QuickSymbols sends it back through
QuickSymbols.SymbolSelectedand ChatTwo inserts it through its own text input handler.Changes Made
QuickSymbolsIpcintegration classQuickSymbols.WatchInputQuickSymbols.SymbolSelectedNotes
The integration is completely optional. If QuickSymbols is not installed, not loaded or does not expose the expected IPC, ChatTwo will continue to work normally.
If you want, you can get the full QuickSymbols/IPC documentation I wrote here.