53 if (op == OP_EDITOR_MAILBOX_CYCLE)
64 if ((op != OP_EDITOR_COMPLETE) && (op != OP_EDITOR_COMPLETE_QUERY))
115 if (!wdata || ((op != OP_EDITOR_COMPLETE) && (op != OP_EDITOR_COMPLETE_QUERY)))
const struct CompleteOps CompleteFileOps
Auto-Completion of Files.
const struct CompleteOps CompleteMailboxOps
Auto-Completion of Files / Mailboxes.
#define MUTT_SEL_FOLDER
Select a local directory.
#define MUTT_SEL_MULTI
Multi-selection is enabled.
#define MUTT_SEL_NO_FLAGS
No flags are set.
uint8_t SelectFileFlags
Flags for mutt_select_file(), e.g. MUTT_SEL_MAILBOX.
bool buf_is_empty(const struct Buffer *buf)
Is the Buffer empty?
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
int mutt_complete(struct CompletionData *cd, struct Buffer *buf)
Attempt to complete a partial pathname.
Convenience wrapper for the core headers.
FunctionRetval
Possible return values for NeoMutt functions.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_ERROR
Valid function - error occurred.
@ FR_CONTINUE
Remain in the Dialog.
@ FR_NO_ACTION
Valid function - no action performed.
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
enum FunctionRetval complete_file_mbox(struct EnterWindowData *wdata, int op)
Complete a Mailbox - Implements CompleteOps::complete() -.
enum FunctionRetval complete_file_simple(struct EnterWindowData *wdata, int op)
Complete a filename - Implements CompleteOps::complete() -.
void dlg_browser(struct Buffer *file, SelectFileFlags flags, struct Mailbox *m, char ***files, int *numfiles)
Let the user select a file -.
Convenience wrapper for the gui headers.
Read/write command history from/to a file.
void mutt_hist_add(enum HistoryClass hclass, const char *str, bool save)
Add a string to a history.
bool mutt_mb_is_shell_char(wchar_t ch)
Is character not typically part of a pathname.
size_t mutt_mb_mbstowcs(wchar_t **pwbuf, size_t *pwbuflen, size_t i, const char *buf)
Convert a string from multibyte to wide characters.
void buf_mb_wcstombs(struct Buffer *dest, const wchar_t *wstr, size_t wlen)
Convert a string from wide to multibyte characters.
#define MUTT_MEM_REALLOC(pptr, n, type)
Convenience wrapper for the library headers.
struct Mailbox * mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s)
Incoming folders completion routine.
Mailbox helper functions.
void buf_pretty_mailbox(struct Buffer *buf)
Shorten a mailbox path using '~' or '='.
Some miscellaneous functions.
enum FunctionRetval(* complete)(struct EnterWindowData *wdata, int op)
size_t curpos
Position of the cursor.
size_t wbuflen
Length of buffer.
wchar_t * wbuf
Buffer for the string being entered.
size_t lastchar
Position of the last character.
Data to fill the Enter Window.
bool pass
Password mode, conceal characters.
void * cdata
Auto-Completion private data.
struct CompletionData * cd
Auto-completion state data.
struct Buffer * buffer
struct Buffer for the result
bool done
Is text-entry done?
bool first
First time through, no input yet.
wchar_t * tempbuf
Buffer used by completion.
struct EnterState * state
Current state of text entry.
enum HistoryClass hclass
History to use, e.g. HC_NEO_COMMAND.
size_t templen
Length of complete buffer.
Input for the file completion function.
char *** files
List of files selected.
struct Mailbox * mailbox
Mailbox.
bool multiple
Allow multiple selections.
int * numfiles
Number of files selected.