NeoMutt  2021-02-05-89-gabe350
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 
77 #endif /* MUTT_HISTORY_LIB_H */
C_HistoryFile
char * C_HistoryFile
Config: File to save history in.
Definition: config.c:38
mutt_hist_init
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:447
C_HistoryRemoveDups
bool C_HistoryRemoveDups
Config: Remove duplicate entries from the history.
Definition: config.c:39
mutt_hist_prev
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:527
mutt_hist_save_scratch
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:635
HC_FILE
@ HC_FILE
Files.
Definition: lib.h:57
mutt_hist_add
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
Definition: history.c:464
HistoryClass
HistoryClass
Type to differentiate different histories.
Definition: lib.h:52
HC_PATTERN
@ HC_PATTERN
Patterns.
Definition: lib.h:58
HC_ALIAS
@ HC_ALIAS
Aliases.
Definition: lib.h:55
mutt_hist_next
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:500
mutt_hist_read_file
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:568
C_History
short C_History
Config: Number of history entries to keep in memory per category.
Definition: config.c:37
dlg_select_history
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
HC_MBOX
@ HC_MBOX
Mailboxes.
Definition: lib.h:60
mutt_hist_at_scratch
bool mutt_hist_at_scratch(enum HistoryClass hclass)
Is the current History position at the 'scratch' place?
Definition: history.c:618
mutt_hist_free
void mutt_hist_free(void)
Free all the history lists.
Definition: history.c:424
HC_OTHER
@ HC_OTHER
Miscellaneous strings.
Definition: lib.h:59
ConfigSet
Container for lots of config items.
Definition: set.h:228
HC_CMD
@ HC_CMD
External commands.
Definition: lib.h:54
mutt_hist_search
int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches)
Find matches in a history list.
Definition: history.c:396
HC_COMMAND
@ HC_COMMAND
NeoMutt commands.
Definition: lib.h:56
mutt_hist_reset_state
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the 'current' position to the end of the History.
Definition: history.c:554
C_SaveHistory
short C_SaveHistory
Config: Number of history entries to save per category.
Definition: config.c:40
HC_MAX
@ HC_MAX
Definition: lib.h:61