https://www.dendron.so/ logo
wait. do you mean we should trigger the folding be...
# dev
h
wait. do you mean we should trigger the folding behavior on every active editor change? e.g. do you mean: 1. note
a.md
and
b.md
is open. both have frontmatter unfolded. current active editor is
a.md
2. switch over to
b.md
. `b.md`'s frontmatter should fold. 3.
a.md
is still open on vscode. switch over to
a.md
and the frontmatter should fold. what I meant by > 2. only fold on open was : 1. note
a.md
is not opened on vscode. 2. open
a.md
either by lookup or clicking it on the file explorer. 3. if the frontmatter is unfolded, fold it. this way we aren't triggering it on every active editor change, just when it first opens. front matter folding will stay how it is until it's closed. the user can unfold it if they want, and it it will stay unfolded until they close the tab and open it up again. so I was wondering if there was a watcher that watches for new tabs opening, not switching between already open tabs. (I currently have it so that the folding behavior triggers in
windowWatcher
after it triggers update decoration.)