diff --git a/versions/processors/docs/completions/index.html b/versions/processors/docs/completions/index.html index 5665128..40e45c2 100644 --- a/versions/processors/docs/completions/index.html +++ b/versions/processors/docs/completions/index.html @@ -28,7 +28,35 @@ Example:

13return {cg, cg2}, prefix
 

Which looks like this:

Completion Handler +Well here is the URL: https://safe.saya.moe/t4CiLK6dgPbD.mp4

Completion Group Types +

grid +

Grid is the simplest completion group type. All items are strings and when +completion is done is displayed in a grid based on size.

Example:

1{
+2	items = {'just', 'a bunch', 'of items', 'here', 'hehe'},
+3	type = 'grid'
+4}
+

list +

The list completion group type displays in a list. A list item can either be a string, or a table for additional display options. +A completion alias can be specified either as the 2nd entry in the options table +or te alias key.

A description can optionally be displayed for a list item, which is either the 1st +entry or the description key.

Lastly, list entries can be styled. This is done with the display key. If this is present, this +overrides what the completion item looks like.

Example:

 1{
+ 2	items = {
+ 3		['--flag'] = {
+ 4			description = 'this flag nukes the bri ish',
+ 5			alias = '--bye-bri-ish',
+ 6			display = lunacolors.format('--{blue}fl{red}ag')
+ 7		},
+ 8		['--flag2'] = {
+ 9			'make pizza', -- description
+10			'--pizzuh', -- alias
+11			display = lunacolors.yellow '--pizzuh'
+12		},
+13		'--flag3'
+14	},
+15	type = 'list'
+16}
+

Completion Handler

Like most parts of Hilbish, it’s made to be extensible and customizable. The default handler for completions in general can be overwritten to provide more advanced completions if needed. diff --git a/versions/processors/docs/lunacolors/index.html b/versions/processors/docs/lunacolors/index.html index 1e3542a..cc8683f 100644 --- a/versions/processors/docs/lunacolors/index.html +++ b/versions/processors/docs/lunacolors/index.html @@ -12,9 +12,8 @@ you can just use lunacolors.blue 'Hello world' and that’ll re blue text which you can print. This includes styles like bold, underline, etc.

In other usage, you may want to use a format string instead of having multiple nested functions for different styles. This is where the format -function comes in. You can used named keywords to style a section of text.

The list of arguments are: -Colors:

For the colors, there are background and bright variants. The background -color variants have a suffix of Bg and bright has a prefix of bright. -Note that appropriate camel casing has to be applied to them. So bright -blue would be brightBlue and background cyan would be cyanBg.

\ No newline at end of file +function comes in. You can used named keywords to style a section of text.

The list of arguments are:
Colors:

Styles:

For the colors, there are background and bright variants. Background color +variants have a Bg suffix, while bright variants use the bright prefix. +These can also be combined. Note that appropriate camel casing must be applied. +For example, bright blue would be written as brightBlue, a cyan background as +cyanBg, and combining them would result in brightBlueBg.

\ No newline at end of file