NeoMutt  2020-09-25
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 
40 struct ConfigSet;
41 
42 extern short C_History;
43 extern char *C_HistoryFile;
44 extern bool C_HistoryRemoveDups;
45 extern short C_SaveHistory;
46 
53 {
62 };
63 
64 void mutt_hist_add (enum HistoryClass hclass, const char *str, bool save);
65 bool mutt_hist_at_scratch (enum HistoryClass hclass);
66 void mutt_hist_free (void);
67 void mutt_hist_init (void);
68 char *mutt_hist_next (enum HistoryClass hclass);
69 char *mutt_hist_prev (enum HistoryClass hclass);
70 void mutt_hist_read_file (void);
71 void mutt_hist_reset_state (enum HistoryClass hclass);
72 void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
73 int mutt_hist_search (const char *search_buf, enum HistoryClass hclass, char **matches);
74 
75 void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count);
76 bool config_init_history(struct ConfigSet *cs);
77 
78 #endif /* MUTT_HISTORY_LIB_H */
NeoMutt commands.
Definition: lib.h:56
Container for lots of config items.
Definition: set.h:228
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:635
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
Definition: history.c:464
void mutt_hist_free(void)
Free all the history lists.
Definition: history.c:424
short C_SaveHistory
Config: Number of history entries to save per category.
Definition: config.c:40
char * C_HistoryFile
Config: File to save history in.
Definition: config.c:38
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:568
short C_History
Config: Number of history entries to keep in memory per category.
Definition: config.c:37
Mailboxes.
Definition: lib.h:60
bool mutt_hist_at_scratch(enum HistoryClass hclass)
Is the current History position at the &#39;scratch&#39; place?
Definition: history.c:618
bool C_HistoryRemoveDups
Config: Remove duplicate entries from the history.
Definition: config.c:39
External commands.
Definition: lib.h:54
int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches)
Find matches in a history list.
Definition: history.c:396
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the &#39;current&#39; position to the end of the History.
Definition: history.c:554
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:447
HistoryClass
Type to differentiate different histories.
Definition: lib.h:52
Patterns.
Definition: lib.h:58
bool config_init_history(struct ConfigSet *cs)
Register history config variables - Implements module_init_config_t.
Definition: config.c:64
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:500
Aliases.
Definition: lib.h:55
void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count)
Select an item from a history list.
Definition: dlghistory.c:96
Definition: lib.h:61
Miscellaneous strings.
Definition: lib.h:59
Files.
Definition: lib.h:57
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:527