notes_pipeline.stages.sync_plan#

Sync plan.

Module Contents#

Classes#

Sublist

Sublist.

Plan

A plan item.

Kind

A plan kind.

Functions#

main

sync_dataview_plan

Sync DataView query.

get_plan

Get plan string.

to_kebab

Convert string to kebab case.

render

Render.

Data#

API#

notes_pipeline.stages.sync_plan.main()#
notes_pipeline.stages.sync_plan.sync_dataview_plan(
tokens: collections.abc.Iterable[markdown_it.token.Token],
items: collections.abc.Sequence[str],
) list[markdown_it.token.Token]#

Sync DataView query.

notes_pipeline.stages.sync_plan.T#

‘TypeVar(…)’

class notes_pipeline.stages.sync_plan.Sublist(
initlist=None,
)#

Bases: collections.UserList[notes_pipeline.stages.sync_plan.T], typing.Generic[notes_pipeline.stages.sync_plan.T]

Sublist.

Initialization

seq: collections.abc.Iterable[notes_pipeline.stages.sync_plan.T]#

None

data: list[notes_pipeline.stages.sync_plan.T]#

‘field(…)’

idx: int#

None

jump(
idx: int,
count: int = 1,
) Self#

Jump to an index.

walk(
count: int = 1,
step: int = 1,
) Self#

Walk the list.

class notes_pipeline.stages.sync_plan.Plan#

A plan item.

cutoff: datetime.datetime#

None

destination: str#

None

notes_pipeline.stages.sync_plan.HEADING_COUNT#

3

notes_pipeline.stages.sync_plan.START_OF_DAY#

‘get_time_today(…)’

notes_pipeline.stages.sync_plan.PLANS#

None

notes_pipeline.stages.sync_plan.PLAN_PAT#

‘^\[\s\]\s#hide\s(?P.+)(?P\s🆔.+?)(?:\s⛔\s(?P.+))?$’

notes_pipeline.stages.sync_plan.get_plan(
match: re.Match[str],
plans: collections.abc.Iterable[str],
) str#

Get plan string.

class notes_pipeline.stages.sync_plan.Kind#

A plan kind.

child: markdown_it.token.Token | None#

None

match: re.Match[str] | None#

None

plans: list[str]#

‘field(…)’

notes_pipeline.stages.sync_plan.to_kebab(
string: str,
) str#

Convert string to kebab case.

notes_pipeline.stages.sync_plan.render(
tokens: list[markdown_it.token.Token],
finalize: bool = True,
) str#

Render.