Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Dynamic Commands in Live Preview Mode

Open Aurailus opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I've just started using Obsidian, and I understand that there used to be a very strict distinction between Preview and Edit mode, but now with Live Preview that's become less of a thing as you can see your formatted document while editing. This is a really great feature for me, and I really like when I can view everything in Live Preview mode.

Describe the solution you'd like Templater currently does not show the result of Dynamic Commands in Live Preview mode, it just shows the code. I think it would be great if it behaved like the embedded search queries do in Live Preview mode, where it shows the result until you move your text insertion point into it, and then it switches to the code.

Describe alternatives you've considered I understand that this may be hard to do or impossible given Obsidian's limitations. One alternative solution I thought of is maybe it will always show the syntax, but have a frame beneath it showing the command output, similar to how you can embed other pages into documents. This would hopefully be easier to implement as you wouldn't have to change the rendered content of the page based on the cursor posititon. I think my initial suggestion would be a lot cleaner though, and I would prefer that.

I wrote this at 3:30 AM so if there's any missing details or language blunders please let me know!

Aurailus avatar Jan 03 '22 11:01 Aurailus

need this enhancement!

sp20220407_102755_970

Steven-AA avatar Apr 07 '22 02:04 Steven-AA