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

Definition of the Pattern 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 pattern_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 

Variables

struct ConfigDef PatternVars []
 Config definitions for the pattern library.
 
const struct Module ModulePattern
 Module for the Pattern library.
 

Detailed Description

Definition of the Pattern 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

◆ pattern_config_define_variables()

static bool pattern_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}
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
struct ConfigDef PatternVars[]
Config definitions for the pattern library.
Definition config.c:57
+ Here is the call graph for this function:

Variable Documentation

◆ PatternVars

struct ConfigDef PatternVars[]
extern

Config definitions for the pattern library.

Definition at line 57 of file config.c.

57 {
58 // clang-format off
59 { "external_search_command", DT_STRING|D_STRING_COMMAND, 0, 0, NULL,
60 "External search command"
61 },
62 { "pattern_format", DT_EXPANDO, IP "%2n %-15e %d", IP &PatternFormatDef, NULL,
63 "printf-like format string for the pattern completion menu"
64 },
65 { "simple_search", DT_STRING, IP "~f %s | ~s %s", 0, NULL,
66 "Pattern to search for when search doesn't contain ~'s"
67 },
68 { "thorough_search", DT_BOOL, true, 0, NULL,
69 "Decode headers and messages before searching them"
70 },
71 { NULL },
72 // clang-format on
73};
#define IP
Definition set.h:54
static const struct ExpandoDefinition PatternFormatDef[]
Expando definitions.
Definition config.c:42
#define D_STRING_COMMAND
A command.
Definition types.h:99
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_STRING
a string
Definition types.h:44
@ DT_EXPANDO
an expando
Definition types.h:34

◆ ModulePattern

const struct Module ModulePattern
Initial value:
= {
"pattern",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
@ MODULE_ID_PATTERN
ModulePattern, Pattern
Definition module_api.h:85
static bool pattern_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

Module for the Pattern library.

Definition at line 48 of file module.c.

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