NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
36
37#ifndef MUTT_EDITOR_LIB_H
38#define MUTT_EDITOR_LIB_H
39
40#include <stddef.h>
41// IWYU pragma: begin_keep
42#include "enter.h"
43#include "functions.h"
44#include "state.h"
45#include "wdata.h"
46// IWYU pragma: end_keep
47#include "core/lib.h"
48#include "history/lib.h"
49
50struct Buffer;
51struct CompleteOps;
52struct MenuDefinition;
53struct SubMenu;
54
55void editor_init_keys(struct SubMenu *sm_generic);
56
67typedef void (*get_field_callback_t)(const char *text, void *data);
68
69int mw_get_field (const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata);
70int mw_get_field_notify(const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata, get_field_callback_t callback, void *cb_data, const struct MenuDefinition *md, function_dispatcher_t fn_disp);
71void replace_part(struct EnterState *es, size_t from, const char *buf);
72
73#endif /* MUTT_EDITOR_LIB_H */
Convenience wrapper for the core headers.
int(* function_dispatcher_t)(struct MuttWindow *win, const struct KeyEvent *event)
Definition dispatcher.h:53
Editor functions.
void(* get_field_callback_t)(const char *text, void *data)
Definition lib.h:67
int mw_get_field_notify(const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata, get_field_callback_t callback, void *cb_data, const struct MenuDefinition *md, function_dispatcher_t fn_disp)
Ask the user for a string and call a notify function on keypress.
Definition window.c:265
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition functions.c:151
void editor_init_keys(struct SubMenu *sm_generic)
Initialise the Editor Keybindings - Implements ::init_keys_api.
Definition functions.c:131
Struct to store the cursor position when entering text.
Enter Window Data.
uint8_t CompletionFlags
Flags for mw_get_field(), e.g. MUTT_COMP_NO_FLAGS.
Definition wdata.h:41
Enter buffer.
int mw_get_field(const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata)
Ask the user for a string -.
Definition window.c:463
Read/write command history from/to a file.
HistoryClass
Type to differentiate different histories.
Definition lib.h:54
String manipulation buffer.
Definition buffer.h:36
Keep our place when entering a string.
Definition state.h:32
Functions for a Dialog or Window.
Definition menu.h:80
Collection of related functions.
Definition menu.h:68