NeoMutt  2021-10-29-33-g41675a
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1 
35 #ifndef MUTT_HISTORY_LIB_H
36 #define MUTT_HISTORY_LIB_H
37 
38 #include <stdbool.h>
39 #include <stdlib.h>
40 
47 {
56 };
57 
58 void mutt_hist_add (enum HistoryClass hclass, const char *str, bool save);
59 bool mutt_hist_at_scratch (enum HistoryClass hclass);
60 void mutt_hist_free (void);
61 void mutt_hist_init (void);
62 char *mutt_hist_next (enum HistoryClass hclass);
63 char *mutt_hist_prev (enum HistoryClass hclass);
64 void mutt_hist_read_file (void);
65 void mutt_hist_reset_state (enum HistoryClass hclass);
66 void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
67 int mutt_hist_search (const char *search_buf, enum HistoryClass hclass, char **matches);
68 
69 void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count);
70 
71 #endif /* MUTT_HISTORY_LIB_H */
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:599
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:669
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:529
int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches)
Find matches in a history list.
Definition: history.c:412
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:468
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:486
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the 'current' position to the end of the History.
Definition: history.c:585
void mutt_hist_free(void)
Free all the history lists.
Definition: history.c:441
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:557
void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count)
Select an item from a history list.
Definition: dlghistory.c:123
HistoryClass
Type to differentiate different histories.
Definition: lib.h:47
@ HC_MBOX
Mailboxes.
Definition: lib.h:54
@ HC_FILE
Files.
Definition: lib.h:51
@ HC_COMMAND
NeoMutt commands.
Definition: lib.h:50
@ HC_ALIAS
Aliases.
Definition: lib.h:49
@ HC_MAX
Definition: lib.h:55
@ HC_PATTERN
Patterns.
Definition: lib.h:52
@ HC_OTHER
Miscellaneous strings.
Definition: lib.h:53
@ HC_CMD
External commands.
Definition: lib.h:48