77 {
N_(
"Exit"), OP_EXIT },
78 {
N_(
"Select"), OP_GENERIC_SELECT_ENTRY },
79 {
N_(
"Search"), OP_SEARCH },
80 {
N_(
"Help"), OP_HELP },
126 char title[256] = { 0 };
127 snprintf(title,
sizeof(title),
_(
"History '%s'"),
buf_string(
buf));
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
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.
int expando_filter(const struct Expando *exp, const struct ExpandoRenderCallback *erc, 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 -.
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.
const struct ExpandoRenderCallback HistoryRenderCallbacks[]
Callbacks for History Expandos.
#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.
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.
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.