NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
36#ifndef MUTT_HISTORY_LIB_H
37#define MUTT_HISTORY_LIB_H
38
39#include <stdbool.h>
40#include <stdlib.h>
41
42struct NotifyCallback;
43
50{
59};
60
65{
66 int num;
67 const char *history;
68};
69
76{
79};
80
81void mutt_hist_add (enum HistoryClass hclass, const char *str, bool save);
82bool mutt_hist_at_scratch (enum HistoryClass hclass);
83void mutt_hist_cleanup (void);
84void mutt_hist_init (void);
85char *mutt_hist_next (enum HistoryClass hclass);
86char *mutt_hist_prev (enum HistoryClass hclass);
87void mutt_hist_read_file (void);
88void mutt_hist_reset_state (enum HistoryClass hclass);
89void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
90int mutt_hist_search (const char *search_buf, enum HistoryClass hclass, char **matches);
91void mutt_hist_complete (char *buf, size_t buflen, enum HistoryClass hclass);
92int main_hist_observer (struct NotifyCallback *nc);
93
94void dlg_history(char *buf, size_t buflen, char **matches, int match_count);
95
96#endif /* MUTT_HISTORY_LIB_H */
void dlg_history(char *buf, size_t buflen, char **matches, int match_count)
Select an item from a history list -.
Definition: dlg_history.c:139
int main_hist_observer(struct NotifyCallback *nc)
Notification that a Config Variable has change - Implements observer_t -.
Definition: history.c:704
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:530
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:600
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:669
int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches)
Find matches in a history list.
Definition: history.c:416
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:472
bool mutt_hist_at_scratch(enum HistoryClass hclass)
Is the current History position at the 'scratch' place?
Definition: history.c:652
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
Definition: history.c:490
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the 'current' position to the end of the History.
Definition: history.c:586
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:558
void mutt_hist_complete(char *buf, size_t buflen, enum HistoryClass hclass)
Complete a string from a history list.
Definition: history.c:686
ExpandoDataHistory
Expando UIDs for History.
Definition: lib.h:76
@ ED_HIS_MATCH
HistoryEntry.history.
Definition: lib.h:77
@ ED_HIS_NUMBER
HistoryEntry.num.
Definition: lib.h:78
HistoryClass
Type to differentiate different histories.
Definition: lib.h:50
@ HC_FILE
Files.
Definition: lib.h:54
@ HC_EXT_COMMAND
External commands.
Definition: lib.h:51
@ HC_MAILBOX
Mailboxes.
Definition: lib.h:57
@ HC_ALIAS
Aliases.
Definition: lib.h:52
@ HC_NEO_COMMAND
NeoMutt commands.
Definition: lib.h:53
@ HC_MAX
Definition: lib.h:58
@ HC_PATTERN
Patterns.
Definition: lib.h:55
@ HC_OTHER
Miscellaneous strings.
Definition: lib.h:56
void mutt_hist_cleanup(void)
Free all the history lists.
Definition: history.c:445
A line in the History menu.
Definition: lib.h:65
int num
Index number.
Definition: lib.h:66
const char * history
Description of history.
Definition: lib.h:67
Data passed to a notification function.
Definition: observer.h:34