Regex Line Filter - Quickly toggle your focus within a note

Thought I’d drop a shameless plug as I recently released v1.3 :slightly_smiling_face::electric_plug:

I created this plugin out of necessity. I’m a pretty messy note-taker, especially when I’m forced to focus more on getting the idea/task/reminder down ASAP rather than sparing a thought for how a note should be structured. In a recent project, this meant primarily a single note, divided by headings and a date, everything else was mostly dot-point lists and indentation. This led to long notes and an eventual traffic-lights system for todo, doing, done Eg.

### @today
- thing A 
  - sub-thing 1 🟢
  - sub-thing n 🟢
- thing B 🟠
  - sub thing 1 🟢
  - sub thing 2 🟠
  - sub thing n 🔴

Eventually I needed a quick way to check which tasks still needed action/completion so I thought that being able to filter for all lines with certain regex matches could be useful way to get a quick view of where things are at. One thing led to another and then to the regex-line-filter plugin.

Here is demo of what it looked like at v1.0
regex-line-filter demo

Since then some community members suggested some great features in github which are now all implemented:

  • Recently used filters can be pinned or saved.
  • Saved ‘custom’ filters can be named and hotkey-assigned.
  • Custom filters can be toggled on in tandem, widening or narrowing the lines displayed in the filtered view
  • Child indents of a matched line can be included in filtered view
  • Date-based template variable ‘literals’ can be injected into filters so you can quickly filter for {{today}}, {{yesterday}}, {{last-month}} or custom date formats using {{date:YYYY-MM-DD}} variations.

Hope some folks in the Obsidian community find it useful! Search for regex-line-filter in Community Plugins if you’re curious.
un-:electric_plug::upside_down_face:

4 Likes

One thing I would like to check with any obsidian-veterans out there (I’m a fairly recent convert) - Do let me know if this plugin doubles up functionality of any existing plugins - I searched prior to developing but there is a lot out there so quite possible I missed a more generalised plugin. :victory_hand: