NeoMutt  2022-04-29-145-g9b6a0e
Teaching an old dog new tricks
DOXYGEN
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 
48 {
57 };
58 
59 void mutt_hist_add (enum HistoryClass hclass, const char *str, bool save);
60 bool mutt_hist_at_scratch (enum HistoryClass hclass);
61 void mutt_hist_free (void);
62 void mutt_hist_init (void);
63 char *mutt_hist_next (enum HistoryClass hclass);
64 char *mutt_hist_prev (enum HistoryClass hclass);
65 void mutt_hist_read_file (void);
66 void mutt_hist_reset_state (enum HistoryClass hclass);
67 void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
68 int mutt_hist_search (const char *search_buf, enum HistoryClass hclass, char **matches);
69 
70 void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count);
71 
72 #endif /* MUTT_HISTORY_LIB_H */
void mutt_hist_read_file(void)
Read the History from a file.
Definition: history.c:593
void mutt_hist_save_scratch(enum HistoryClass hclass, const char *str)
Save a temporary string to the History.
Definition: history.c:662
char * mutt_hist_next(enum HistoryClass hclass)
Get the next string in a History.
Definition: history.c:523
int mutt_hist_search(const char *search_buf, enum HistoryClass hclass, char **matches)
Find matches in a history list.
Definition: history.c:409
void mutt_hist_init(void)
Create a set of empty History ring buffers.
Definition: history.c:465
bool mutt_hist_at_scratch(enum HistoryClass hclass)
Is the current History position at the 'scratch' place?
Definition: history.c:645
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
Definition: history.c:483
void mutt_hist_reset_state(enum HistoryClass hclass)
Move the 'current' position to the end of the History.
Definition: history.c:579
void mutt_hist_free(void)
Free all the history lists.
Definition: history.c:438
char * mutt_hist_prev(enum HistoryClass hclass)
Get the previous string in a History.
Definition: history.c:551
void dlg_select_history(char *buf, size_t buflen, char **matches, int match_count)
Select an item from a history list.
Definition: dlg_history.c:129
HistoryClass
Type to differentiate different histories.
Definition: lib.h:48
@ HC_MBOX
Mailboxes.
Definition: lib.h:55
@ HC_FILE
Files.
Definition: lib.h:52
@ HC_COMMAND
NeoMutt commands.
Definition: lib.h:51
@ HC_ALIAS
Aliases.
Definition: lib.h:50
@ HC_MAX
Definition: lib.h:56
@ HC_PATTERN
Patterns.
Definition: lib.h:53
@ HC_OTHER
Miscellaneous strings.
Definition: lib.h:54
@ HC_CMD
External commands.
Definition: lib.h:49