#zsh gleam completions

1 messages · Page 1 of 1 (latest)

coral star
atomic sinew
#

oooh! So glad I switched to zsh last week heheh

coral star
#

wohoo

drifting swan
#

this will be yet another tool i will start using because of the Jak...

unreal zinc
#

should've been fish despair

#

(although nice work jak pink_hearts )

plush depot
#

Is there a reason the Gleam binary doesn't have completions already? Believe there's a crate that can do it for clap 👀

coral star
#

No idea how that would work

plush depot
#

It's pretty common for CLI frameworks to include completion stuff

prime sage
#

Some cli:s have a cli-flag/command that will spit out a completion script for you

wheat pecan
tribal latch
glossy oriole
#

Didn't someone already do fish completions for Gleam?

plucky root
coral star
#

TIL

#

How does that work?

plucky root
#

the plugin managers take care of downloading it and the .plugin.zsh tells zsh how and what to source / adds path vars n such

${0:A:h} in zsh-completion's version is just a funky pwd from what i can tell

coral star
#

So a plugin manager can download it from a git repo? How would one tell it to do that?

plucky root
#

in my case id just add it right here

coral star
#

Aha ok I see

#

That's cool I'll add it

coral star
#

Done! Let me know if I messed something up

plucky root
#

seems to work AG_Yesyes

coral star
#

Nice!

plucky root
#

i love that it just works with fzf-tab as well (this was to be expectedd but i still get excited every time it does)

#

(the run -m build is an auto suggestion)

coral star
#

Ah that's cool

atomic sinew
#

yesh it do

#

thamk youuuuu

plucky root
#

thank you indeed livLove

uncut cave