mrjackphil / obsidian-text-expand

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

Command to expand all blocks globally #7

Closed NomarCub closed 3 years ago

NomarCub commented 3 years ago

It would be nice to only issue one command to update all existing expand blocks in all files. You could maintain all indexes and whatnot this way. Maybe even expose it in a way so that other plugins can use it, for example to update all expand blocks before a git commit.

dariuszkowalski-com commented 3 years ago

+1

HEmile commented 3 years ago

Probably hard to do this right now, as the plugin relies on the search functionality to run everything.

mrjackphil commented 3 years ago

@HEmile is right. And I'm afraid it's a little bit out of the scope right now... Expander a little inconsistent right now, so expanding all files can make a lot of harm.

Maybe I'll add something expanding for all opened files (or even for all files) but it'll be not earlier than expanding all blocks in a single file.

mrjackphil commented 3 years ago

@NomarCub I think expanding all existing expand blocks are a little bit out of scope. But I just added "Expand all in file" functionality. I hope it helps. Feel free to reopen the issue if someone has ideas on how can we handle this.