diff options
author | Naïm Favier <n@monade.li> | 2021-12-22 12:37:59 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2021-12-22 16:17:01 +0100 |
commit | 1da1b2b345ccf32220a2628622ee8b170d9d521a (patch) | |
tree | 800a607ba075453c97525994a510fa1e1e4c6efc /src/libutil/args.hh | |
parent | 6e6e998930f0d7361d64644eb37d9134e74e8501 (diff) |
Don't insert spaces when completing attribute paths
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r-- | src/libutil/args.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index 7521b3065..76b1cfe92 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -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); |