|||

PTPL 204 · How to hide obsidian queries in a folding callout

Nesting queries inside collapsible callouts, plus custom colours and icons

It’s true that plain text can be beautiful when it is boring in all the right ways, but that doesn’t mean we can’t have a little fun. Let’s take a look at an unashamedly Obsidian-only tweak I’ve been playing around with for the task lists that live in my plain text planner.

Super niche, I know, but you can use the same principles with your own queries (or just text) in Obsidian. (If you’re new to app-agnostic text-based task management, this is how I handle my todos in plain text.)

Here is a basic Obsidian-flavoured query that will show a list of all the lines in the file named todo-txt.md, that contain the strings (A) or (B):

```query  
file:todo-txt.md line:("(A)" OR "(B)")  
```  

It renders like this in preview mode:

Grey bordered rectangle containing 2 (A) search results and 4 (B) results

This query shows me the tasks I need to focus on today, as well as those I want to find time for sometime this week. It does the job.

Next I want to see that task list under today’s date in my yearly plain text planner (you might want to see it in your daily note), but I want it hidden until I’m ready for it.

There are four main ways to hide queries (and other things) in Obsidian.

  1. Fold them under a header (Settings > Editor > Display > Fold heading)
  2. Place them in a comment (<!-- like this -->, %% or this %%)
  3. Embedding (or transcluding) the query from another file, then removing the ! (e.g. [[FileName#like-this]] instead of ![[FileName#like-this]])
  4. Place them in an automatically folded callout

All the above do the work of hiding what you want hidden, and allow you to click or edit part of the line to reveal it again. Number 4, the callout, is what I’ve chosen to go with for my task list as it is the most convenient and the nicest looking.

Here is that same query, in simple callouts:

two separate obsidian query results within their own coloured rectangles

> [!todo]+ Today   
> ```query  
> file:todo-txt.md line:"(A)"  
> ```  
 
> [!todo] This Week  
> ```query  
> file:todo-txt.md line:"(B)"  
> ```   

And here they are nested in a single callout, with the Today list expanded and the This Week list hidden by default (see the + and - after each respective callout box identifier):

Coloured rectangle containing two search results in their own overlaid coloured rectangles

> [!today]+ TASKS  
>> [!list-1]+ Today   
>> ```query  
>> file:todo-txt.md line:"(A)"  
>> ```  
>   
>> [!today]- This Week  
>> ```query  
>> file:todo-txt.md line:"(B)"  
>> ```   

You can also create your own custom callout text, symbols, and colours. Huge thanks to obsidianstats for their starter CSS snippets.

Copy the following code into a plain text document in an app like Text Edit, then change up the RGB colours, your-label, and clock (to another icon). Rename the file extension from .txt to .css, and place the document into snippets in the hidden .obsidian folder inside your vault. Reveal this folder on a Mac by pressing ⌘⇧. (Command+Shift+period).

.callout[data-callout='your-label'] {  
  --callout-color: 153, 27, 27;  
  --callout-icon: lucide-clock;  
}  

Here’s what today looks like in my plain text planner:

List of times and tasks under a dated heading. Two coloured rectangles sit under this list, one labelled ‘Events’, the other ‘Tasks’. Each rectangle has a small arrow after the name label, identifying it as a collapsed callout.
Have fun choosing icons and colours for your custom callouts in Obsidian! When choosing colours, keep in mind that the way they render will depend on your Obsidian theme. You’ll need more extensive CSS to override the defaults.


Post Script(s)

  • After last week’s post on What I Write With - 3 Cheap fountain pens, and a pencil from the 1970s, I put up a poll on Mastodon asking if young people of today find my handwriting hard to read. Check out the conversation here.
  • An interesting point: kids in the tech era might not be taught to write in cursive the way older generations were, but they are used to reading all sorts of decorative fonts, so cursive isn’t usually a problem.
  • Thank you to everyone who has offered suggestions for apps to replace those I’ve been using in Setapp. I’ll be taking my time going through them and will report back later.
  • Looking into whether Mole will be a good replacement for CleanMyMac, or if there could be serious security concerns with giving an open source app access to the brain of my computer.

This post was written on a computer, not by one. Read about AI.

💬 I love to hear from readers! email hello at ellanew dot com, or message me on Mastodon.

Follow my RSS feed https://ellanew.com/feed.rss, or sign up to receive a (mostly) weekly plain text themed email.*

Follow my 2026 Inktober posts

If you’ve found value here, I invite you to share this post with someone you think will appreciate it or make a contribution to my support jar or check out my simple tech productivity list on Benable.

You might also like my plain text productivity resources.

Up next PTPL 203 · What I write with: 3 cheap fountain pens, and a mechanical pencil from the 1970s PTPL 205 · Apple shortcuts, handrolled notes, and apps worth your attention
Latest posts PTPL 234 · Tiny experiment: adding a standard paper planner to my plain text planning system Inktober 2026 - Index PTPL 233 · Obsidian’s Smart Lists update is great news for my plain text planner PTPL 232 · AI and autism: careful with policing those quaint turns of phrase, please PTPL 231 · Where Tiny Little Office is big on cuteness, and 3 questions about paper vs digital planning Inktober 2026.31 - Flex Inktober 2026.30 - Cookie Inktober 2026.29 - Tusk Inktober 2026.28 - Trophy Inktober 2026.27 - Dumb PTPL 230 · I drew a paper ruler in my notebook, and raw plain text calendars are still pretty darn great Inktober 2026.26 - Zip Inktober 2026.25 - Fracture Inktober 2026.24 - Bake Inktober 2026.23 - Dapper Inktober 2026.21 - Beacon Inktober 2026.21 - Hero Inktober 2026.20 - Lounge Greetings, fellow earth-visitor Inktober 2026.19 - Confused PTPL 229 · When pencil is more permanant than ink, and appending really is the better way (for me) Inktober 2026.18 - Flightless Inktober 2026.17 - Contraption Inktober 2026.16 - Gangly Inktober 2026.15 - Hooray Inktober 2026.14 - Lady Inktober 2026.13 - Flimsy PTPL 228 · Calendars, todos, and (secret) notes to your future self Inktober 2026.12 - Toss Inktober 2026.11 - Rescue Inktober 2026.10 - Mystical