1
0
Fork 0
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:
Naïm Favier 2021-12-22 12:37:59 +01:00
parent 6e6e998930
commit 1da1b2b345
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2
6 changed files with 27 additions and 9 deletions

View file

@ -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);