PublicTxt Facets — Naming

community mirrored · updated

The names this repo uses, once, so code, docs and UI agree. The archived repo (obsidian-search-facets-archived, shipped as publictxt-search 0.1.0) used other names; the mapping is at the end so ported code can be renamed mechanically.

Plugin identity

Renamed from “Txt Facets” on 2026-10-28, before any release. In Obsidian’s community list “txt” always means the file format (TXT Viewer, TodoTxt, Todo.txt Mode), so “Txt Facets” read as “facets for .txt files”; “PublicTxt” makes it a brand instead. A “Facet …” + noun name was avoided because Facet Folders (grouped-property-explorer) already exists. The repo was renamed to match, from obsidian-txt-facets; GitHub redirects the old URL.

ThingNameNotes
Repopublictxt/obsidian-publictxt-facetsObsidian’s obsidian-<id> pattern. Local folders keep their old names.
Plugin id (manifest.json)publictxt-facetsFixed since 1.0.0. Must match the vault folder .obsidian/plugins/publictxt-facets/. Obsidian rejects ids containing obsidian.
Display namePublicTxt FacetsShown in Settings → Community plugins and as the prefix of every command.
package.json namepublictxt-facetsSame as the id; the package is private.
View typepublictxt-facetsVIEW_TYPE in code. Also the hover-link source id.
View display textPublicTxt FacetsTab title.
CSS root class.publictxt-facetsEvery rule in styles.css is scoped under it.

Commands

Obsidian shows commands as <plugin name>: <command name>, so command names don’t repeat the plugin name. (The archive’s “Open PublicTxt search” showed up as “PublicTxt Search: Open PublicTxt search”.)

idName in palette
openPublicTxt Facets: Open
filter-tag-under-cursorPublicTxt Facets: Filter by this tag
like-thisPublicTxt Facets: Show pages like this one
clearPublicTxt Facets: Clear

Command ids are stable API, like the plugin id: released in 1.0.0, so don’t rename them. Names are only palette text and can change; hotkeys bind to ids. filter-tag-under-cursor keeps the id it had as “Filter by tag under cursor”, renamed before release to need no lint exception.

Code identifiers

ArchiveHereWhy
PublicTxtSearchPluginPublicTxtFacetsPluginplugin name
PublicTxtSearchSettingsPublicTxtFacetsSettingsplugin name
PublicTxtSearchSettingTabPublicTxtFacetsSettingTabplugin name
SearchViewFacetsViewfacets are the point; “search” alone undersells filter-only browsing
VIEW_TYPE = "publictxt-search"VIEW_TYPE = "publictxt-facets"
.publictxt-search.publictxt-facetsCSS scope
SearchStateBrowseStatethe whole view’s state; there’s no search to start with
(per-facet { inc, exc, match })FilterStateone chip facet’s state

Unchanged: PageItem, PageIndex, derive*, card, excerpt. They name concepts, not the product.

Vocabulary

Words that mean one thing in this repo. They follow the PublicTxt-Pages site’s vocabulary, because that is the model the plugin reproduces.

TermMeaning
pageA Markdown note that the plugin indexes. Not every .md file is one: notes in excluded folders and repo housekeeping files (README.md, LICENSE.md, CONTRIBUTING.md), and publish: off notes aren’t pages.
page recordThe derived data for one page: PageItem (title, collections, categories, tags, rating, dates, summary, bookmarks).
derive / derivationWorking out a page record from the file, its front matter and Obsidian’s metadata cache, following fixed rules. The rules live in derive.ts.
collectionWhat kind of page it is. Several per page: its top-level folder (an option; page at root), each collections: value, and bookmarks if it has a bookmark URL. Lower-case. Replaces the archive’s type.
top folderA page’s top-level folder ("" at root), the source of its folder collection. topFolder() in code; the site calls it the section.
categoryA broad subject (category: / categories:). Limited to the settings list, or any value when the list is empty.
tagLowercased, no #. Front matter tags, inline #hashtags, or both (setting), as one set.
ratingFront matter rating: 1–5, or unrated. Filtered as a minimum; sorted with unrated as 2.5.
facetA dimension you filter by: collection, category, tag, rating. The first three are chip facets.
chipA clickable facet value with its count. Zero-count chips are dimmed, not hidden.
chip stateinclude, exclude or off (""). The site’s words; “selected” means included.
matchHow a facet combines its included values: all (AND) or any (OR). Excludes always remove pages.
totalsCounts across the whole index. They set chip order, so chips don’t jump around.
countsCounts within the current result set. They set the number shown on each chip.
sort orderHow results are ordered: created, updated, title or rating, each ascending or descending. Spelled as on the site ("created", "title desc"); a field’s natural direction is left out. Default created (Newest).
browse stateBrowseState: the title filter, each facet’s includes, excludes and match mode, the rating minimum, and the sort order: everything needed to reproduce a view. Saved with the workspace.
cardOne result: title, collections, dates, summary, rating, tag chips, bookmark chips.
compactA card shown as one line: title, date, stars. A view-wide toggle.
summaryThe first 30 words of a page’s body.
batchThe number of cards shown before Show more (default 20).
title filterThe text box: keeps pages whose title contains its text, case-insensitive. Part of the search state.
query / excerptReserved for text search, which isn’t built (intent.md → Open questions).
the sitePublicTxt-Pages’ browse lists and /search/ page, whose concepts this plugin shares.
the archiveobsidian-search-facets-archived, the first implementation.