or go to full-text search page →

Search

Search IconIcon to open search

Obsidian Trouble Tags Plugin

Last updatedUpdated: by Simon Späti · CreatedCreated: · 4 min read · growing Note status Growing. Worked on quite a bit, still rough. Expect bullets, gaps and views that update. Estimated from edit history · 3 sessions over 2 days · 747 words · How my notes grow Recent changes 2 weeks ago +184 / −2 words 2 weeks ago +29 / −1 words 3 weeks ago published · 525 words

My Obsidian Plugin called obsidian-trouble-tags to manage tags, todo’s and even tasks.

It is v2 of my simple plugin called Trouble Tags ( GitHub). The main idea is to have keywords such as TODO, FIXME, CLAUDE, etc., so you can track them in long notes in the current note, originally inspired by todo-comments.nvim.

Some features I’ve added in v2:

  • all features that were possible per note now across the full vault. As well as some toggles and sorts.
  • As well as list-callouts (a plugin I love and use all the time), and actual tasks. So you can use it as a simple to-do for your current note, or overall.
  • You can toggle TODO checkboxes through the sidebar plugin (obviously), but also all the keywords (it will wrap a ~~TODO~~ around the keyword to mark it done).

This is how it looks:

It’s a sidebar panel, that lists the things you want to come back to: TODO-style keywords, list callouts and open checkbox tasks. It shows the current note by default, or the whole vault, and jumps to the line when you click an entry. It does nothing while the panel is closed and never changes a note unless you press a check button.

Where does the name"Trouble" come from?

It comes originally from trouble.nvim as I thought the TODO capabilities in Neovim come from there. But it is actually todo-comments.nvim that finds the keywords and feeds them into trouble.nvim. I just kept the name as it’s kind of true to the tags/flags/keywords still.

# Features

It has lots of features since version 2.0.0:

  • Open the panel: click the ribbon icon or run “Trouble Tags: Toggle panel” from the command palette.
  • Filter chips: Keywords, Callouts and Tasks switch each source on or off. “Show done” includes finished items. The chips are remembered. (2. to 5.)
  • Scope toggle: the first button in the panel header switches between the current note and the whole vault. The choice is remembered. (1.)
  • Whole vault: press “Build index” once. After that the panel opens instantly and only rescans notes that changed. Results are grouped by file and each file can be collapsed. Notes with the same name show their parent folder (folder/note); hover a file header or a row location to see the full path.
  • Sort: in the whole-vault view the sort dropdown orders files by Modified (newest first, the default), Created (newest first) or Name. In the note view it orders rows by Line (default) or Label (keywords in the order of your keyword setting, then callouts, then tasks). Both choices are remembered. (6.)
  • Refresh index: the refresh button next to the sort dropdown in the whole-vault view rescans notes that changed since the last pass, for example after Obsidian restored the panel on startup. (7.)
  • Collapse all / Expand all: the button next to the sort dropdown in the whole-vault view folds every file group, or unfolds them again. (8.)
  • Click a row to jump to its line. This also works when the note is in reading mode.
  • Mark done: the check button on a row turns TODO into ~~TODO~~ or [ ] into [x]. On a done row (with “Show done” on) an undo button restores it, including keywords inside a wider ~~struck span~~. Callouts have no done state. If the line changed since the last scan, a notice appears and nothing is edited.

# What Tags it Finds

These flags or keywords are found:

Source Syntax Example
Keywords Upper case keyword, with or without # TODO: call bank, #FIXME, (TODO), ## TODO's
List callouts List item starting with a configured character - ? question, - ! important, - = idea
Tasks Markdown checkbox - [ ] buy milk
  • Keywords are case sensitive and need word boundaries: todo, TODOS and MYTODO do not match.
  • Default keywords: TODO, FIXME, BUG, NOTE, WARN, IDEA, TK.
  • Callout headers such as >  and frontmatter are skipped. Code blocks are scanned.
  • A keyword inside ~~strikethrough~~ and a checked task ([x]) count as done and are hidden unless “Show done” is on.

# Further Reads


Origin: Trouble Tags - Obsidian Plugin
Category: Second Brain & Digital Garden