You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember to allow custom macros (from ~/.jq and ~/.jq/*) to be autocompleted.
My ~/.jq directory contains about 150 custom macros (~800 lines of JQ) and autocomplete would be awesome.
Example macro - actual formatting.
# Convert the input integer to a string in the specified base (2 to 36 inclusive)
def convert(base):
def stream:
recurse(if . > 0 then ./base|floor else empty end) | . % base ;
if . == 0 then "0"
else [stream] | reverse | .[1:]
| if base < 10 then map(tostring) | join("")
elif base <= 36 then map(if . < 10 then 48 + . else . + 87 end) | implode
else error("base too large")
end
end;
No description provided.
The text was updated successfully, but these errors were encountered: