Fixed recently opened page tracking, fixed deletion of page when using dynamic index page

This commit is contained in:
Zef Hemel
2025-04-17 14:44:38 +02:00
parent 55fdaa2466
commit 63db06a8c6
5 changed files with 27 additions and 10 deletions
+8
View File
@@ -34,6 +34,14 @@ export function getCurrentPath(extension: boolean = false): Promise<string> {
return syscall("editor.getCurrentPath", extension);
}
/**
* Returns the names of the pages that have been recently opened
* @returns the names of the recently opened pages
*/
export function getRecentlyOpenedPages(): Promise<PageMeta[]> {
return syscall("editor.getRecentlyOpenedPages");
}
/**
* Returns the name of the currently open editor.
* @returns the name of the current editor