`foam.graph.titleMaxLength` does not apply to graph placeholders
Author: redactedscribeCreated Apr 22, 2023Updated Jan 8, 2026
Labelsfoam-dataviz
Describe the bug
Placeholders in Foam's graph are not truncated by the setting foam.graph.titleMaxLength.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
- Set
"foam.graph.titleMaxLength": 4(extreme example for illustration purposes). - Re-open the graph and filter by Placeholders only to see the result.
Expected behavior
In my case, placeholder labels are very long (I'm seeing a few nodes which are full paths to HTML files). For placeholders, truncating from right to left (as is done for notes) would make these node labels identical, which isn't so useful. When a placeholder is a full path, truncate from the middle instead: /F:/Direct…-file.html? I'm not sure why it's displayed as a full path to begin with (I'm new to Foam). Perhaps just the file name is sufficient, similar to notes without a note title, then right to left truncation would still often provide unique enough labels.
Screenshots or Videos
No response
Operating System Version
Windows 11
Visual Studio Code Version
VSCodium 1.77.3
Additional context
No response
Source: foambubble/foam