aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/config/selection.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-11-10 18:16:22 +0400
committerGitHub <noreply@github.com>2023-11-10 18:16:22 +0400
commit5060f8eeb864e8c304fbad9588bdd882db942356 (patch)
treeb615ded19e6ac545b495f716e2a22ecd903332af /alacritty/src/config/selection.rs
parent3ffd6c8f26f9788466b9ba95659b8de970a10f08 (diff)
downloadr-alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.tar.gz
r-alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.tar.bz2
r-alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.zip
Remove `alacritty_config` from alacritty_terminal
There's no need to force alacritty's user configuration on other users of the crate, thus provide the options actually used by alacritty_terminal itself.
Diffstat (limited to 'alacritty/src/config/selection.rs')
-rw-r--r--alacritty/src/config/selection.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/alacritty/src/config/selection.rs b/alacritty/src/config/selection.rs
new file mode 100644
index 00000000..bf90b48f
--- /dev/null
+++ b/alacritty/src/config/selection.rs
@@ -0,0 +1,17 @@
+use alacritty_config_derive::ConfigDeserialize;
+use alacritty_terminal::term::SEMANTIC_ESCAPE_CHARS;
+
+#[derive(ConfigDeserialize, Clone, Debug, PartialEq, Eq)]
+pub struct Selection {
+ pub semantic_escape_chars: String,
+ pub save_to_clipboard: bool,
+}
+
+impl Default for Selection {
+ fn default() -> Self {
+ Self {
+ semantic_escape_chars: SEMANTIC_ESCAPE_CHARS.to_owned(),
+ save_to_clipboard: Default::default(),
+ }
+ }
+}