78 {
N_(
"Exit"), OP_EXIT },
79 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
80 {
N_(
"Search"), OP_SEARCH },
81 {
N_(
"Help"), OP_HELP },
93 return entry->
num + 1;
104 const char *s = entry->
history;
149 char title[256] = { 0 };
150 snprintf(title,
sizeof(title),
_(
"History '%s'"),
buf_string(
buf));
199 { -1, -1, NULL, NULL },
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
const struct Expando * cs_subset_expando(const struct ConfigSubset *sub, const char *name)
Get an Expando config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
size_t mutt_strwidth(const char *s)
Measure a string's width in screen cells.
@ FR_UNKNOWN
Unknown function.
static const struct Mapping HistoryHelp[]
Help Bar for the History Selection dialog.
const struct ExpandoRenderData HistoryRenderData[]
Callbacks for History Expandos.
@ ED_HISTORY
History ED_HIS_ ExpandoDataHistory.
int expando_filter(const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Render an Expando and run the result through a filter.
int km_dokey(enum MenuType mtype, GetChFlags flags)
Determine what a keypress should do.
void km_error_key(enum MenuType mtype)
Handle an unbound key sequence.
int menu_tagging_dispatcher(struct MuttWindow *win, int op)
Perform tagging operations on the Menu - Implements function_dispatcher_t -.
int global_function_dispatcher(struct MuttWindow *win, int op)
Perform a Global function - Implements function_dispatcher_t -.
int menu_function_dispatcher(struct MuttWindow *win, int op)
Perform a Menu function - Implements function_dispatcher_t -.
int history_function_dispatcher(struct MuttWindow *win, int op)
Perform a History function - Implements function_dispatcher_t -.
long history_C_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
History: Index number - Implements ExpandoRenderData::get_number() -.
void history_s(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
History: History match - Implements ExpandoRenderData::get_string() -.
void dlg_history(struct Buffer *buf, struct HistoryArray *matches)
Select an item from a history list -.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void simple_dialog_free(struct MuttWindow **ptr)
Destroy a simple index Dialog.
struct SimpleDialogWindows simple_dialog_new(enum MenuType mtype, enum WindowType wtype, const struct Mapping *help_data)
Create a simple index Dialog.
@ ED_HIS_MATCH
HistoryEntry.history.
@ ED_HIS_NUMBER
HistoryEntry.num.
#define GETCH_NO_FLAGS
No flags are set.
@ LL_DEBUG1
Log at debug level 1.
Convenience wrapper for the library headers.
void mutt_clear_error(void)
Clear the message line (bottom line of screen)
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
struct MuttWindow * window_set_focus(struct MuttWindow *win)
Set the Window focus.
@ WT_DLG_HISTORY
History Dialog, dlg_history()
const char * opcodes_get_name(int op)
Get the name of an opcode.
#define MUTT_FORMAT_ARROWCURSOR
Reserve space for arrow_cursor.
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
void sbar_set_title(struct MuttWindow *win, const char *title)
Set the title for the Simple Bar.
String manipulation buffer.
Data to pass to the History Functions.
struct Menu * menu
History Menu.
struct Buffer * buf
Buffer for the results.
struct HistoryArray * matches
History entries.
bool done
Should we close the Dialog?
A line in the History menu.
const char * history
Description of history.
Mapping between user-readable string and a constant.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
Tuple for the results of simple_dialog_new()
struct MuttWindow * sbar
Simple Bar.
struct MuttWindow * dlg
Main Dialog Window.
@ MENU_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.