aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2021-12-22 12:37:59 +0100
committerNaïm Favier <n@monade.li>2021-12-22 16:17:01 +0100
commit1da1b2b345ccf32220a2628622ee8b170d9d521a (patch)
tree800a607ba075453c97525994a510fa1e1e4c6efc /src/libutil/args.hh
parent6e6e998930f0d7361d64644eb37d9134e74e8501 (diff)
Don't insert spaces when completing attribute paths
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r--src/libutil/args.hh8
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);