Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Style Tags in Search Results

fanisfanis28 downloads

Decorates tags in search results with a CSS class. Optionally it one-click hides them using injected CSS.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

An Obsidian plugin that decorates tags in search results with a CSS class to allow customizing them.

The use case that lead to this was to declutter search results when using tags to categorize notes' headings. With this plugin, in search results instead of seeing "My Heading #project #important" you will just see "My Heading".

Install

  • In Obsidian, open Settings -> Community plugins -> Browse, search for "Style Tags in Search Results", install and enable.
  • Or view it on the Obsidian community site: https://community.obsidian.md/plugins/style-tags-in-search-results.

Features

  • Adds a CSS class to tags in search results (customizable, by default the class .search-tag) to enable styling/modifying them visually with custom CSS.

  • Exposes a toggle in Settings to hide tags from search results

Usage and examples

The main use case for this is to declutter the search result pane if you use tags right after text in your notes. Then, when searching for them (for example by clicking on tag), it's a lot cleaner to just see the text itself instead of it suffixed with all its tags.

Example:

Normally the search pane shows all the tags in the searched line, making that line long and thus reducing readability:

without-plugin.png

After enabling the plugin the tags in search results are hidden for a cleaner display:

with-plugin.png

The settings dialog allows editing the CSS class being used and toggling the automatic tag hiding.

plugin-settings.png

Provenance

This plugin was authored by Fanis Hatzidakis with assistance from large-language-model tooling (ChatGPT). All code was reviewed, tested, and adapted by Fanis.

99%
HealthExcellent
ReviewPassed
About
Add a customizable CSS class (default .search-tag) to tags in search results to style or hide them. Hide tags automatically to declutter and shorten matched lines for a cleaner, more readable results pane.
SearchTagsCSS
Details
Current version
1.1.3
Last updated
Yesterday
Created
8 months ago
Updates
5 releases
Downloads
28
Compatible with
Obsidian 1.5.0+
License
MIT
Report bugRequest featureReport plugin
Author
fanisfanis
example.com
GitHubfanis
  1. Community
  2. Plugins
  3. Search
  4. Style Tags in Search Results

Related plugins

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Cards View

Displays a card view of your notes.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Lapel

Show the heading levels in the gutter of the editor.

CSS Editor

Edit CSS snippet files.

Admonition

Admonition block-styled content.

TagFolder

Show tags as folder.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.