pub fn select_runnable_task_index(
active: &QueueFile,
done: Option<&QueueFile>,
options: RunnableSelectionOptions,
) -> Option<usize>Expand description
Select the next runnable task index according to the provided options.
Order:
- If
prefer_doingis true, prefer the firstDoingtask. - Otherwise, choose the first runnable
Todo. - If
include_draftis true and no runnableTodoexists, choose the first runnableDraft.