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,
103 char tmp[32] = { 0 };
104 snprintf(tmp,
sizeof(tmp),
"%%%sd", prec);
105 snprintf(buf, buflen, tmp, h->
num);
125 char *entry = ((
char **) menu->
mdata)[line];
144void dlg_history(
char *buf,
size_t buflen,
char **matches,
int match_count)
149 char title[256] = { 0 };
150 snprintf(title,
sizeof(title),
_(
"History '%s'"), buf);
155 menu->
max = match_count;
156 menu->
mdata = matches;
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
@ FR_UNKNOWN
Unknown function.
static const struct Mapping HistoryHelp[]
Help Bar for the History Selection dialog.
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 -.
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 -.
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.
#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.
Some miscellaneous functions.
const char * opcodes_get_name(int op)
Get the name of an opcode.
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.
A line in the History menu.
const char * history
Description of history.
Mapping between user-readable string and a constant.
struct WindowState state
Current state of the Window.
void * wdata
Private data.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
@ MENU_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.