visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
283 stars 44 forks source link

Inputs - Typing shortcuts #172

Open adrian-moisa opened 1 year ago

adrian-moisa commented 1 year ago

VE Inputs - Typing shortcuts #172

VE Inputs - Keyboard shortcuts #171

VE Inputs - Typing Shortcuts, Add inline code when using back-tick notation

VE Inputs - Support for hashtags, mentions, slash commands #49

We could have some built in slash commands:

Hashtags - User @kairan77 has provided a nice demo on how to create a button to add hashtags. He relies on links to add the hashtags. It's a nice setup working within the existing Quill API. He is a strong believer in lightweight libs, and we endorse the same view. However our goal is to go one step further and instead of working with the custom toolbar buttons and controller methods we plan to trigger the interaction from typing shortcuts. We can expose a callback that provides the necessary data for the client dev to position the autocomplete options. This means we keep our implementation as lightweight as possible. Similar to how we did it for the quick menu and markers attachments.

Mentions - A code sample can be found here.

VE Inputs - Rules, Inline code, exit styling by pressing right key #47

The original Quill issue: https://github.com/singerdmx/flutter-quill/discussions/848