Skip to content

Commit

Permalink
use kitty as default
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Dec 5, 2024
1 parent b9ea6a1 commit 89e0930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ language: 'en'

## 0.2.3 (unreleased)

- Kitty keyboard protocol is now enabled by default.
- Allow `Renderer` to be configured cross-platform by `Platform` property.
- Add `ToggleFullscreen` to configurable actions.

Expand Down
6 changes: 3 additions & 3 deletions rio-backend/src/config/keyboard.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use serde::{Deserialize, Serialize};

use super::defaults::default_disable_ctlseqs_alt;
use super::defaults::{default_bool_true, default_disable_ctlseqs_alt};

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone, Copy)]
pub struct Keyboard {
// Enable kitty keyboard protocol
#[serde(default = "bool::default", rename = "use-kitty-keyboard-protocol")]
#[serde(default = "default_bool_true", rename = "use-kitty-keyboard-protocol")]
pub use_kitty_keyboard_protocol: bool,
// Disable ctlseqs with ALT keys
// For example: Terminal.app does not deal with ctlseqs with ALT keys
Expand All @@ -20,7 +20,7 @@ pub struct Keyboard {
impl Default for Keyboard {
fn default() -> Keyboard {
Keyboard {
use_kitty_keyboard_protocol: false,
use_kitty_keyboard_protocol: true,
#[cfg(target_os = "macos")]
disable_ctlseqs_alt: true,
#[cfg(not(target_os = "macos"))]
Expand Down

0 comments on commit 89e0930

Please sign in to comment.