mrjackphil / obsidian-text-expand

A simple text expand plugin for Obsidian.md
186 stars 12 forks source link

How to filter out unwanted keywords in headers search #94

Open zhby00 opened 1 month ago

zhby00 commented 1 month ago

text expand have given me convenience in programe management; however, as one bad at code, I want to know how to filter out unwanted keywords in headers in some ways just like obisidian's search function: A - B.

I used $header:"" to search the aims i want:

Path:Aims

$header:"Aim1"

[[Aim1 Process1 阅读#背诵考点词 Aim1 Process1 阅读 keeping Step 1 3X1hour/week 9月前完成]] [[Aim1 Process1 阅读#应试训练 Aim1 Process1 阅读 keeping Step 2 7X1/3hour/week 9月第一周完成]] [[Aim1 Process1 阅读#阅读流程优化 Aim1 Process1 阅读 keeping Step 3 7X1hour/week 9月第一周部分]] [[Aim1 Process2 听力#磨耳朵 Aim1 Process2 听力 undo Step 1 7X0.5hour/week]]

But how should i do to quarantine headers that contain keeping ?

zhby00 commented 1 month ago

Additionally, i find that if i add more in $header:"", the search won't work. Take the example above,if I add step which shows in every headers in the search result, it just don't work.

Path:Aims

$header:"## Aim1 Step"