Repository: raphamorim/rio (language: rust)

Issue:
[config] hide-cursor-when-typing  option needs to be clearer that it is for the mouse cursor.

Hi

The hide-cursor-when-typing  option needs to be clearer that it's for the mouse cursor and not the terminal cursor.
May be rename to 

```
hide-mouse-cursor-when-typing = true
``` 

or change slightly to examples

```
mouse-cursor-typing = “hide”
mouse-cursor-typing = “show”

hide-mouse-cursor = “always”
hide-mouse-cursor = “never”
hide-mouse-cursor = “typing"

```


Discussion / hints:

Fix patch:
diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md
index 13744be14b..aaee61ee24 100644
--- a/docs/docs/changelog.md
+++ b/docs/docs/changelog.md
@@ -15,6 +15,7 @@ language: 'en'
 - `use-kitty-keyboard-protocol` is now `true` as default.
 - Remove tokio runtime.
 - Allow configuring with lowercase values for enums
+- Rename `hide-cursor-when-typing` to `hide-mouse-cursor-when-typing`
 
 ## 0.1.10
 
diff --git a/docs/docs/config/mouse.md b/docs/docs/config/mouse.md
index 89b099b8b4..80c1a2465c 100644
--- a/docs/docs/config/mouse.md
+++ b/docs/docs/config/mouse.md
@@ -8,5 +8,5 @@ language: 'en'
 Default is `false`
 
 ```toml
-hide-cursor-when-typing = false
+hide-mouse-cursor-when-typing = false
 ```
diff --git a/rio-backend/src/config/defaults.rs b/rio-backend/src/config/defaults.rs
index 65ad7140a4..3c0c897f1f 100644
--- a/rio-backend/src/config/defaults.rs
+++ b/rio-backend/src/config/defaults.rs
@@ -123,7 +123,7 @@ cursor = '▇'
 #
 blinking-cursor = false
 
-# Hide the cursor while typing
+# Hide the mouse cursor while typing
 #
 # Default is `false`
 #
diff --git a/rio-backend/src/config/mod.rs b/rio-backend/src/config/mod.rs
index 7e391a2b68..baab70622d 100644
--- a/rio-backend/src/config/mod.rs
+++ b/rio-backend/src/config/mod.rs
@@ -124,7 +124,11 @@ pub struct Config {
     pub ignore_selection_fg_color: bool,
     #[serde(default = "default_bool_true", rename = "confirm-before-quit")]
     pub confirm_before_quit: bool,
-    #[serde(default = "bool::default", rename = "hide-cursor-when-typing")]
+    #[serde(
+        default = "bool::default",
+        rename = "hide-mouse-cursor-when-typing",
+        alias = "hide-cursor-when-typing"
+    )]
     pub hide_cursor_when_typing: bool,
     #[serde(default = "Renderer::default")]
     pub renderer: Renderer,


Test patch: