Skip to content
This repository was archived by the owner on Sep 4, 2023. It is now read-only.

Can this work in live preview? #25

Open
ghost opened this issue Feb 9, 2022 · 8 comments
Open

Can this work in live preview? #25

ghost opened this issue Feb 9, 2022 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Feb 9, 2022

No description provided.

@arnau
Copy link
Owner

arnau commented Feb 9, 2022

Hi @aisle9 , as far as I can tell from Obsidian's documentation the live preview is unstable and only implemented by the Obsidian developers so I'm afraid the answer is no. Once it's clear how to do it in an official way I'll give it a go.

@DryIce1
Copy link

DryIce1 commented Mar 7, 2022

Hi @arnau, metatable sure makes yaml look great in reading mode! The most important and useful feature for me is the toggle button which closes the yaml and gets it "out of the way" so that writing is clean and the text at the top of the page where it belongs and in focus.

I wonder if it is possible to bring the Metatable YAML Toggle into live preview ? Or would that be a native obsidian feature?

There has been a bit of demand in at least a couple of feature requests last year on the forum here and here.

Best,
Tom 👍🏽

@arnau arnau added the review label Mar 8, 2022
@DryIce1
Copy link

DryIce1 commented Mar 11, 2022

I was able to hide YAML using a snippet, and it looks great in Live Preview. (Although it's not a good solution for those who use YAML regularly, it makes typing very pleasing and clean).

See the snippet on the Banners plugin comments here noatpad/obsidian-banners#19 (comment)

@arnau
Copy link
Owner

arnau commented Mar 12, 2022

Nice one @DryIce1 ! I'm a bit tight on time lately but as soon as I get a couple of hours I'll explore this 👍

@vishae
Copy link

vishae commented May 21, 2022

ooh, it would be great if metatable works with live preview and default fold/hide the yaml front matter!

@Archie-2021
Copy link

+1 for this one, really need this. and thanks

@Rhydderch
Copy link

Any updates regarding this? Is it possible? :)

@arnau
Copy link
Owner

arnau commented Aug 5, 2022

I'm afraid not. As far as I can tell Live Preview does not allow hooking into the frontmatter part of the document. If anyone knows how, I'm open to contributions :)

@arnau arnau added enhancement New feature or request help wanted Extra attention is needed and removed review labels Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants