#include "command.h"
#include "keybind.h"
#include "setting.h"
+#include "completion.h"
extern const char *inputbox_font[2];
extern const char *inputbox_fg[2];
{"iunmap", command_unmap, {VP_MODE_INSERT}, VP_MODE_NORMAL},
{"cunmap", command_unmap, {VP_MODE_COMMAND}, VP_MODE_NORMAL},
{"set", command_set, {0}, VP_MODE_NORMAL},
+ {"complete", command_complete, {0}, VP_MODE_COMMAND | VP_MODE_COMPLETE},
+ {"complete-back", command_complete, {1}, VP_MODE_COMMAND | VP_MODE_COMPLETE},
};
void command_init(void)
return success;
}
+
+gboolean command_complete(const Arg* arg)
+{
+ completion_complete(arg->i ? TRUE : FALSE);
+
+ return TRUE;
+}
gboolean command_map(const Arg* arg);
gboolean command_unmap(const Arg* arg);
gboolean command_set(const Arg* arg);
+gboolean command_complete(const Arg* arg);
#endif /* end of include guard: COMMAND_H */