yoavnir / specs2016

New version of the specs pipeline stage based on what's in current CMS pipelines
MIT License
1 stars 1 forks source link

In Linux, support tab completion of several parameters #256

Closed yoavnir closed 1 month ago

yoavnir commented 1 month ago

Specifically:

yoavnir commented 1 month ago

How it's done:

yoavnir commented 1 month ago

You want to use getFullSpecPath() to get the path, and then search using std::filesystem to get all the some of the files.

As long as we're auto-completing (for -f both from the SPECSPATH and from current directory, for -o ad -i only from current directory). But should also consider what has already been typed...

yoavnir commented 1 month ago

Maybe use this for multi-compare

std::set<std::string> e{"one", "two", "three", "five", "eight"};

Do it all lower-case and convert the prevToken to lowercase before passing it?

yoavnir commented 1 month ago

I will leave this issue open until I've verified that it works on Ubuntu 24