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;
113 char *entry = ((
char **) menu->
mdata)[line];
139void dlg_history(
char *buf,
size_t buflen,
char **matches,
int match_count)
144 char title[256] = { 0 };
145 snprintf(title,
sizeof(title),
_(
"History '%s'"), buf);
150 menu->
max = match_count;
151 menu->
mdata = matches;
199 { -1, -1, NULL, NULL },
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
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(char *buf, size_t buflen, char **matches, int match_count)
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 MuttWindow * 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.
struct MuttWindow * window_find_child(struct MuttWindow *win, enum WindowType type)
Recursively find a child Window of a given type.
@ WT_DLG_HISTORY
History Dialog, dlg_history()
@ WT_STATUS_BAR
Status Bar containing extra info about the Index/Pager/etc.
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.
size_t buflen
Length of the results buffer.
struct Menu * menu
History Menu.
char ** matches
History entries.
bool done
Should we close the Dialog?
char * buf
Buffer for the results.
int match_count
Number of history entries.
A line in the History menu.
const char * history
Description of history.
Mapping between user-readable string and a constant.
void * wdata
Private data.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
@ MENU_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.