mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Don't insert spaces when completing attribute paths
This commit is contained in:
parent
6e6e998930
commit
1da1b2b345
6 changed files with 27 additions and 9 deletions
|
@ -237,7 +237,13 @@ public:
|
|||
void add(std::string completion, std::string description = "");
|
||||
};
|
||||
extern std::shared_ptr<Completions> completions;
|
||||
extern bool pathCompletions;
|
||||
|
||||
enum CompletionType {
|
||||
ctNormal,
|
||||
ctFilenames,
|
||||
ctAttrs
|
||||
};
|
||||
extern CompletionType completionType;
|
||||
|
||||
std::optional<std::string> needsCompletion(std::string_view s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue