add unfiled notes

This commit is contained in:
Yuri Karamian
2026-03-17 21:45:51 +01:00
parent 79f16b454a
commit 9f595212dd
6 changed files with 65 additions and 4 deletions
+7
View File
@@ -112,6 +112,13 @@ pub fn get_notebooks(state: State<'_, AppState>) -> Result<Vec<NotebookEntry>, S
operations::scan_notebooks(vault_path)
}
#[tauri::command]
pub fn count_root_notes(state: State<'_, AppState>) -> Result<usize, String> {
let config = state.config.lock().map_err(|e| e.to_string())?;
let vault_path = config.active_vault.as_ref().ok_or("No active vault")?;
operations::count_root_notes(vault_path)
}
#[tauri::command]
pub fn create_notebook(
state: State<'_, AppState>,