Logseq has this function. its mega useful!
Yes I also had a short time with Logseq and found this functionality pretty useful Seemed to work well and I support similar implementation in scrintal :)