diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d9b50e..0392309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ Procedure when bumping the version number: ## Unreleased +### Removed +- Key binding to open present page + ## v0.8.0 - 2024-01-04 ### Added diff --git a/cove-config/src/keys.rs b/cove-config/src/keys.rs index 1f8a818..422798e 100644 --- a/cove-config/src/keys.rs +++ b/cove-config/src/keys.rs @@ -81,7 +81,6 @@ default_bindings! { pub fn nick => ["n"]; pub fn more_messages => ["m"]; pub fn account => ["A"]; - pub fn present => ["ctrl+p"]; } pub mod tree_cursor { @@ -286,9 +285,6 @@ pub struct RoomAction { /// Manage account. #[serde(default = "default::room_action::account")] pub account: KeyBinding, - /// Open room's plugh.de/present page. - #[serde(default = "default::room_action::present")] - pub present: KeyBinding, } #[derive(Debug, Default, Deserialize, Document)] diff --git a/cove/src/ui/euph/room.rs b/cove/src/ui/euph/room.rs index b226b75..d79ab3d 100644 --- a/cove/src/ui/euph/room.rs +++ b/cove/src/ui/euph/room.rs @@ -382,18 +382,6 @@ impl EuphRoom { _ => {} } - // Always applicable - if event.matches(&keys.room.action.present) { - let link = format!("https://plugh.de/present/{}/", self.name()); - if let Err(error) = open::that(&link) { - self.popups.push_front(RoomPopup::Error { - description: format!("Failed to open link: {link}"), - reason: format!("{error}"), - }); - } - return true; - } - false }