Replies: 1 comment
-
Maybe https://github.com/Milkdown/examples/blob/main/vanilla-openai/src/copilotPlugin.ts will help -- in my example everything is done in the apply section, but in reality you could use a separate function that sets the list of keywords via "tr.setMeta(PluginKey, [Keywords])" .. which you could trigger manually. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have this plugin (Thanks to @allan-maeots):
and I need to re-apply the plugin login whenever
context.get('keywordsContext')
gets new value.I would expect that I can change this value doing something like this:
I am not clear how to trigger re-apply.
Beta Was this translation helpful? Give feedback.
All reactions