2000-06-17 07:53:45 -04:00
|
|
|
#ifndef __COMPLETION_H
|
|
|
|
#define __COMPLETION_H
|
|
|
|
|
|
|
|
#include "window-items.h"
|
|
|
|
|
|
|
|
/* automatic word completion - called when space/enter is pressed */
|
|
|
|
char *auto_word_complete(const char *line, int *pos);
|
2002-02-10 05:07:12 -05:00
|
|
|
/* manual word completion - called when TAB is pressed. if erase is TRUE,
|
|
|
|
the word is removed from completion list entirely (if possible) and
|
|
|
|
next completion is used */
|
|
|
|
char *word_complete(WINDOW_REC *window, const char *line, int *pos, int erase);
|
2000-06-17 07:53:45 -04:00
|
|
|
|
2001-07-29 05:17:53 -04:00
|
|
|
GList *filename_complete(const char *path, const char *default_path);
|
2000-06-17 11:58:40 -04:00
|
|
|
|
2000-06-17 07:53:45 -04:00
|
|
|
void completion_init(void);
|
|
|
|
void completion_deinit(void);
|
|
|
|
|
|
|
|
#endif
|