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_COMPLETE_LIB_H
37#define MUTT_COMPLETE_LIB_H
38
39#include <stdbool.h>
40#include <stddef.h>
41// IWYU pragma: begin_keep
42#include "compapi.h"
43#include "data.h"
44// IWYU pragma: end_keep
45
46struct Buffer;
47
48extern const struct CompleteOps CompleteCommandOps;
49extern const struct CompleteOps CompleteLabelOps;
50
51int mutt_command_complete (struct CompletionData *cd, struct Buffer *buf, int pos, int numtabs);
52int mutt_complete (struct CompletionData *cd, struct Buffer *buf);
53int mutt_label_complete (struct CompletionData *cd, struct Buffer *buf, int numtabs);
54bool mutt_nm_query_complete (struct CompletionData *cd, struct Buffer *buf, int numtabs);
55bool mutt_nm_tag_complete (struct CompletionData *cd, struct Buffer *buf, int numtabs);
56int mutt_var_value_complete(struct CompletionData *cd, struct Buffer *buf, int pos);
57void matches_ensure_morespace(struct CompletionData *cd, int new_size);
58bool candidate (struct CompletionData *cd, char *user, const char *src, char *dest, size_t dlen);
59
60#endif /* MUTT_COMPLETE_LIB_H */
API Auto-Completion.
int mutt_var_value_complete(struct CompletionData *cd, struct Buffer *buf, int pos)
Complete a variable/value.
Definition: helpers.c:373
void matches_ensure_morespace(struct CompletionData *cd, int new_size)
Allocate more space for auto-completion.
Definition: helpers.c:54
int mutt_label_complete(struct CompletionData *cd, struct Buffer *buf, int numtabs)
Complete a label name.
Definition: helpers.c:311
int mutt_complete(struct CompletionData *cd, struct Buffer *buf)
Attempt to complete a partial pathname.
Definition: complete.c:57
int mutt_command_complete(struct CompletionData *cd, struct Buffer *buf, int pos, int numtabs)
Complete a command name.
Definition: helpers.c:112
const struct CompleteOps CompleteLabelOps
Auto-Completion of Labels.
Definition: helpers.c:484
bool mutt_nm_query_complete(struct CompletionData *cd, struct Buffer *buf, int numtabs)
Complete to the nearest notmuch tag.
Definition: complete.c:101
bool mutt_nm_tag_complete(struct CompletionData *cd, struct Buffer *buf, int numtabs)
Complete to the nearest notmuch tag.
Definition: complete.c:161
const struct CompleteOps CompleteCommandOps
Auto-Completion of Commands.
Definition: helpers.c:477
bool candidate(struct CompletionData *cd, char *user, const char *src, char *dest, size_t dlen)
Helper function for completion.
Definition: helpers.c:78
String auto-completion data.
String manipulation buffer.
Definition: buffer.h:36
State data for auto-completion.
Definition: data.h:33