0.2.0
A field's candidate list can now narrow itself by what the note already says — pick two things in the field's options and Fileclass writes the Bases formula and view for you. It was possible before, by hand, and it was expert-only: the first feature in this plugin to come from user feedback — asked for in this discussion, tracked as #19.
Fields & typed input
- Dependent candidates, without writing a formula (#19) — set Depends on another field and Match on property, and the picker is narrowed to the candidates matching this note's value. Fileclass adds the formula to the bound base and points the field at a narrowed copy of the view you chose, keeping its filters, sort and order. A preview shows both before you save. The comparison shape follows the source field's type — links by basename, everything else by value — and the
.isTruthy()guards are always there, without which an empty-vs-empty comparison is true and the picker offers every value-less candidate - Image values show as thumbnails — in the
Media/MultiMediapicker, and beside the value in the note-fields modal, the properties row and table cells. A media field points at a picture; every surface used to show its file name - Dates: a write format per type, and every format input proves itself —
Default date format,Default datetime formatandDefault time formatdecide what gets stored, each format field shows whatnow()becomes through it, and an unreadable format says which token it can't read - Date links can follow the date, and carry an alias —
Link pathaccepts{{YYYY}}-style tokens, soDaily/Notes/{{YYYY}}/{{MM}}/files each link under its year and month - Alt-click a date to advance it — a
Datewith a Next interval field applies its interval from any control, and while Alt is held the calendar icon becomes a skip-forward showing the date it would write. Next interval field is now a dropdown of the class's compatible fields instead of a typed name, which used to fail in silence - Number input: typing works, and it has − / + buttons — a native number input silently swallowed non-numeric keystrokes, leaving an empty field and no explanation. On an empty field the first − or + shows the minimum
- Removed: the
embedoption on media fields. It wrote![[cover.png]], which made sense in Metadata Menu — its fields could live inline in a note's body, where an embed renders. In frontmatter it renders nothing, and Obsidian doesn't register an embedded value as a link: a rename left it dangling while a plain link is rewritten for you, it is absent from the graph, and a Basesimagecolumn ignores it. Values already stored as embeds keep resolving everywhere Fileclass reads them
UI
- One gesture per field type, on every control — a
Cycleadvances, aBooleanflips, everything else opens its typed input, identically in the properties panel, the note-fields modal and a table cell. Alt-click always does the other one - A field's settings, one Alt-click from the note — Alt over a row's type icon in the note-fields modal turns it into a wrench; clicking it opens that field's definition editor, writing to the fileClass that declares it
- Reach a class's schema from a note bound to it (#23) — a wrench on the
fileClassrow of the properties panel, and one Open <class> schema entry per class in the note's context menu, including classes bound by tag, path or Base view, which leave no value to click - Long pickers are usable: a filter box focused on open (Enter flips the first match and clears it), an only-ticked view, Unselect all with its count, a whole row toggling wherever you click it, and off-screen rows skipped — on a 500-value list, a style recalc went from 24-43 ms to 8-13 ms and the worst scroll frame from 90 ms to 9 ms
- Two actions beside Obsidian's + Add property: + Add a class, and + Insert N missing fields when the note is missing any
- Three doors to a class, one screen — the breadcrumb in the note-fields modal, the indicator icon and the right-click menu all open the same schema editor, and it carries the class-level actions
- Create a class on the class-files folder's context menu, and binding a class now inserts its fields straight away (toggleable)
- Alt+Enter runs a modal's primary action from wherever the caret is, and list editors chain from the keyboard: adding a value puts the caret in it, Enter hands focus back to the Add button
Fixed
- The View and Display column suggesters stayed open after a choice while Base file closed — those two read their suggestions asynchronously, and the re-query that a selection triggers resolved after the popover had closed, reopening it
Set next dateignored the field's format, writing a bare ISO date — a field formattedYYYY-MM-DD ddd, or stored as a daily-note link, lost its shape as soon as the schedule advanced- Focus rings are no longer clipped in Fileclass's modals, and a values list reads as one block instead of a stack of unrelated settings
Learning the plugin
Sixteen short takes now cover the basics, one feature each, roughly two minutes apiece — install and setup, every simple field type, fields that point at notes, and the dependent candidates above. Each is embedded in the matching documentation page.
The whole series: https://www.youtube.com/playlist?list=PLLniwbD_l9kI
A longer Tour — the whole plugin end to end, from installing it to a typed library — is recorded against this release and lands shortly.
Compatibility: minAppVersion 1.12.7. Fileclass builds on the core Bases plugin, which needs to be enabled.