NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c File Reference

Config used by libindex. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "expando/lib.h"
#include "menu/lib.h"
#include "shared_data.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_index (struct ConfigSet *cs)
 Register index config variables - Implements module_init_config_t -.
 

Variables

const struct ExpandoDefinition StatusFormatDef []
 Expando definitions.
 
static struct ConfigDef IndexVars []
 Config definitions for the Index.
 

Detailed Description

Config used by libindex.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ StatusFormatDef

const struct ExpandoDefinition StatusFormatDef[]

Expando definitions.

Config:

  • $new_mail_command
  • $status_format
  • $ts_icon_format
  • $ts_status_format

Definition at line 47 of file config.c.

◆ IndexVars

struct ConfigDef IndexVars[]
static
Initial value:
= {
{ "change_folder_next", DT_BOOL, false, 0, NULL,
"Suggest the next folder, rather than the first when using '<change-folder>'"
},
{ "collapse_all", DT_BOOL, false, 0, NULL,
"Collapse all threads when entering a folder"
},
{ "mark_macro_prefix", DT_STRING, IP "'", 0, NULL,
"Prefix for macros using '<mark-message>'"
},
{ "status_format", DT_EXPANDO|D_L10N_STRING, IP N_("-%r-NeoMutt: %D [Msgs:%<M?%M/>%m%<n? New:%n>%<o? Old:%o>%<d? Del:%d>%<F? Flag:%F>%<t? Tag:%t>%<p? Post:%p>%<b? Inc:%b>%<l? %l>]---(%<T?%T/>%s/%S)-%>-(%P)---"), IP &StatusFormatDef, NULL,
"printf-like format string for the index's status line"
},
{ "uncollapse_jump", DT_BOOL, false, 0, NULL,
"When opening a thread, jump to the next unread message"
},
{ "uncollapse_new", DT_BOOL, true, 0, NULL,
"Open collapsed threads when new mail arrives"
},
{ NULL },
}
#define IP
Definition: set.h:54
const struct ExpandoDefinition StatusFormatDef[]
Expando definitions.
Definition: config.c:47
#define N_(a)
Definition: message.h:32
#define D_L10N_STRING
String can be localised.
Definition: types.h:82
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_STRING
a string
Definition: types.h:45
@ DT_EXPANDO
an expando
Definition: types.h:34

Config definitions for the Index.

Definition at line 82 of file config.c.