diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-14 12:43:19 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-15 23:38:31 +0300 |
commit | 3ae2d03663c07e437c52d840bdf3161a2f52a3e3 (patch) | |
tree | e86ee7489cc3534394df0f60b50b1a91bb2b21d4 /ui/src/conf.rs | |
parent | e3cd2d4c678a4f067344cab7f819c45c1957d30c (diff) |
ui: add triptych thread mailing view
This mail list view shows one entry per thread just like CompactListing,
but the entry is slightly bigger just like in some GUIs, and when the
thread is opened the view becomes 3 columned:
+--+-------+----+
|~~|-------|~~~ |
|~~|-------|~~ |
| |-------| |
| |-------|~~~ |
+--+-------+----+
This is meant to be used with bigger terminal sizes
Diffstat (limited to 'ui/src/conf.rs')
-rw-r--r-- | ui/src/conf.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/conf.rs b/ui/src/conf.rs index 289781d4..09c8decf 100644 --- a/ui/src/conf.rs +++ b/ui/src/conf.rs @@ -400,6 +400,7 @@ pub enum IndexStyle { Plain, Threaded, Compact, + Conversations, } impl Default for IndexStyle { @@ -481,7 +482,8 @@ impl<'de> Deserialize<'de> for IndexStyle { "Plain" | "plain" => Ok(IndexStyle::Plain), "Threaded" | "threaded" => Ok(IndexStyle::Threaded), "Compact" | "compact" => Ok(IndexStyle::Compact), - _ => Err(de::Error::custom("invalid `index` value")), + "Conversations" | "conversations" => Ok(IndexStyle::Conversations), + _ => Err(de::Error::custom("invalid `index_style` value")), } } } @@ -495,6 +497,7 @@ impl Serialize for IndexStyle { IndexStyle::Plain => serializer.serialize_str("plain"), IndexStyle::Threaded => serializer.serialize_str("threaded"), IndexStyle::Compact => serializer.serialize_str("compact"), + IndexStyle::Conversations => serializer.serialize_str("conversations"), } } } |