Repository navigation
core@0.52.0
Minor Changes
-
In
@foam/core:FoamGraph.fromWorkspaceInBatchesbuilds the graph a batch at a time, pausing between batchesdailyNoteDateMatcherreads a daily note's date from its path
-
The graph remembers its display options, such as type filters, groups, sliders and label length, for each workspace and each named view:
- Reset view at the bottom of the graph panel returns the open view to its configured settings
- The Label Length control is now called Labels, and shortens placeholder labels too (#1205)
- The
foam.graph.titleMaxLengthsetting is removed; set the label length in the graph panel instead
In
@foam/core,buildGraphDatano longer takes atransformTitleoption. -
A template without a
filepathnow opens in an unsaved editor, and nothing is written until you save (#1243):- Foam asks for a title only when the template uses
FOAM_TITLE,FOAM_TITLE_SAFEorFOAM_SLUG, and then saves the note as<title>.mdin the new-note folder without asking where foam-vscode.create-notewithtextand nonotePathopens an unsaved editor too; addnotePathto create a file- To keep creating a file straight away, give the template a
filepath, as the built-in new note and new templates from Create New Template now do
In
@foam/core,NoteTargetIntent,ProcessedTemplateandUnsavedNoteResultare exported. - Foam asks for a title only when the template uses
-
A query filter with a field Foam doesn't know now matches no notes and shows a warning, instead of ignoring the field. The removed
expressionfield matches nothing; usejexlinstead.In
@foam/core, the query filter type no longer hasexpression. -
Renaming a section updates every link to it, however the link is written (#1772, #1781):
- Rename works from the heading, from the
#sectionof a wikilink to it, or from the#fragmentof a Markdown link to it, with the same result - Each link keeps its form:
[[note#My Section]]and[text](<note.md#My Section>)get the new heading text,[text](note.md#my-section)gets the new slug - A heading keeps its formatting, indentation,
>quote, closing##and^anchor, in VS Code and infoam rename section - Rename also works on links you haven't saved yet, and on
[[note#Section\|alias]]in a table - Renaming from
[[note]]renames the note itself, as renaming it in the explorer does
A Markdown link to a heading's slug, such as
[text](note.md#my-section), now goes to that heading, embeds accept![[note#my-section]], and a wikilink written with the slug is no longer flagged as an unknown section.In
@foam/core,HeadingEdit.getSectionAtPosition,FoamGraph.resolveLinksandMarkdownLink.getSectionRangeare added, and sections have alabelRange. - Rename works from the heading, from the
Patch Changes
-
foam graph --include-placeholdersandfoam linksshow a broken wikilink by its target, such asnot-written-yet, instead of a../../not-written-yetpath.In
@foam/core,uriToWorkspacePathreturns a wikilink placeholder's target unchanged. -
A
[[left open earlier on a line no longer swallows the wikilink after it: insee [[ syntax [[note]], only[[note]]is a link (#1780).