NotePlan / NotePlan/plugins

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

オープン
#268 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@EduardMe がすでに取り組んでいます。

2023年7月5日 から。

API
主要言語
JavaScript
スター
204
フォーク
82
平均マージ
22時間 27分
マージ済み PR(30日)
3

説明

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?"

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。