Jelmerro / Vieb

Vim Inspired Electron Browser - Vim bindings for the web by design
https://vieb.dev
GNU General Public License v3.0
1.31k stars 62 forks source link

Add "mousehide" setting to hide the mouse when typing #45

Open Jelmerro opened 4 years ago

Jelmerro commented 4 years ago

Vieb should have Vim's mousehide setting/toggle, to hide the mouse cursor when typing, and show it again when the mouse is moved. These are the requirements for such a feature:

The main reason for the lack of support for this feature is because there is a long-standing Electron bug preventing the cursor from being updated in a webview. I have also tried a couple of workarounds to fix this, but most of them ironically require the mouse to be moved before the cursor styling is applied. See this electron issue for details. I will not merge PRs that do not contain a fix/workaround for this bug, as it defeats the purpose of having a "mousehide" setting.

Jelmerro commented 3 years ago

Just for reference, I briefly tried to implement this again, it's still blocked by the same upstream issue.

FibreFoX commented 3 years ago

Just wanted to drop this here, due to this being referenced an that electron issue. That issue got closed without a proper fix (due to a stupid auto-close bot). You might want to open a new issue on this issue on the electron project. I was having the same issue, but am not working on that project anymore, so I can not contribute with a working reproducable example.

Jelmerro commented 3 years ago

Thanks for the heads up, I'll make a new issue in the Electron repo soon :+1: