Skip to content

Commit

Permalink
chore(config): rename option to hide-mouse-cursor-when-typing (rapham…
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun authored Sep 1, 2024
1 parent 57521e8 commit aab6f45
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/config/mouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ language: 'en'
Default is `false`

```toml
hide-cursor-when-typing = false
hide-mouse-cursor-when-typing = false
```
2 changes: 1 addition & 1 deletion rio-backend/src/config/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cursor = '▇'
#
blinking-cursor = false
# Hide the cursor while typing
# Hide the mouse cursor while typing
#
# Default is `false`
#
Expand Down
6 changes: 5 additions & 1 deletion rio-backend/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aab6f45

Please sign in to comment.