#shell: completions

1 messages · Page 1 of 1 (latest)

formal vault
#

@jolly sluice, when you have this:

<function1> | <function2> TAB

complete sees the type (ModType) returned by function1, but if you add -:

<function1> | <function2> -TAB

Now the context is function2 (ModFunc) so we can complete the available options.

I haven't dug deep into the inner workings here. Is there a reason for not getting the options after just a space?

jolly sluice
#

it's specifically filtered out

#

you just need to remove that condition

#

the logic was, it just felt very "full" to me if you started completing without a -

#

very vibes based, no objection to changing it

formal vault
#

I tried that yesterday but after the space I get the type from function1, not the function2 itself.

jolly sluice
#

hmmm

#

that seems like a bug then, i'm not entirely sure what's going wrong 🤔

#

i would have to look into it