summaryrefslogtreecommitdiffstats
path: root/zellij-tile/src
diff options
context:
space:
mode:
authorThomas Linford <tlinford@users.noreply.github.com>2021-08-23 15:51:33 +0200
committerGitHub <noreply@github.com>2021-08-23 15:51:33 +0200
commit94f20cfd5312f828c9180e7bcb5d760c09829a56 (patch)
tree05cb55c1aa80f59d58ae9ca00f10d15344857eb4 /zellij-tile/src
parentd1b5a6991807e2558b828c44a79b2b37af2b1094 (diff)
Indicate to the user when text is copied to the clipboard (#642)
* Indicate to the user when text is copied to the clipboard - broadcast CopyToClipboard event to plugins after selection has been copied, and InputReceived event after any input has been received. - add new ClientToServerMsg InputReceived - subscribe status-bar plugin to new events, modify second line after CopyToClipboard, reset it on InputReceived. * remove unnecessary InputReceived ClientToServerMsg - use existing Actions instead to know that user input has been received * make status bar text copied hint bold green * cleanup * cleanup * cleanup
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/data.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs
index cdf57e69f..b22be626d 100644
--- a/zellij-tile/src/data.rs
+++ b/zellij-tile/src/data.rs
@@ -33,6 +33,8 @@ pub enum Event {
TabUpdate(Vec<TabInfo>),
KeyPress(Key),
Timer(f64),
+ CopyToClipboard,
+ InputReceived,
}
/// Describes the different input modes, which change the way that keystrokes will be interpreted.