How to generate an text only version of files with query

Hi Everyone,

What I’m trying to do

I was wondering if there is a way to generate a text only version of the files with query-like information, what I mean is, let’s say I’m using tasks plugins, and I have a file with

not done
due after this Sunday 
due before next monday

in it which generates my information. but I want a way to have another duplicate file (updated in real-time) that only has the generated items in it (text only) like

  • [ ] task number 1 Due 2022-02-02

how can this be achieved ?