Repository navigation
Minor Changes
-
The graph is easier to read:
- Tags are diamonds, placeholders dashed rings, and attachments and images hollow rings
- Nodes are smaller and further apart; Reset view brings a view you adjusted to the new defaults
- An open graph stops redrawing once it settles, so it no longer uses CPU while idle
-
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
-
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
-
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. -
Dependencies updated for security fixes (#1782).
-
A
[[left open earlier on a line no longer swallows the wikilink after it: insee [[ syntax [[note]], only[[note]]is a link (#1780).