Skip to content

Releases

1.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:55

Base Toolbar Config 1.1.0

What's New

  • Refactored architecture: split main.ts into focused modules — commands.ts, toolbar/, ui/, utils/ — keeping the entry point minimal per plugin lifecycle conventions.
  • MutationObserver for async toolbar rendering: embeds inside %%cols%% tables and TaskNotes integrations now receive hide-classes correctly after the initial layout pass.
  • i18n support: English, Russian, and Chinese translations with runtime language switching.
  • Settings UI: per-.base file toolbar configuration with custom view-switcher buttons, drag-to-reorder, and danger zone for deleting configs.
  • Test suite: added Vitest with 26 passing tests covering i18n, path resolution, and settings merging.

Changed

  • Settings changes no longer trigger a full cache wipe + re-scan of all views; only affected UI is refreshed.
  • Improved embed path resolution: handles anchors (file.base#view), aliases (file.base|text), URL-encoding, and vault:// / app:// protocols.

1.0.7

Choose a tag to compare

@github-actions github-actions released this 30 Oct 04:33

fix for inline inside columns

1.0.6

Choose a tag to compare

@github-actions github-actions released this 29 Oct 17:34

fix scroll

1.0.5

Choose a tag to compare

@github-actions github-actions released this 29 Oct 11:08
1.0.5

1.0.4

Choose a tag to compare

@github-actions github-actions released this 29 Oct 10:39

Base Toolbar Config v1.0.4

🐛 Fixed

  • Localization is now deterministic: replaced ts-obsidian-i18n (localStorage-based) with a built-in t() on top of Obsidian's getLanguage(). Interface language always matches the user's Obsidian setting, including zh-CN/ru-RU.
  • Views button now actually hides when hideViews is enabled or views is listed in toolbar.hide.
  • Removed stray toolbar scrollbar caused by an unconditional display: var(--btc-hide-*, inline-flex) rule.
  • Plugin no longer writes to localStorage — the previous language key could interfere with Obsidian's own localization.
  • Removed duplicate await loadSettings() call in onload().

⚡ Improved

  • Embed resolution no longer enumerates the vault: resolveEmbedPath() uses metadataCache.getFirstLinkpathDest().
  • Toolbar hiding is applied synchronously on file-open and on .bases-toolbar insertion (un-debounced MutationObserver) — no more 2–3 s flash.

🧹 Internal

  • Removed dependencies: ts-obsidian-i18n, js-yaml, yaml.
  • YAML parsing via Obsidian's built-in parseYaml.
  • createDiv/createSpan instead of document.createElement; window.setTimeout/window.requestAnimationFrame for popout compatibility.
  • No !important in styles.css; specificity raised via .workspace-leaf.
  • eslint: 0 errors, 0 warnings.

1.0.3

Choose a tag to compare

@github-actions github-actions released this 29 Oct 09:48

Base Toolbar Config v1.0.3

This release focuses on rendering speed, CSS correctness, and a new toolbar button. Upgrading is recommended.

✨ New

  • Hide the Views button. A new hideViews toggle is available under Interface, and a matching views token is supported in the .base YAML:
    toolbar:
      hide:
        - views

⚡ Improved

  • Instant toolbar hiding. Hide rules are now applied synchronously on file-open and on .bases-toolbar insertion (via an un-debounced MutationObserver). Buttons no longer flash for 2–3 seconds before disappearing.
  • Settings are applied before paint. Per-file toggles are set in the same tick the view appears, so the toolbar is rendered already in its final state.
  • YAML parsing uses Obsidian's built-in parseYaml. No external YAML dependency.
  • Cache invalidation on file modify/rename/delete. Edits to toolbar.hide in a .base file take effect immediately — no plugin reload required.

🐛 Fixed

  • Views button now actually hides. The CSS selector targets .bases-toolbar-views-menu explicitly.
  • Stray scrollbar in the toolbar. Removed the unconditional display: var(--btc-hide-*, inline-flex) rule that changed layout even when no button was hidden. Hide rules now only apply display: none when the corresponding bth-hide-* class is present.
  • Duplicate await loadSettings() in onload() — settings were loaded twice on every startup.
  • Missing legacy cleanup for bvs-hide-group and bvs-hide-views in onunload().
  • Settings migration. Old data.json files without newer toggles (hideGroup, hideViews) are now filled in from DEFAULT_FILE_CONFIG on load — no manual reset needed.

🧹 Internal

  • Replaced document.createElement with Obsidian's createDiv / createSpan helpers (per obsidianmd/prefer-create-el).
  • Replaced bare setTimeout / requestAnimationFrame with window.* variants for popout window compatibility.
  • Removed all !important declarations from styles.css; specificity is raised via .workspace-leaf scoping instead.
  • Replaced direct element.style.setProperty calls with setCssProps (per obsidianmd/no-static-styles-assignment).
  • Narrowed loadData() result via unknown + type guard to satisfy @typescript-eslint/no-unsafe-assignment.
  • Migrated settings UI to the declarative getSettingDefinitions() API (Obsidian 1.13.0+).
  • eslint passes with 0 errors, 0 warnings.

📦 Installation

Download main.js, manifest.json, and styles.css from this release and place them in <your-vault>/.obsidian/plugins/base-toolbar-config/, then restart Obsidian.

📋 Requirements

  • Obsidian 1.13.0 or newer.

v1.0.1

Choose a tag to compare

@alnpokrovsky alnpokrovsky released this 29 Oct 07:51

Base Toolbar Config — Initial Release

Configure which toolbar buttons are visible in Obsidian Bases, both in standalone .base files and in embeds inside notes.

Features

  • Per-file toolbar control — hide the result count, search, properties, filter, sort, group, or views buttons from the plugin settings or directly from a .base file's YAML.
  • Embed support — the same hiding rules apply to ![[file.base]] embeds.
  • Custom view-switcher buttons — pin frequently used views as toolbar buttons with an icon or text label.
  • Default button — jump to a chosen view in one click.
  • Drag-and-drop reordering of custom buttons.
  • Multilingual UI — follows Obsidian's language (English, Russian, Chinese).

How to use

  1. Open Settings → Base Toolbar Config.

  2. Click + Add Base and pick a .base file.

  3. Toggle the buttons you want to hide under Interface.

    Or add a toolbar.hide block directly to your .base file:

    toolbar:
      hide:
        - search
        - filter
        - sort

Requirements

  • Obsidian 1.13.0 or later.

Installation

Download main.js, manifest.json, and styles.css from this release and place them in <your-vault>/.obsidian/plugins/base-toolbar-config/.