getNextOperationId
Finds the next operation id from the subjects of the bulk-operation commits already in the history.
Import:
import { getNextOperationId } from '@mnaoumov/obsidian-lib/bulk-operation';Signature:
function getNextOperationId(subjects: readonly string[]): stringParameters:
| Parameter | Type | Description |
|---|---|---|
subjects |
readonly string[] | Commit subjects; anything that is not a bulk-operation subject is ignored. |
Returns: string — OP<n> with n one past the highest number found, or OP1 when there is none.