obsidian-hover-editor
obsidian-hover-editor copied to clipboard
[Feature Request] Set an "Idle Timer" to cancel out the "Ctrl + Hover" shortcut
It would be great if an idle timer for the mouse cursor could be set to deactivate the Ctrl + Hover shortcut to open any kinds of links.
It happens quite often that I navigate around a document using Ctrl + Arrow Keys and if the mouse cursor just happens to be hovering a link somewhere a hover editor window pops open. Worst case then is an accidental edit of another file, as I usually open hover editor in edit mode.
Cheers :)
Have you tried turning off auto-focus in Hover Editor's settings?
I actually prefer using hover editor with auto focus turned on, as a quick way to edit reference links and embeds.
The idle timer is an idea worth considering, though it still has the problem of "how long is too long", as well as the problem of what if you just bumped the mouse or you just scrolled a link under the cursor. That is, even if the mouse stayed in place, scrolling content underneath it will still register as hovering. (There are ways to counteract that as well, of course, but this is all very complex and the code is already quite complex.)
What I would suggest in the meantime is that you assign an additional hotkey to Pane Relief's "go to last pane/tab" command, e.g. ctrl+space or some such, and then turn off auto-focus. Then, when you want to focus on a new hover editor, hitting that ctrl-space will do the trick (or of course clicking), and your keys will never go to an inadvertently-opened hover editor.