xtendo-org / chips

A fast, lightweight, and concurrent plugin manager for the fish shell, written in Haskell
73 stars 3 forks source link

chips shell autocompletion #9

Closed jmelfi closed 8 years ago

jmelfi commented 8 years ago

Would this lib be useful in getting autocompletion of commands?

The example for this being typing chips and then hitting [TAB] would then give a prompt out to the shell for the commands available. This would in theory also allow if you type chips l to autocomplete to chips list or to give the possible commands from the query.

https://github.com/mbrubeck/compleat

Just found this project and looks awesome. Great that this is a binary distribution.

xtendo-org commented 8 years ago

Thank you.

Well, if I understood correctly, "autocompletion" is useful for autocompleting subcommands and command line options, isn't it?

chips doesn't have any subcommand or command line options.

:open_mouth: what?!

This is a design philosophy; instead of imperative commands like chips install or chips remove or chips update, chips keeps a declarative configuration file that describes the desired state. The chips command then tries to sync the system to the described state, like which plugin is installed and which isn't.

By the way, "compleat" looks pretty cool. I guess it's written in Haskell too? Awesome.

simnalamburt commented 8 years ago

@bucaran Let me help you out.

but lacking completions for even chip's own commands it's just laziness or not really understanding how fish works.

"chips doesn't have any subcommand or command line options." means, there is no subcommand to autocomplete. Are you hoping to provoke a fight with @kinoru or not really understanding how command line works?

Issue tracker is not appropriate place to either advertise your own work or derogate other people's work. Further spamming will be reported as abuse. Thanks.

jmelfi commented 8 years ago

@kinoru thank you for the details on that.

since chips is a utility to keep the plugins in sync it then doesn't need subcommands due to the declarative nature.

It's simpler to need to just integrate autocompletion in the plugin for fish shell and let chips maintain the desired state. This cleared up how this tool is structured and intended for use. This is a really awesome tool and love the binary setup and distribution. Thanks for publishing this.