mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Some work to allow completions to be evaluated off of the main thread
This commit is contained in:
11
complete.h
11
complete.h
@@ -148,6 +148,10 @@ class completion_t
|
||||
bool operator != (const completion_t& rhs) const { return ! (*this == rhs); }
|
||||
};
|
||||
|
||||
enum complete_type_t {
|
||||
COMPLETE_DEFAULT,
|
||||
COMPLETE_AUTOSUGGEST
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -218,10 +222,9 @@ void complete_remove( const wchar_t *cmd,
|
||||
wchar_t short_opt,
|
||||
const wchar_t *long_opt );
|
||||
|
||||
/**
|
||||
Find all completions of the command cmd, insert them into out.
|
||||
*/
|
||||
void complete( const wchar_t* cmd, std::vector<completion_t> &out);
|
||||
|
||||
/** Find all completions of the command cmd, insert them into out. */
|
||||
void complete( const wchar_t* cmd, std::vector<completion_t> &out, complete_type_t type);
|
||||
|
||||
/**
|
||||
Print a list of all current completions into the string_buffer_t.
|
||||
|
||||
Reference in New Issue
Block a user