Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jelmerro opened this issue Apr 13, 2020 · 3 comments
Open

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

Jelmerro opened this issue Apr 13, 2020 · 3 comments
Labels
electron issue Issue of the Electron project, unsolvable in Vieb enhancement New feature or request gui Graphical user interface related issues help wanted Help wanted with this issue, so PRs are encouraged! mode-insert Issues related to insert mode

Comments

@Jelmerro
Copy link
Owner

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:

  • Always show the mouse cursor when "mousehide" is disabled
  • Hide the mouse cursor when the user starts typing with "mousehide" enabled (regardless of other mouse-related settings)
  • Show the mouse cursor again when the mouse is moved
  • Mousehide should be on by default
  • Also have a listeners while in insert mode to implement the same functionality as above

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 Jelmerro added enhancement New feature or request help wanted Help wanted with this issue, so PRs are encouraged! mode-insert Issues related to insert mode gui Graphical user interface related issues labels Apr 13, 2020
@Jelmerro Jelmerro added the electron issue Issue of the Electron project, unsolvable in Vieb label Nov 21, 2020
@Jelmerro
Copy link
Owner Author

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

@FibreFoX
Copy link

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issue Issue of the Electron project, unsolvable in Vieb enhancement New feature or request gui Graphical user interface related issues help wanted Help wanted with this issue, so PRs are encouraged! mode-insert Issues related to insert mode
Projects
None yet
Development

No branches or pull requests

2 participants