NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
37#ifndef MUTT_HISTORY_LIB_H
38#define MUTT_HISTORY_LIB_H
39
40#include <stdbool.h>
41#include "functions.h" // IWYU pragma: keep
42
43struct Buffer;
44struct NotifyCallback;
45
52{
61};
62
67{
68 int num;
69 const char *history;
70};
71
78{
81};
82
83void mutt_hist_add (enum HistoryClass hclass, const char *str, bool save);
84bool mutt_hist_at_scratch (enum HistoryClass hclass);
85void mutt_hist_cleanup (void);
86void mutt_hist_init (void);
87char *mutt_hist_next (enum HistoryClass hclass);
88char *mutt_hist_prev (enum HistoryClass hclass);
89void mutt_hist_read_file (void);
90void mutt_hist_reset_state (enum HistoryClass hclass);
91void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
92int mutt_hist_search (const char *find, enum HistoryClass hclass, struct HistoryArray *matches);
93void mutt_hist_complete (struct Buffer *buf, enum HistoryClass hclass);
94int main_hist_observer (struct NotifyCallback *nc);
95
96void dlg_history(struct Buffer *buf, struct HistoryArray *matches);
97
98#endif /* MUTT_HISTORY_LIB_H */
void dlg_history(struct Buffer *buf, struct HistoryArray *matches)
Select an item from a history list -.
Definition: dlg_history.c:119
int main_hist_observer(struct NotifyCallback *nc)
Notification that a Config Variable has change - Implements observer_t -.
Definition: history.c:713
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:534
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:604
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:673
void mutt_hist_complete(struct Buffer *buf, enum HistoryClass hclass)
Complete a string from a history list.
Definition: history.c:689
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:476
bool mutt_hist_at_scratch(enum HistoryClass hclass)
Is the current History position at the 'scratch' place?
Definition: history.c:656
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
Definition: history.c:494
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the 'current' position to the end of the History.
Definition: history.c:590
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:562
ExpandoDataHistory
Expando UIDs for History.
Definition: lib.h:78
@ ED_HIS_MATCH
HistoryEntry.history.
Definition: lib.h:79
@ ED_HIS_NUMBER
HistoryEntry.num.
Definition: lib.h:80
HistoryClass
Type to differentiate different histories.
Definition: lib.h:52
@ HC_FILE
Files.
Definition: lib.h:56
@ HC_EXT_COMMAND
External commands.
Definition: lib.h:53
@ HC_MAILBOX
Mailboxes.
Definition: lib.h:59
@ HC_ALIAS
Aliases.
Definition: lib.h:54
@ HC_NEO_COMMAND
NeoMutt commands.
Definition: lib.h:55
@ HC_MAX
Definition: lib.h:60
@ HC_PATTERN
Patterns.
Definition: lib.h:57
@ HC_OTHER
Miscellaneous strings.
Definition: lib.h:58
int mutt_hist_search(const char *find, enum HistoryClass hclass, struct HistoryArray *matches)
Find matches in a history list.
Definition: history.c:417
void mutt_hist_cleanup(void)
Free all the history lists.
Definition: history.c:449
Sidebar functions.
String manipulation buffer.
Definition: buffer.h:36
A line in the History menu.
Definition: lib.h:67
int num
Index number.
Definition: lib.h:68
const char * history
Description of history.
Definition: lib.h:69
Data passed to a notification function.
Definition: observer.h:34