Ionaru / Ionaru/easy-markdown-editor

Text completion callback for Copilot-style completions to support LLMs on co-writing.

Open
#614 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
In our LLMs era, every editor should have the ability to complete texts. This significantly improves writing speed and allows to get rid of typical grammar errors

**Describe the solution you'd like**
I would suggest to pass an optional callback to settings which is called every time the editor ready to accept completion. The callback should be triggered when the cursor moves (e.g. when user is typing new content or just changes position), and callback should accept text from zero position up to a cursor. Ideally have some debounce though this could be added on user-level.

**Describe alternatives you've considered**
I have implemented similar component using Quill, but I would like to have it for EasyMDE.
https://github.com/devforth/vue-suggestion-input?tab=readme-ov-file

**Additional context**
here is a sample how it should work:
![](https://camo.githubusercontent.com/19f4b0f261d17b127a7c9d0cd1c799c8333b73161861e393789a6f18b89303a5/68747470733a2f2f61646d696e666f7274682e6465762f6173736574732f696d616765732f64656d6f436861744770742d63623034353134366164643237353864366662353731656665663638306538302e676966)

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reviewing EasyMDE’s public settings API and cursor-change handling, then compare the linked vue-suggestion-input example. Done means an optional completion callback receives text from the document start to the cursor whenever the cursor moves, with debounce behavior explicitly decided.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.