summaryrefslogtreecommitdiffstats
path: root/src/layout.rs
diff options
context:
space:
mode:
authorKyohei Uto <im@kyoheiu.dev>2022-10-30 06:02:54 +0900
committerKyohei Uto <im@kyoheiu.dev>2022-10-30 06:02:54 +0900
commit8abaf359a3fe88a5343c6599bdbe3b5604559976 (patch)
tree7907aa451038fe7087e50533f59148e8d6c56cf9 /src/layout.rs
parentd6343cc53d6379f2a2814676510ca816c6022a61 (diff)
Add preview and split to session.rs
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 7f37876..5edfa8c 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -4,6 +4,7 @@ use super::functions::*;
use super::state::{FileType, ItemInfo, BEGINNING_ROW};
use super::term::*;
+use serde::{Deserialize, Serialize};
use syntect::easy::HighlightLines;
use syntect::highlighting::ThemeSet;
use syntect::parsing::SyntaxSet;
@@ -50,7 +51,7 @@ pub enum PreviewType {
Binary,
}
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
pub enum Split {
Vertical,
Horizontal,