gapmiss / blur

A plugin for creating obfuscated blocks of text in Obsidian.md
MIT License
31 stars 3 forks source link

[Feature request][Potential bug] Blur of blocks works in edit mode, but no other effect. #3

Open GinoMan opened 5 months ago

GinoMan commented 5 months ago

I am listing this as a feature request but if this is not intended behavior then I guess it's a bug. I downloaded the plugin from the obsidian store so I don't know if that's out of date compared to github (looking at how you've crossed out downloading from the store).

Essentially, what's happening is that only the block blurring effect is shown in edit mode. I had hoped that this behavior would also work for the other annotations (all three inline and the box and bone block redactions).

It looks like this in edit mode in the attached image:

image

Is there a way to make the effects show in edit mode unless your cursor is on top of it? I know other plugins do this with their presentation changes to edit mode, but I wasn't sure if there was a technical reason it behaves this way.

Please let me know if you need any other information.

gapmiss commented 5 months ago

The plugin is intended to only obfuscate in READING view. The BLOCKS will also be obfuscated in LIVE PREVIEW mode.

Here is how each mode should look:

reading view

reading-view

edit view (LIVE preview)

live-preview

edit view (SOURCE mode)

source-mode

gapmiss commented 5 months ago

Here is the markdown I used for testing.

Alpha Bravo Charlie `~{Delta}` Echo Foxtrot Golt Hotel India Juliet `~{Kilo}` Lima Mike November Oscar `~{Papa}` Quebec Romeo Sierra Tango Uniform Victor `~{Whiskey}` Xray Yankee Zulu

Alpha Bravo Charlie `~[Delta]` Echo Foxtrot Golt Hotel India Juliet `~[Kilo]` Lima Mike November Oscar `~[Papa]` Quebec Romeo Sierra Tango Uniform Victor `~[Whiskey]` Xray Yankee Zulu

Alpha Bravo Charlie `~(Delta)` Echo Foxtrot Golt Hotel India Juliet `~(Kilo)` Lima Mike November Oscar `~(Papa)` Quebec Romeo Sierra Tango Uniform Victor `~(Whiskey)` Xray Yankee Zulu

```blur
Alpha Bravo Charlie Delta Echo Foxtrot Golt Hotel India Juliet Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey Xray Yankee Zulu
Alpha Bravo Charliez Delta Echo Foxtrot Golt Hotel India Juliet Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey Xray Yankee Zulu
Alpha Bravo Charlie Delta Echo Foxtrot Golt Hotel India Juliet Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey Xray Yankee Zulu
Rectorian commented 2 weeks ago

Hey, I know this is a bit old, but I was actually looking into the exact same thing.

I understand it is mostly made to block primarily in reader mode, but would it be possible to add a toggle that will allow the inline and blocks to obfuscate in live-preview mode?

Might seem strange, but I'm using the features more for aesthetic rather than being a functional blur/redact feature. If thats outside of the scope, I understand.

Thanks!