extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Obsidian] Hide frontmatter properties and rendered code blocks

Open ChristinWhite opened this issue 10 months ago • 1 comments

Extension

https://www.raycast.com/KevinBatdorf/obsidian

Description

This plugin is fantastic and it's the one that's really driven me to start using Raycast instead of reaching for Alfred almost all of the time, thank you for your work!

With frontmatter properties becoming more and more important in Obsidian it's pretty easy to get notes where nothing but frontmatter is getting shown in the initial window and you have to scroll down to get to the actual note content. This issue is compounded if you use dataview or any other type of code blocks that are rendered rather than shown inline at the top of your notes.

Obsidian

If the notes can be easily parsed I'd love the following two options:

  1. Hide frontmatter properties.
  2. Hide rendered code blocks (as much as practical, at least `dataview, dataviewjs,

Maybe in the future frontmatter could be extracted into the metadata section and frontmatter could be hidden by default.

Just rendering the frontmatter as YAML rather than note text would be an improvement but not negate the scrolling issue.

Who will benefit from this feature?

Anyone who uses a lot of frontmatter-based properties (not dataview inline properties). Now that Obsidian has native support for easily creating and displaying properties this will likely be a growing use case beyond people just using things like Metadata Menu and Make.md.

Admittedly, rendered code blocks are probably a bit more of an outlier issue.

Anything else?

As a point of reference, here's what that note looks like in Obsidian, I only render the properties I want to see via Dataview while other properties have other functions. CleanShot 2024-04-11 at 13 59 02@2x

I doubt rendering dataview outside of Obsidian would ever be practical but just getting to the note text when I use Raycast would be awesome!

ChristinWhite avatar Apr 11 '24 21:04 ChristinWhite

Thank you for opening this issue!

🔔 @KevinBatdorf @marcjulianschwarz @iancanderson @pernielsentikaer @ofalvai @adamadamsmusic @FServais you might want to have a look.

💡 Author and Contributors commands

The author and contributors of KevinBatdorf/obsidian can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopen the issue.

raycastbot avatar Apr 11 '24 21:04 raycastbot

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot avatar May 31 '24 21:05 raycastbot

Would also love this feature!

Perchycs avatar Jun 03 '24 06:06 Perchycs

Sorry for the late follow up. Does the setting to hide the frontmatter work?

CleanShot 2024-06-03 at 17 35 10@2x

Can you share a typical note that I can use to test on? Maybe if I see it I can better understand the problem

KevinBatdorf avatar Jun 03 '24 10:06 KevinBatdorf

I don't know how I missed that but it works perfectly! Sorry for raising an unnecessary issue.

ChristinWhite avatar Jun 03 '24 19:06 ChristinWhite