Fixed recently opened page tracking, fixed deletion of page when using dynamic index page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user