ObsidianCustomFrames icon indicating copy to clipboard operation
ObsidianCustomFrames copied to clipboard

[Feature Request] Focus Awareness

Open rapatel0 opened this issue 3 years ago • 3 comments

Right now custom frames dominate the focus. You have to click outside of the window to bring focus back to obsidian.

it would be nice if a focus is only applied to the view when the mouse is hovering over it and focus goes back to the main obsidian viewer when the mouse leaves the pane.

Note: I'm not sure if this is something that is within the scope of plugin or needs to be made in obsidian itself.

This old bug has good animation of the issue so linking it here. https://github.com/electron/electron/issues/13057

rapatel0 avatar Jul 28 '22 13:07 rapatel0

Honestly, I have no idea if this is possible.

I also see some issues with your specific suggestion though: I often find myself opening a Google Keep note and then moving my cursor to an Obsidian note to scroll in the note while, simultaneously, typing information into the Google Keep note. With your idea of a frame only being active when the mouse is hovering over it, that wouldn't work anymore, and I can't help but think that it might be more annoying than useful all in all.

If you have any ideas on how to solve this problem without making it dependent on the cursor position, please let me know!

Ellpeck avatar Aug 04 '22 11:08 Ellpeck

I'll look into it, but your right it might end up being a bit painful to handle

rapatel0 avatar Aug 06 '22 20:08 rapatel0

FYI, here is how Obsidian Surfing does it: https://github.com/PKM-er/Obsidian-Surfing/blob/main/src/surfingView.ts#L233-L271

Krakor92 avatar Jun 28 '23 14:06 Krakor92