docs/meli.conf.5: small fixes & additions

jmap-eventsource
Manos Pitsidianakis 2020-10-16 22:28:00 +03:00
parent 3b97e66c10
commit a2456fa3f5
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 29 additions and 14 deletions

View File

@ -790,16 +790,16 @@ Sets the string to print in the mailbox tree for a leaf level where its root has
.El .El
.Ss Examples of sidebar mailbox tree customization .Ss Examples of sidebar mailbox tree customization
The default values The default values
.sp
.Bd .Bd -literal
has_sibling = " " has_sibling = " "
no_sibling = " "; no_sibling = " ";
has_sibling_leaf = " " has_sibling_leaf = " "
no_sibling_leaf = " " no_sibling_leaf = " "
.Ed .Ed
.sp
render a mailbox tree like the following: render a mailbox tree like the following:
.sp
.Bd -literal .Bd -literal
0 Inbox 3 0 Inbox 3
1 Archive 1 Archive
@ -807,20 +807,20 @@ render a mailbox tree like the following:
3 Lists 3 Lists
4 example-list-a 4 example-list-a
5 example-list-b 5 example-list-b
6 Sent 6 Sent
7 Spam 7 Spam
8 Trash 8 Trash
.Ed .Ed
.sp
Other possible trees: Other possible trees:
.sp
.Bd -literal .Bd -literal
has_sibling = " ┃" has_sibling = " ┃"
no_sibling = " " no_sibling = " "
has_sibling_leaf = " ┣━" has_sibling_leaf = " ┣━"
no_sibling_leaf = " ┗━" no_sibling_leaf = " ┗━"
.Ed .Ed
.sp
.Bd -literal .Bd -literal
0 Inbox 3 0 Inbox 3
1 ┣━Archive 1 ┣━Archive
@ -828,20 +828,20 @@ no_sibling_leaf = " ┗━"
3 ┣━Lists 3 ┣━Lists
4 ┃ ┣━example-list-a 4 ┃ ┣━example-list-a
5 ┃ ┗━example-list-b 5 ┃ ┗━example-list-b
6 ┣━Sent 6 ┣━Sent
7 ┣━Spam 7 ┣━Spam
8 ┗━Trash 8 ┗━Trash
.Ed .Ed
.sp
A completely ASCII one: A completely ASCII one:
.sp
.Bd -literal .Bd -literal
has_sibling = " |" has_sibling = " |"
no_sibling = " " no_sibling = " "
has_sibling_leaf = " |\\_" has_sibling_leaf = " |\\_"
no_sibling_leaf = " \\_" no_sibling_leaf = " \\_"
.Ed .Ed
.sp
.Bd -literal .Bd -literal
0 Inbox 3 0 Inbox 3
1 |\\_Archive 1 |\\_Archive
@ -849,11 +849,11 @@ no_sibling_leaf = " \\_"
3 |\\_Lists 3 |\\_Lists
4 | |\\_example-list-a 4 | |\\_example-list-a
5 | \\_example-list-b 5 | \\_example-list-b
6 |\\_Sent 6 |\\_Sent
7 |\\_Spam 7 |\\_Spam
8 \\_Trash 8 \\_Trash
.Ed .Ed
.sp
.Sh TAGS .Sh TAGS
.Bl -tag -width 36n .Bl -tag -width 36n
.It Ic colours Ar hash table String[Color] .It Ic colours Ar hash table String[Color]
@ -941,6 +941,18 @@ theme = "themeB"
[terminal.themes.themeC] [terminal.themes.themeC]
\&... \&...
.Ed .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] \&> .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. 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. Set to an empty array to disable the progress spinner.

View File

@ -96,6 +96,9 @@ impl DotAddressable for TerminalSettings {
"mouse_flag" => self.mouse_flag.lookup(field, tail), "mouse_flag" => self.mouse_flag.lookup(field, tail),
"window_title" => self.window_title.lookup(field, tail), "window_title" => self.window_title.lookup(field, tail),
"file_picker_command" => self.file_picker_command.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!( other => Err(MeliError::new(format!(
"{} has no field named {}", "{} has no field named {}",
parent_field, other parent_field, other