From a2456fa3f5650eade57840e42ccf4726602adee7 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Fri, 16 Oct 2020 22:28:00 +0300 Subject: [PATCH] docs/meli.conf.5: small fixes & additions --- docs/meli.conf.5 | 40 ++++++++++++++++++++++++++-------------- src/conf/terminal.rs | 3 +++ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/docs/meli.conf.5 b/docs/meli.conf.5 index 4296ca64..71dfd37b 100644 --- a/docs/meli.conf.5 +++ b/docs/meli.conf.5 @@ -790,16 +790,16 @@ Sets the string to print in the mailbox tree for a leaf level where its root has .El .Ss Examples of sidebar mailbox tree customization The default values - -.Bd +.sp +.Bd -literal has_sibling = " " no_sibling = " "; has_sibling_leaf = " " no_sibling_leaf = " " .Ed - +.sp render a mailbox tree like the following: - +.sp .Bd -literal 0 Inbox 3 1 Archive @@ -807,20 +807,20 @@ render a mailbox tree like the following: 3 Lists 4 example-list-a 5 example-list-b -6 Sent +6 Sent 7 Spam 8 Trash .Ed - +.sp Other possible trees: - +.sp .Bd -literal has_sibling = " ┃" no_sibling = " " has_sibling_leaf = " ┣━" no_sibling_leaf = " ┗━" .Ed - +.sp .Bd -literal 0 Inbox 3 1 ┣━Archive @@ -828,20 +828,20 @@ no_sibling_leaf = " ┗━" 3 ┣━Lists 4 ┃ ┣━example-list-a 5 ┃ ┗━example-list-b -6 ┣━Sent +6 ┣━Sent 7 ┣━Spam 8 ┗━Trash .Ed - +.sp A completely ASCII one: - +.sp .Bd -literal has_sibling = " |" no_sibling = " " has_sibling_leaf = " |\\_" no_sibling_leaf = " \\_" .Ed - +.sp .Bd -literal 0 Inbox 3 1 |\\_Archive @@ -849,11 +849,11 @@ no_sibling_leaf = " \\_" 3 |\\_Lists 4 | |\\_example-list-a 5 | \\_example-list-b -6 |\\_Sent +6 |\\_Sent 7 |\\_Spam 8 \\_Trash .Ed - +.sp .Sh TAGS .Bl -tag -width 36n .It Ic colours Ar hash table String[Color] @@ -941,6 +941,18 @@ theme = "themeB" [terminal.themes.themeC] \&... .Ed +.It Ic use_mouse Ar bool +Use mouse events. +This will disable text selection, but you will be able to resize some widgets. +This setting can be toggled with +.Cm toggle mouse Ns +\&. +.\" default value +.Pq Em false +.It Ic mouse_flag Ar String +String to show in status bar if mouse is active. +.\" default value +.Pq Em 🖱️ .It Ic progress_spinner_sequence Ar Either \&< Integer, [String] \&> Choose between 30-something built in sequences (integers between 0-30) or define your own list of strings for the progress spinner animation. Set to an empty array to disable the progress spinner. diff --git a/src/conf/terminal.rs b/src/conf/terminal.rs index 781d72aa..088836e2 100644 --- a/src/conf/terminal.rs +++ b/src/conf/terminal.rs @@ -96,6 +96,9 @@ impl DotAddressable for TerminalSettings { "mouse_flag" => self.mouse_flag.lookup(field, tail), "window_title" => self.window_title.lookup(field, tail), "file_picker_command" => self.file_picker_command.lookup(field, tail), + "progress_spinner_sequence" => { + self.progress_spinner_sequence.lookup(field, tail) + } other => Err(MeliError::new(format!( "{} has no field named {}", parent_field, other