Akryum / Akryum/vue-mention

Trigger on every character input instead of @ sign

Abierto
#48 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Vue
Estrellas
556
Forks
58
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I'm using `vue-mention` to implement a textarea for inputting a mathematical expression. When the user inputs an existing variable name, the tooltip should pop up with autocomplete-suggestions just as it happens in every IDE for coding.
Currently, I only got it working with typing the `@` sign when wanting to select a variable.

Screenshot 2021-06-14 at 10 39 19

But obviously it would be more convenient if the mentionable tooltip would trigger while typing simple characters (i.e. trigger on the first input character, then filter on the following ones), instead of having to use the `@` sign. I tried with using the whole alphabet as `keys` for the `Mentionable`:
```
alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split('');
```
and
```

...
```

But that breaks the filtering, and the autocompletion doesn't work properly either.

Any suggestions on how to implement this? It would be nice to have some functionality that supports this use case.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.