Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
q2 install_completion not working /

When I try to use install_completion, I get the following error string appended to whatever text I try and tab to complete:

date: invalid option -- 'v' Try 'date --help' for more information.

My .zshrc seems to be fine and has the correct file/directory path, it should be working well, but it isn't...thoughts?

Posted 2 years ago
0

What version of the SDK are you using? You can check with q2 inspect.

— Trey Teter   2 years ago
0

FIXED (Somewhat)

The error I kept getting wasn’t just the whole date invalid what-have-you; there was ANOTHER line:

_q2:24: bad math expression: operand expected at end of string

Given that I didn’t enter any kind of math expression, I went looking at antilles_completion.zsh

The error:
This block of code:

if [ $(uname -s) = 'Darwin' ]; then
    date -v -5M '+%s' > $LASTRUN_PATH
else
    date --date='5 minutes ago' '+%s' > $LASTRUN_PATH
fi
— Jimmy Marks   2 years ago
0

Continued from above:

I replaced that block with:

if command -v gdate &> /dev/null; then
    gdate -d '-5 minutes' '+%s' > $LASTRUN_PATH
elif command -v date &> /dev/null; then
    date -d '-5 minutes' '+%s' > $LASTRUN_PATH
else
    echo "Error: Unable to find a suitable 'date' command."
    exit 1
fi

And now completion is working as expected. Hopefully this is helpful to other folks, and if anyone has additional insight, I'm all ears.

— Jimmy Marks   2 years ago
Votes Newest

Answers


I was asked my current SDK Version: 2.205.0

Posted 2 years ago
127 Views
1 Answer
2 years ago
2 years ago