Skip to content

Conversation

@kcarnold
Copy link
Contributor

Implements a prototype inline autocomplete feature for the custom Lexical editor:

Backend changes:

  • Add new 'inline_autocomplete' prompt type in nlp.py that generates short,
    contextual text continuations (3-10 words)

Frontend changes:

  • Create InlineAutocompletePlugin component with:
    • Debounced trigger (500ms after typing stops)
    • Ghost text overlay showing AI suggestions in gray
    • Tab or Right Arrow to accept suggestions
    • Escape or continued typing to reject suggestions
  • Integrate plugin into LexicalEditor component
  • Enable autocomplete by default in demo mode

The feature provides real-time writing assistance without interrupting the
writer's flow, only triggering suggestions during natural pauses.

Implements a prototype inline autocomplete feature for the custom Lexical editor:

Backend changes:
- Add new 'inline_autocomplete' prompt type in nlp.py that generates short,
  contextual text continuations (3-10 words)

Frontend changes:
- Create InlineAutocompletePlugin component with:
  * Debounced trigger (500ms after typing stops)
  * Ghost text overlay showing AI suggestions in gray
  * Tab or Right Arrow to accept suggestions
  * Escape or continued typing to reject suggestions
- Integrate plugin into LexicalEditor component
- Enable autocomplete by default in demo mode

The feature provides real-time writing assistance without interrupting the
writer's flow, only triggering suggestions during natural pauses.
@kcarnold kcarnold marked this pull request as draft November 14, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants