X-Git-Url: https://git.deb.at/w?p=pkg%2Fabook.git;a=blobdiff_plain;f=abookrc.5;h=ba12c7c7786edabf5e9336596405e2610d8dd669;hp=7c66ef71694f3333d22c138fd06ad4b51eb575f3;hb=b722eae92e8deb6bd080dea1f2f929a7dd9edddb;hpb=20ea61a5f77f0f8c1354dc326a74f9a6c8362d6a diff --git a/abookrc.5 b/abookrc.5 index 7c66ef7..ba12c7c 100644 --- a/abookrc.5 +++ b/abookrc.5 @@ -78,51 +78,41 @@ only preserve the standard fields (see a list in the .TP .B none discards any unknown field. +.RE .IP Default is \fIstandard\fP. -.RE .TP -\fBshow_all_emails\fP=[true|false] -Defines whether all email addresses for a contact are shown in the main list view. Default is true - +\fBindex_format\fP=format_string +Defines the way entries are displayed in the main list. This is a string containing field names enclosed between braces, with an optional width limit specified by a number (right alignment if negative) after the field name and a colon, and an arbitrary number of alternative fields (first with non empty content is to be displayed) separated by vertical bars. For instance: +.RS .TP -\fBemailpos\fP=column -Defines the screen column on the main list where the email address is to begin. Default is 25. - +\fI{name:22}\fP +displays the \fIname\fP field with a maximal width of 22 characters. .TP -\fBextra_column\fP=field -Defines the field to display in the extra (third) column on the main list. Default is "phone" (Home Phone). +\fI{phone:-12|workphone|mobile}\fP +displays (right aligned within a width of 13 characters), either the \fIphone\fP, \fIworkphone\fP or \fImobile\fP field, whichever being the first to be non-empty. +.RE .IP -\fIfield\fP can be any of the following: -.br --1 disabled -.br -phone Home Phone -.br -workphone Work Phone -.br -fax Fax -.br -mobile Mobile Phone -.br -nick Nickname/Alias -.br -url URL -.br -notes Notes +Default is \fI" {name:22} {email:40} {phone:12|workphone|mobile}"\fP .TP -\fBextra_alternative\fP=field -This is an optional setting that allows you to specify an alternative field to be displayed in the extra (third) column if there is no data for the field specified in extra_column for a particular item. The strings for the fields are the same as above. Please note that the data shown where the alternative field has been used will NOT be marked differently in any way from the rest of the extra column. There is no default. +\fBshow_all_emails\fP=[true|false] +Defines whether all email addresses for a contact are shown in the main list view. Default is true. .TP -\fBextrapos\fP=column -Defines the screen column on the main list where the extra field is to begin. Default is 65. - +.PD 0 +\fBemailpos\fP +.TP +.PD 0 +\fBextra_column\fP .TP -\fBmutt_command\fP=command -Defines the command to start mutt. Default is "mutt". +.PD 0 +\fBextra_alternative\fP +.TP +.PD +\fBextrapos\fP +Obsoleted by \fBindex_format\fP. .TP \fBmutt_return_all_emails\fP=[true|false] @@ -156,6 +146,89 @@ Defines the field to be used by the "sort by field" command. Default is "nick" ( \fBshow_cursor\fP=[true|false] Defines if the cursor is visible in main display. Default is false. +.TP +\fBuse_mouse\fP=[true|false] +Defines if navigation via the mouse is activated. Default is false. Most terminals can also inhibit ncurses mouse events at runtime by holding the Shift key (restoring mouse-selection behavior). + +.TP +\fBscroll_speed\fP=lines +Defines the number of lines the adress list is scrolled by on a mouse wheel +action. This option only takes effect if use_mouse is enabled. Default is 2. + +.TP +\fBuse_colors\fP=[true|false] +Defines if the output of abook is colorized. Default is false. + +.TP +Color settings: +\fBcolor_header_fg\fP=color +Foreground color for header bar + +\fBcolor_header_bg\fP=color +Background color for header bar + +\fBcolor_footer_fg\fP=color +Foreground color for footer bar + +\fBcolor_footer_bg\fP=color +Background color for footer bar + +\fBcolor_list_even_fg\fP=color +Foreground color for normal list entries with even index in the list (starting +with index 0) + +\fBcolor_list_even_bg\fP=color +Background color for normal list entries with even index in the list (starting +with index 0) + +\fBcolor_list_odd_fg\fP=color +Foreground color for normal list entries with odd index in the list (starting +with index 0) + +\fBcolor_list_odd_bg\fP=color +Background color for normal list entries with odd index in the list (starting +with index 0) + +\fBcolor_list_header_fg\fP=color +Foreground color for the list header + +\fBcolor_list_header_bg\fP=color +Background color for the list header + +\fBcolor_list_highlight_fg\fP=color +Foreground color for highlighted list entries + +\fBcolor_list_highlight_bg\fP=color +Background color for highlighted list entries + +\fBcolor_tab_border_fg\fP=color +Foreground color for tab borders on details page + +\fBcolor_tab_border_bg\fP=color +Background color for tab borders on details page + +\fBcolor_tab_label_fg\fP=color +Foreground color for tab labes on details page + +\fBcolor_tab_label_bg\fP=color +Background color for tab labes on details page + +\fBcolor_field_name_fg\fP=color +Foreground color for field names on details page + +\fBcolor_field_name_bg\fP=color +Background color for field names on details page + +\fBcolor_field_value_fg\fP=color +Foreground color for field values on details page + +\fBcolor_field_value_bg\fP=color +Background color for field values on details page + +Where \fBcolor\fP can be: default, black, red, green, yellow, blue, magenta, cyan, white + + + .SH SAMPLE CONFIGURATION FILE .nf @@ -180,29 +253,12 @@ set preserve_fields=all # Automatically save database on exit set autosave=true +# Format of entries lines in list +set index_format=" {name:22} {email:40} {phone:12|workphone|mobile}" + # Show all email addresses in list set show_all_emails=true -# Screen column for email field to start -set emailpos=25 - -# Field to be used in the extra column -set extra_column=phone -# frequently used values: -# -1 disabled -# phone Home Phone -# workphone Work Phone -# fax Fax -# mobile Mobile Phone -# nick Nickname/Alias -# url URL - -# -set extra_alternative=-1 - -# Screen column for the extra field to start -set extrapos=65 - # Command used to start mutt set mutt_command=mutt @@ -215,19 +271,19 @@ set print_command=lpr # Command used to start the web browser set www_command=lynx -# address style [eu|us|uk] +# Address style [eu|us|uk] set address_style=eu -# use ASCII characters only +# Use ASCII characters only set use_ascii_only=false # Prevent double entry set add_email_prevent_duplicates=false -# field to be used with "sort by field" command +# Field to be used with "sort by field" command set sort_field=nick -# show cursor in main display +# Show cursor in main display set show_cursor=false .fi