NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Browser Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "config/lib.h"
#include "core/lib.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool browser_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 

Variables

struct ConfigDef BrowserVars []
 Config definitions for the browser.
 
const struct Module ModuleBrowser
 Module for the Browser library.
 

Detailed Description

Definition of the Browser Module.

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 module.c.

Function Documentation

◆ browser_config_define_variables()

static bool browser_config_define_variables ( struct NeoMutt * n,
struct ConfigSet * cs )
static

Define the Config Variables - Implements Module::config_define_variables()

Definition at line 40 of file module.c.

41{
43}
struct ConfigDef BrowserVars[]
Config definitions for the browser.
Definition config.c:138
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
+ Here is the call graph for this function:

Variable Documentation

◆ BrowserVars

struct ConfigDef BrowserVars[]
extern

Config definitions for the browser.

Definition at line 138 of file config.c.

138 {
139 // clang-format off
140 { "browser_abbreviate_mailboxes", DT_BOOL, true, 0, NULL,
141 "Abbreviate mailboxes using '~' and '=' in the browser"
142 },
144 "Sort method for the browser"
145 },
146 { "folder_format", DT_EXPANDO|D_NOT_EMPTY, IP "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %i", IP &FolderFormatDef, NULL,
147 "printf-like format string for the browser's display of folders"
148 },
149 { "group_index_format", DT_EXPANDO|D_NOT_EMPTY, IP "%4C %M%N %5s %-45.45f %d", IP &GroupIndexFormatDef, NULL,
150 "(nntp) printf-like format string for the browser's display of newsgroups"
151 },
152 { "mailbox_folder_format", DT_EXPANDO|D_NOT_EMPTY, IP "%2C %<n?%6n& > %6m %i", IP &FolderFormatDef, NULL,
153 "printf-like format string for the browser's display of mailbox folders"
154 },
155 { "mask", DT_REGEX|D_REGEX_MATCH_CASE|D_REGEX_ALLOW_NOT|D_REGEX_NOSUB, IP "!^\\.[^.]", 0, NULL,
156 "Only display files/dirs matching this regex in the browser"
157 },
158 { "show_only_unread", DT_BOOL, false, 0, NULL,
159 "(nntp) Only show subscribed newsgroups with unread articles"
160 },
161 { "browser_sort_dirs_first", DT_BOOL, false, 0, NULL,
162 "Group directories before files in the browser"
163 },
164
165 { "sort_browser", DT_SYNONYM, IP "browser_sort", IP "2024-11-20" },
166
167 { NULL },
168 // clang-format on
169};
static const struct ExpandoDefinition GroupIndexFormatDef[]
Expando definitions.
Definition config.c:117
static const struct ExpandoDefinition FolderFormatDef[]
Expando definitions.
Definition config.c:84
static const struct Mapping BrowserSortMethods[]
Sort methods for the folder/dir browser.
Definition config.c:43
@ BROWSER_SORT_ALPHA
Sort by name.
Definition sort.h:31
#define IP
Definition set.h:54
#define D_REGEX_ALLOW_NOT
Regex can begin with '!'.
Definition types.h:107
#define D_REGEX_MATCH_CASE
Case-sensitive matching.
Definition types.h:106
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_SYNONYM
synonym for another variable
Definition types.h:45
@ DT_SORT
sorting methods
Definition types.h:43
@ DT_EXPANDO
an expando
Definition types.h:34
@ DT_REGEX
regular expressions
Definition types.h:41
#define D_SORT_REVERSE
Sort flag for -reverse prefix.
Definition types.h:120
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition types.h:80
#define D_REGEX_NOSUB
Do not report what was matched (REG_NOSUB)
Definition types.h:108

◆ ModuleBrowser

const struct Module ModuleBrowser
Initial value:
= {
"browser",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool browser_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_BROWSER
ModuleBrowser, Mailbox Browser
Definition module_api.h:52

Module for the Browser library.

Definition at line 48 of file module.c.

48 {
50 "browser",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};