NotePlan / NotePlan/plugins

Create sorting API and use it for plugin list (and beyond)

Abierto
#268 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@EduardMe ya está trabajando en esto.

Desde el 5/7/2023.

API
Lenguaje dominante
JavaScript
Estrellas
204
Forks
82
Merge medio
22 h 27 min
PR fusionados (30 d)
3

Descripción

Plugin list is sorted by name but emojis throw it off.

Maybe you can use something like this in the sort algorithm:
let result = string.replacingOccurrences( of:"[^A-Za-z0-9]", with: "", options: .regularExpression)
Feels like we encounter this in the sidebar and lots of other places also. I know @codedungeon has run into this. Might be good for you to expose an API that sorts a list of object by a certain key. So you and all the plugins can be 100% consistent.
e.g.
sortObjectListByAlpha(objectList, keyToSortBy)

@EduardMe said:
"Ok, I tried to remove the emojis, but it doesn't work consistently. Still issues are getting in
That's much more work than I thought. Here the next feedback will be: "Why is '!' not sorting the plugin up?"

Guía de contribución

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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

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.