shichongrui / obsidian-reveal-active-file

Obsidian plugin to reveal the active file automatically when you open a file
93 stars 11 forks source link

Disable highlighting? #3

Open luckman212 opened 3 years ago

luckman212 commented 3 years ago

Nice plugin! @shichongrui

I guess due to the triggering, even navigating between left/right panes causes the file to "flash" in the navigator. I was just wondering if you or anyone know of a way to disable this highlighting, either w. CSS or other method?

gkavboy commented 2 years ago

The plugin execute a build-in function only. You can start it manually: note's More option->Reveal file in navigator.

изображение

So highlighting is a build-in behavor.

I can suggest you next CSS for less conspicuous behavor:

.is-flashing {
    transition: none !important;
    background-color: var(--background-secondary-alt) !important;
    color: var(--text-normal) !important;
}
.is-flashing * {
    background-color: var(--background-secondary-alt);
    color: var(--text-normal);
}

The selection do not blink, but some time display a last selected file.

gkavboy commented 2 years ago

Also, you may use Customizable Page Header and Title Bar Obsidian plugin. Do button "Reveal file in navigator" on note tab with it and start this function manually when need. изображение