Auto-completion. More...
Go to the source code of this file.
Functions | |
int | mutt_command_complete (struct CompletionData *cd, char *buf, size_t buflen, int pos, int numtabs) |
Complete a command name. More... | |
int | mutt_complete (struct CompletionData *cd, char *buf, size_t buflen) |
Attempt to complete a partial pathname. More... | |
int | mutt_label_complete (struct CompletionData *cd, char *buf, size_t buflen, int numtabs) |
Complete a label name. More... | |
bool | mutt_nm_query_complete (struct CompletionData *cd, char *buf, size_t buflen, int pos, int numtabs) |
Complete to the nearest notmuch tag. More... | |
bool | mutt_nm_tag_complete (struct CompletionData *cd, char *buf, size_t buflen, int numtabs) |
Complete to the nearest notmuch tag. More... | |
int | mutt_var_value_complete (struct CompletionData *cd, char *buf, size_t buflen, int pos) |
Complete a variable/value. More... | |
Auto-completion.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
int mutt_command_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen, | ||
int | pos, | ||
int | numtabs | ||
) |
Complete a command name.
cd | Completion Data |
buf | Buffer for the result |
buflen | Length of the buffer |
pos | Cursor position in the buffer |
numtabs | Number of times the user has hit 'tab' |
1 | Success, a match |
0 | Error, no match |
Definition at line 164 of file helpers.c.
int mutt_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen | ||
) |
Attempt to complete a partial pathname.
cd | Completion Data |
buf | Buffer containing pathname |
buflen | Length of buffer |
0 | Ok |
-1 | No matches |
Given a partial pathname, fill in as much of the rest of the path as is unique.
Definition at line 58 of file complete.c.
int mutt_label_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen, | ||
int | numtabs | ||
) |
Complete a label name.
cd | Completion Data |
buf | Buffer for the result |
buflen | Length of the buffer |
numtabs | Number of times the user has hit 'tab' |
1 | Success, a match |
0 | Error, no match |
Definition at line 368 of file helpers.c.
bool mutt_nm_query_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen, | ||
int | pos, | ||
int | numtabs | ||
) |
Complete to the nearest notmuch tag.
cd | Completion Data |
buf | Buffer for the result |
buflen | Length of the buffer |
pos | Cursor position in the buffer |
numtabs | Number of times the user has hit 'tab' |
true | Success, a match |
false | Error, no match |
Complete the nearest "tag:"-prefixed string previous to pos.
Definition at line 437 of file helpers.c.
bool mutt_nm_tag_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen, | ||
int | numtabs | ||
) |
Complete to the nearest notmuch tag.
cd | Completion Data |
buf | Buffer for the result |
buflen | Length of the buffer |
numtabs | Number of times the user has hit 'tab' |
true | Success, a match |
false | Error, no match |
Complete the nearest "+" or "-" -prefixed string previous to pos.
Definition at line 501 of file helpers.c.
int mutt_var_value_complete | ( | struct CompletionData * | cd, |
char * | buf, | ||
size_t | buflen, | ||
int | pos | ||
) |
Complete a variable/value.
cd | Completion Data |
buf | Buffer for the result |
buflen | Length of the buffer |
pos | Cursor position in the buffer |
1 | Success |
0 | Failure |
Definition at line 560 of file helpers.c.