1
Fork 0
Always have editor/metadata properties folded by default.
  • JavaScript 96.3%
  • TypeScript 3.7%
Find a file
Frédéric aa56f92d42 up
2026-07-22 10:46:22 +02:00
.github/workflows Add PR Analyzer workflow and script for automated pull request analysis 2026-06-10 12:32:51 -04:00
scripts Add PR Analyzer workflow and script for automated pull request analysis 2026-06-10 12:32:51 -04:00
.editorconfig use LF instead of CRLF (#28) 2022-04-15 14:13:31 -04:00
.gitignore Update .gitignore (#25) 2022-01-28 10:34:53 -05:00
.npmrc add version bump script (#10) 2022-01-22 16:13:50 -05:00
esbuild.config.mjs Fix lint warnings: use activeDocument, replace builtin-modules with node:module 2026-05-12 18:44:24 -04:00
eslint.config.mts Add PR Analyzer workflow and script for automated pull request analysis 2026-06-10 12:32:51 -04:00
LICENSE Create LICENSE 2025-01-20 01:01:26 +08:00
main.ts up 2026-07-22 10:46:22 +02:00
main.ts-ok-categories up 2026-07-22 10:46:22 +02:00
main.ts.orig ok fonctionne 2026-07-22 10:31:49 +02:00
manifest.json up 2026-07-22 10:46:22 +02:00
package-lock.json 1.0.12 2026-05-12 18:50:49 -04:00
package.json 1.0.12 2026-05-12 18:50:49 -04:00
README.md updated README 2025-01-20 21:26:30 +08:00
tsconfig.json Fix inconsistent indentation 2024-01-19 21:14:58 +02:00
version-bump.mjs add version bump script (#10) 2022-01-22 16:13:50 -05:00
versions.json 1.0.12 2026-05-12 18:50:49 -04:00

Fold Properties By Default

I have seen people on the official forums who have been wanting to have the metadata/frontmatter properties folded by default. I think this should be implemented as a built-in option, but for the time being, I came up with a simple way to achieve the same behavior.

There are no settings; it basically just checks if the metadata properties are unfolded. If they are, then I call the built-in command to toggle them to their folded state.

Especially useful to those who want to keep properties out of the way without hiding them entirely.

Known issues / potential improvements

  • Properties don't automatically fold when creating a new note which I believe is useful since you might want to enter some before folding them. Don't hesitate to suggest otherwise if that's how you feel like and I might consider implementing an automatic folding feature setting for new notes.

Installation

  • Go to Obisidian's settings page.
  • Open Community plugins settings page, click on the Browse button.
  • Search for "Fold Properties By Default" in the search bar and find the plugin with this exact name.
  • Click on the Install button.