summaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 15:49:07 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-26 15:50:06 +0300
commit1b980eaa9d4cbc050b6b81525e4b6b72ae853be5 (patch)
tree48afc3595519c9e229e22528ecc229a66f9bd874 /src/app/state.rs
parent57c880f0ebaa5011abc90f4e2fd4f84fc072ce35 (diff)
feat: show clipboard copy feedback
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 5e6aeafd..de1db052 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -1001,6 +1001,11 @@ pub struct ToastNotification {
pub target: Option<ToastTarget>,
}
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct CopyFeedback {
+ pub message: String,
+}
+
pub struct ReleaseNotesState {
pub version: String,
pub body: String,
@@ -1103,6 +1108,7 @@ pub struct AppState {
pub update_dismissed: bool,
pub config_diagnostic: Option<String>,
pub toast: Option<ToastNotification>,
+ pub copy_feedback: Option<CopyFeedback>,
/// Last reported focus state for the outer terminal hosting herdr.
/// None means unsupported or not yet reported, which preserves active-pane suppression.
pub outer_terminal_focus: Option<bool>,
@@ -1410,6 +1416,7 @@ impl AppState {
update_dismissed: false,
config_diagnostic: None,
toast: None,
+ copy_feedback: None,
outer_terminal_focus: None,
prefix_code: KeyCode::Char('b'),
prefix_mods: KeyModifiers::CONTROL,