This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-30 23:33:19 -08:00
1 parent a26c5d9549
commit 370f97b44e
4 files changed
+52 -34

No files matched your search

@@ -1,3 +1,16 @@
/*
Here we initialize the plugin with keyword mapping.
Intended to handle user interactions seamlessly.
Observe the keydown events for proactive suggestions.
Provide a mechanism for accepting AI suggestions.
Evaluate each input change with debounce logic.
Next, we implement touch and mouse interactions.
Anchor the user experience to intuitive behavior.
Intelligently reset suggestions on new input.
*/
import { Extension } from '@tiptap/core'
import { Plugin, PluginKey } from 'prosemirror-state'
@@ -202,4 +215,5 @@ export const AIAutocompletion = Extension.create({
}),
]
},
})
})