Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨

Home Page:https://rosettea.github.io/Hilbish/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confusing documentation

CapedBojji opened this issue · comments

is it possible to just show pictures of code instead of confusing explanations. The completion documentation makes no sense to me, if i want to enable custom completions, do i use the handler function or do i use the other 3 what is the purpose of the other 3. A simple image of the code and what it produces is all is needed
image
look at how simple nushell does it. thats all it takes to understand how it works

i'm working on improving the docs in #260 but i've also been doing other things irl.

to make completions for a command, here's an example:

hilbish.complete('command.animal', function(query, ctx, fields)
	local comp = {
		{
			items = {'dog', 'cat'},
			type = 'grid'
		}
	}

	return comp, query
end)

this is the bare minimum. it turns comp and the prefix, so you'll have to cut your completion string for it to work properly. if you have any suggestions on how to improve the docs that would be great, since the "confusing explanation" is still needed.