fix: always open to "recent" tab

This commit is contained in:
Eric Handley
2025-11-27 23:25:01 -08:00
parent 6b27db0d4f
commit 76982e5de6
2 changed files with 6 additions and 2 deletions
@@ -50,6 +50,11 @@ Item {
}
}
function onOpened() {
// Always reset to "recent" category when opening
selectedCategory = "recent";
}
// Check if this plugin handles the command
function handleCommand(searchText) {
return searchText.startsWith(">emoji");
+1 -2
View File
@@ -103,9 +103,8 @@ Singleton {
return [];
}
// Special case: "recent" category shows popular/recently used
if (category === "recent") {
return _getPopularEmojis(50);
return _getPopularEmojis(25);
}
return emojis.filter(function(emoji) {