77 {
N_(
"Exit"), OP_EXIT },
78 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
79 {
N_(
"Search"), OP_SEARCH },
80 {
N_(
"Help"), OP_HELP },
93 char op,
const char *src,
const char *prec,
94 const char *if_str,
const char *else_str,
97 char *match = (
char *) data;
116 char *entry = ((
char **) menu->
mdata)[line];
134 char title[256] = { 0 };
135 snprintf(title,
sizeof(title),
_(
"History '%s'"), buf);
140 menu->
max = match_count;
141 menu->
mdata = matches;
Convenience wrapper for the core headers.
void mutt_format_s(char *buf, size_t buflen, const char *prec, const char *s)
Format a simple string.
@ FR_UNKNOWN
Unknown function.
static const struct Mapping HistoryHelp[]
Help Bar for the History Selection dialog.
void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count)
Select an item from a history list.
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 -.
static const char * history_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Format a string for the history list - Implements format_t -.
void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const char *src, format_t callback, intptr_t data, MuttFormatFlags flags)
Expand expandos (x) in a string -.
#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.
struct KeyEvent km_dokey_event(enum MenuType mtype)
Determine what a keypress should do.
void km_error_key(enum MenuType mtype)
Handle an unbound key sequence.
@ 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_find_child(struct MuttWindow *win, enum WindowType type)
Recursively find a child Window of a given type.
@ WT_DLG_HISTORY
History Dialog, dlg_select_history()
@ WT_STATUS_BAR
Status Bar containing extra info about the Index/Pager/etc.
Some miscellaneous functions.
const char * opcodes_get_name(int op)
Get the name of an opcode.
All user-callable functions.
void sbar_set_title(struct MuttWindow *win, const char *title)
Set the title for the Simple Bar.
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.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
Mapping between user-readable string and a constant.
struct WindowState state
Current state of the Window.
void * wdata
Private data.
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
@ MENU_GENERIC
Generic selection list.