feat: Add emoji usage tracking and sorting by frequency

This commit is contained in:
loner
2025-11-22 17:34:44 +08:00
parent 1dced9a7bc
commit 8730eb0e71
2 changed files with 110 additions and 24 deletions
@@ -54,7 +54,6 @@ Item {
}
if (!EmojiService.loaded) {
Logger.d("EmojiPlugin", "Service not loaded yet, showing loading state");
return [
{
"name": I18n.tr("plugins.emoji-loading"),
@@ -66,10 +65,8 @@ Item {
];
}
Logger.d("EmojiPlugin", "Service loaded, processing query");
const query = searchText.slice(6).trim();
const emojis = EmojiService.search(query);
Logger.d("EmojiPlugin", `Found ${emojis.length} emojis for query: "${query}"`);
return emojis.map(formatEmojiEntry);
}
@@ -96,4 +93,4 @@ Item {
}
};
}
}
}