Bait is the event emitter for Hilbish. Much like Node.js and
its events system, many actions in Hilbish emit events.
Unlike Node.js, Hilbish events are global. So make sure to
diff --git a/versions/snail/docs/api/commander/index.html b/versions/snail/docs/api/commander/index.html
index 93c4fba..6b630f4 100644
--- a/versions/snail/docs/api/commander/index.html
+++ b/versions/snail/docs/api/commander/index.html
@@ -1,7 +1,7 @@
Commander is the library which handles Hilbish commands. This makes
the user able to add Lua-written commands to their shell without making
a separate script in a bin folder. Instead, you may simply use the Commander
diff --git a/versions/snail/docs/api/fs/index.html b/versions/snail/docs/api/fs/index.html
index 04a800e..7cb34cd 100644
--- a/versions/snail/docs/api/fs/index.html
+++ b/versions/snail/docs/api/fs/index.html
@@ -1,7 +1,7 @@
The fs module provides filesystem functions to Hilbish. While Lua’s standard
library has some I/O functions, they’re missing a lot of the basics. The fs
library offers more functions and will work on any operating system Hilbish does.
The messages interface defines a way for Hilbish-integrated commands,
user config and other tasks to send notifications to alert the user.z
The hilbish.message type is a table with the following keys:
diff --git a/versions/snail/docs/api/hilbish/hilbish.module/index.html b/versions/snail/docs/api/hilbish/hilbish.module/index.html
index be51361..58eabf4 100644
--- a/versions/snail/docs/api/hilbish/hilbish.module/index.html
+++ b/versions/snail/docs/api/hilbish/hilbish.module/index.html
@@ -1,7 +1,7 @@
The hilbish.module interface provides a function to load
Hilbish plugins/modules. Hilbish modules are Go-written
plugins (see https://pkg.go.dev/plugin
diff --git a/versions/snail/docs/api/hilbish/hilbish.runner/index.html b/versions/snail/docs/api/hilbish/hilbish.runner/index.html
index 787aeb9..27f33c6 100644
--- a/versions/snail/docs/api/hilbish/hilbish.runner/index.html
+++ b/versions/snail/docs/api/hilbish/hilbish.runner/index.html
@@ -1,7 +1,7 @@
The runner interface contains functions that allow the user to change
how Hilbish interprets interactive input.
Users can add and change the default runner for interactive input to any
diff --git a/versions/snail/docs/api/hilbish/hilbish.timers/index.html b/versions/snail/docs/api/hilbish/hilbish.timers/index.html
index 291738a..7862131 100644
--- a/versions/snail/docs/api/hilbish/hilbish.timers/index.html
+++ b/versions/snail/docs/api/hilbish/hilbish.timers/index.html
@@ -1,7 +1,7 @@
If you ever want to run a piece of code on a timed interval, or want to wait
a few seconds, you don’t have to rely on timing tricks, as Hilbish has a
timer API to set intervals and timeouts.
These are the simple functions hilbish.interval and hilbish.timeout (doc
diff --git a/versions/snail/docs/api/hilbish/hilbish.userdir/index.html b/versions/snail/docs/api/hilbish/hilbish.userdir/index.html
index 47768f8..0b7c170 100644
--- a/versions/snail/docs/api/hilbish/hilbish.userdir/index.html
+++ b/versions/snail/docs/api/hilbish/hilbish.userdir/index.html
@@ -1,7 +1,7 @@
This interface just contains properties to know about certain user directories.
It is equivalent to XDG on Linux and gets the user’s preferred directories
for configs and data.
Static module fields
@@ -127,7 +127,7 @@ As a table, the caller can directly specify the standard output, error, and inpu
streams of the command with the table keys out, err, and input respectively.
As a boolean, it specifies whether the command should use standard output or return its output streams.
Parameters
cmdstring
streamstable|boolean
Example
-
1Thiscodeisthesameas`ls-l|wc-l`
+
1-- This code is the same as `ls -l | wc -l` 2localfs=require'fs' 3localpr,pw=fs.pipe() 4hilbish.run('ls -l',{
diff --git a/versions/snail/docs/api/hilbish/index.xml b/versions/snail/docs/api/hilbish/index.xml
index b6b861e..a24eb93 100644
--- a/versions/snail/docs/api/hilbish/index.xml
+++ b/versions/snail/docs/api/hilbish/index.xml
@@ -2,8 +2,11 @@
Functions add(alias, cmd) This is an alias (ha) for the hilbish.alias function. delete(name) Removes an alias. list() -> table[string, string] Get a table of all aliases, with string keys as the alias and the value as the command. resolve(alias) -> string? Resolves an alias to its original command. Will thrown an error if the alias doesn’t exist. hilbish.aliases.add(alias, cmd) This is an alias (ha) for the hilbish.Module hilbish.completionhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/Introduction The completions interface deals with tab completions.
Functions bins(query, ctx, fields) -> entries (table), prefix (string) Return binaries/executables based on the provided parameters. call(name, query, ctx, fields) -> completionGroups (table), prefix (string) Calls a completer function. This is mainly used to call a command completer, which will have a name files(query, ctx, fields) -> entries (table), prefix (string) Returns file matches based on the provided parameters. handler(line, pos) This function contains the general completion handler for Hilbish.Module hilbish.editorhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/Introduction The hilbish.editor interface provides functions to directly interact with the line editor in use.
Functions getLine() -> string Returns the current input line. getVimRegister(register) -> string Returns the text that is at the register. insert(text) Inserts text into the Hilbish command line. getChar() -> string Reads a keystroke from the user. This is in a format of something like Ctrl-L. setVimRegister(register, text) Sets the vim register at register to hold the passed text.Module hilbish.historyhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/Introduction The history interface deals with command history. This includes the ability to override functions to change the main method of saving history.
-Functions add(cmd) Adds a command to the history. all() -> table Retrieves all history as a table. clear() Deletes all commands from the history. get(index) Retrieves a command from the history based on the index. size() -> number Returns the amount of commands in the history. hilbish.Module hilbish.messageshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Introduction The messages interface defines a way for Hilbish-integrated commands, user config and other tasks to send notifications to alert the user.z The hilbish.message type is a table with the following keys: title (string): A title for the message notification. text (string): The contents of the message. channel (string): States the origin of the message, hilbish.* is reserved for Hilbish tasks. summary (string): A short summary of the text. icon (string): Unicode (preferably standard emoji) icon for the message notification read (boolean): Whether the full message has been read or not.Module hilbish.modulehttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Introduction The hilbish.module interface provides a function to load Hilbish plugins/modules. Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin ) that are used to add functionality to Hilbish that cannot be written in Lua for any reason.
-Note that you don’t ever need to use the load function that is here as modules can be loaded with a require call like Lua C modules, and the search paths can be changed with the paths property here.Module hilbish.runnerhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Introduction The runner interface contains functions that allow the user to change how Hilbish interprets interactive input. Users can add and change the default runner for interactive input to any language or script of their choosing. A good example is using it to write command in Fennel.
+Functions add(cmd) Adds a command to the history. all() -> table Retrieves all history as a table. clear() Deletes all commands from the history. get(index) Retrieves a command from the history based on the index. size() -> number Returns the amount of commands in the history. hilbish.Module hilbish.jobshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.jobs/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.jobs/Introduction Manage interactive jobs in Hilbish via Lua.
+Jobs are the name of background tasks/commands. A job can be started via interactive usage or with the functions defined below for use in external runners.
+Functions add(cmdstr, args, execPath) Creates a new job. This function does not run the job. This function is intended to be all() -> table[@Job] Returns a table of all job objects. disown(id) Disowns a job. This simply deletes it from the list of jobs without stopping it.Module hilbish.messageshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Introduction The messages interface defines a way for Hilbish-integrated commands, user config and other tasks to send notifications to alert the user.z The hilbish.message type is a table with the following keys: title (string): A title for the message notification. text (string): The contents of the message. channel (string): States the origin of the message, hilbish.* is reserved for Hilbish tasks. summary (string): A short summary of the text. icon (string): Unicode (preferably standard emoji) icon for the message notification read (boolean): Whether the full message has been read or not.Module hilbish.modulehttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Introduction The hilbish.module interface provides a function to load Hilbish plugins/modules. Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin ) that are used to add functionality to Hilbish that cannot be written in Lua for any reason.
+Note that you don’t ever need to use the load function that is here as modules can be loaded with a require call like Lua C modules, and the search paths can be changed with the paths property here.Module hilbish.oshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.os/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.os/ Introduction Provides simple text information properties about the current operating system. This mainly includes the name and version.
+Static module fields family Family name of the current OS name Pretty name of the current OS version Version of the current OSModule hilbish.runnerhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Introduction The runner interface contains functions that allow the user to change how Hilbish interprets interactive input. Users can add and change the default runner for interactive input to any language or script of their choosing. A good example is using it to write command in Fennel.
Runners are functions that evaluate user input. The default runners in Hilbish can run shell script and Lua code.
A runner is passed the input and has to return a table with these values.Module hilbish.timershttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/Introduction If you ever want to run a piece of code on a timed interval, or want to wait a few seconds, you don’t have to rely on timing tricks, as Hilbish has a timer API to set intervals and timeouts.
These are the simple functions hilbish.interval and hilbish.timeout (doc accessible with doc hilbish, or Module hilbish on the Website).
diff --git a/versions/snail/docs/api/index.html b/versions/snail/docs/api/index.html
index 90b8de3..01492dd 100644
--- a/versions/snail/docs/api/index.html
+++ b/versions/snail/docs/api/index.html
@@ -1,5 +1,5 @@
API — Hilbish
The snail library houses Hilbish’s Lua wrapper of its shell script interpreter.
It’s not very useful other than running shell scripts, which can be done with other
Hilbish functions.
Completions for commands can be created with the hilbish.complete
function. See the link for how to use it.
To create completions for a command is simple.
The callback will be passed 3 parameters:
query (string): The text that the user is currently trying to complete.
This should be used to match entries.
ctx (string): Contains the entire line. Use this if
diff --git a/versions/snail/docs/faq/index.html b/versions/snail/docs/faq/index.html
index 43befb0..5022cd4 100644
--- a/versions/snail/docs/faq/index.html
+++ b/versions/snail/docs/faq/index.html
@@ -5,7 +5,7 @@ Windows Support? It compiles for Windows (CI ensures it does), but otherwise it
Why? Hilbish emerged from the desire of a Lua configured shell." name=description>
No, it is not. POSIX compliance is a non-goal. Perhaps in the future,
someone would be able to write a native plugin to support shell scripting
(which would be against it’s main goal, but ….)
Windows Support?
diff --git a/versions/snail/docs/features/index.html b/versions/snail/docs/features/index.html
index 3b6013a..ec9ab79 100644
--- a/versions/snail/docs/features/index.html
+++ b/versions/snail/docs/features/index.html
@@ -1,7 +1,7 @@
Features — Hilbish
Hilbish has a wide range of features to enhance the user’s experience
new ones are always being added. If there is something missing here or
something you would like to see, please start a discussion
or comment on any existing ones which match your request.
\ No newline at end of file
diff --git a/versions/snail/docs/features/notifications/index.html b/versions/snail/docs/features/notifications/index.html
index aa269f3..d7ff2f7 100644
--- a/versions/snail/docs/features/notifications/index.html
+++ b/versions/snail/docs/features/notifications/index.html
@@ -1,7 +1,7 @@
Notification — Hilbish
Last updated Dec 26, 2023 Get notified of shell actions.
Hilbish features a simple notification system which can be
used by other plugins and parts of the shell to notify the user
of various actions. This is used via the hilbish.message interface.
A message is defined as a table with the following properties:
icon: A unicode/emoji icon for the notification.
title: The title of the message
text: Message text/body
channel: The source of the message. This should be a
unique and easily readable text identifier.
summary: A short summary of the notification and message.
diff --git a/versions/snail/docs/features/opts/index.html b/versions/snail/docs/features/opts/index.html
index 39b0232..3be82f9 100644
--- a/versions/snail/docs/features/opts/index.html
+++ b/versions/snail/docs/features/opts/index.html
@@ -1,7 +1,7 @@
Options — Hilbish
Opts are simple toggle or value options a user can set in Hilbish.
As toggles, there are things like autocd or history saving. As values,
there is the motd which the user can either change to a custom string or disable.
Opts are accessed from the hilbish.opts table. Here they can either
be read or modified
Last updated Dec 26, 2023 Customize the interactive script/command runner.
Hilbish allows you to change how interactive text can be interpreted.
This is mainly due to the fact that the default method Hilbish uses
is that it runs Lua first and then falls back to shell script.
In some cases, someone might want to switch to just shell script to avoid
it while interactive but still have a Lua config, or go full Lua to use
diff --git a/versions/snail/docs/getting-started/index.html b/versions/snail/docs/getting-started/index.html
index fdeb145..e489b98 100644
--- a/versions/snail/docs/getting-started/index.html
+++ b/versions/snail/docs/getting-started/index.html
@@ -3,7 +3,7 @@ Setting as Default Login shell There are a few ways to make Hilbish your default
Setting as Default Login shell There are a few ways to make Hilbish your default shell. A simple way is to make it your user/login shell." name=description>
To start Hilbish, open a terminal. If Hilbish has been installed and is not the
default shell, you can simply run hilbish to start it. This will launch
a normal interactive session.
To exit, you can either run the exit command or hit Ctrl+D.
Setting as Default
diff --git a/versions/snail/docs/hooks/command/index.html b/versions/snail/docs/hooks/command/index.html
index 5ba2a28..5da4e53 100644
--- a/versions/snail/docs/hooks/command/index.html
+++ b/versions/snail/docs/hooks/command/index.html
@@ -19,7 +19,7 @@ string cmdStr
The command or code that was executed" name=description>
stringinput The raw string that the user typed. This will include the text
without changes applied to it (argument substitution, alias expansion,
diff --git a/versions/snail/docs/hooks/hilbish/index.html b/versions/snail/docs/hooks/hilbish/index.html
index a837a2e..155b111 100644
--- a/versions/snail/docs/hooks/hilbish/index.html
+++ b/versions/snail/docs/hooks/hilbish/index.html
@@ -11,7 +11,7 @@ The mode that has been set. Can be these values: insert, normal, delete or repla
hilbish.cancel Sent when the user cancels their command input with Ctrl-C" name=description>
Sent when the Vim mode of Hilbish is changed (like from insert to normal mode).
diff --git a/versions/snail/docs/hooks/index.html b/versions/snail/docs/hooks/index.html
index 487be7f..c48c4be 100644
--- a/versions/snail/docs/hooks/index.html
+++ b/versions/snail/docs/hooks/index.html
@@ -1,6 +1,6 @@
Signals are global events emitted with the Bait
module.
For more detail on how to use these signals, you may check the Bait page.
\ No newline at end of file
diff --git a/versions/snail/docs/hooks/signal/index.html b/versions/snail/docs/hooks/signal/index.html
index 3a43bf8..f8aba2f 100644
--- a/versions/snail/docs/hooks/signal/index.html
+++ b/versions/snail/docs/hooks/signal/index.html
@@ -15,7 +15,7 @@ signal.sigusr2 Thrown when SIGUSR2 is sent to Hilbish.
Variables This signal returns no variables." name=description>
Thrown when Hilbish receive the SIGINT signal,
aka when Ctrl-C is pressed.
Variables
This signal returns no variables.
signal.resize
diff --git a/versions/snail/docs/index.html b/versions/snail/docs/index.html
index 23dd3f5..5210957 100644
--- a/versions/snail/docs/index.html
+++ b/versions/snail/docs/index.html
@@ -3,7 +3,7 @@ Here documents some of the features of Hilbish and the Lua API." property="og:de
Here documents some of the features of Hilbish and the Lua API." name=description>
Hilbish is a hyper-extensible shell mainly intended for interactive use.
To enhance the interactive experience, Hilbish comes with a wide range
of features and sane defaults, including a nice looking prompt,
advanced completion menus and history search.
Here documents some of the features of Hilbish and the Lua API.
\ No newline at end of file
diff --git a/versions/snail/docs/lunacolors/index.html b/versions/snail/docs/lunacolors/index.html
index afe9ce2..81b96e9 100644
--- a/versions/snail/docs/lunacolors/index.html
+++ b/versions/snail/docs/lunacolors/index.html
@@ -5,7 +5,7 @@ For simple usage, a single color or style is enough. For example, you can just u
In other usage, you may want to use a format string instead of having multiple nested functions for different styles." name=description>
Lunacolors is an ANSI color/styling library for Lua. It is included
by default in standard Hilbish distributions to provide easy styling
for things like prompts and text.
For simple usage, a single color or style is enough. For example,
you can just use lunacolors.blue 'Hello world' and that’ll return
diff --git a/versions/snail/docs/nature/dirs/index.html b/versions/snail/docs/nature/dirs/index.html
index 944ded2..cbea61a 100644
--- a/versions/snail/docs/nature/dirs/index.html
+++ b/versions/snail/docs/nature/dirs/index.html
@@ -1,7 +1,7 @@
The doc module contains a small set of functions
used by the Greenhouse pager to render parts of the documentation pages.
This is only documented for the sake of it. It’s only intended use
diff --git a/versions/snail/docs/nature/index.html b/versions/snail/docs/nature/index.html
index 58101c1..9722774 100644
--- a/versions/snail/docs/nature/index.html
+++ b/versions/snail/docs/nature/index.html
@@ -5,7 +5,7 @@ Hilbish’s Lua core module is called nature. It runs after Hilbish’s
Nature Modules Currently, nature provides 1 intended public module: nature.dirs. It is a simple API for managing recent directories and old current working directory." name=description>
A bit after creation, we have the outside nature. Little plants, seeds,
growing to their final phase: a full plant. A lot of Hilbish itself is
written in Go, but there are parts made in Lua, being most builtins
(doc, cd, cdr), completions, and other things.
Hilbish’s Lua core module is called nature.
diff --git a/versions/snail/docs/vim-mode/actions/index.html b/versions/snail/docs/vim-mode/actions/index.html
index fc323ca..4ed1836 100644
--- a/versions/snail/docs/vim-mode/actions/index.html
+++ b/versions/snail/docs/vim-mode/actions/index.html
@@ -5,7 +5,7 @@ The hilbish.vimAction hook is thrown whenever a Vim action occurs. It passes 2 a
Here is documentation for what the table of args will hold for an appropriate Vim action." name=description>
Vim actions are essentially just when a user uses a Vim keybind.
Things like yanking and pasting are Vim actions.
This is not an “offical Vim thing,” just a Hilbish thing.
The hilbish.vimAction hook is thrown whenever a Vim action occurs.
It passes 2 arguments: the action name, and an array (table) of args
diff --git a/versions/snail/docs/vim-mode/index.html b/versions/snail/docs/vim-mode/index.html
index e3397eb..6240d38 100644
--- a/versions/snail/docs/vim-mode/index.html
+++ b/versions/snail/docs/vim-mode/index.html
@@ -3,5 +3,5 @@ This is documentation for everything relating to it." property="og:description">
This is documentation for everything relating to it." name=description>
Hilbish has a Vim binding input mode accessible for use.
It can be enabled with the hilbish.inputMode function (check doc hilbish).
This is documentation for everything relating to it.
\ No newline at end of file
diff --git a/versions/snail/index.xml b/versions/snail/index.xml
index b347f5c..65f9fc5 100644
--- a/versions/snail/index.xml
+++ b/versions/snail/index.xml
@@ -52,8 +52,11 @@ Functions abs(path) -> string Returns an absolute version of the path. ba
Functions add(alias, cmd) This is an alias (ha) for the hilbish.alias function. delete(name) Removes an alias. list() -> table[string, string] Get a table of all aliases, with string keys as the alias and the value as the command. resolve(alias) -> string? Resolves an alias to its original command. Will thrown an error if the alias doesn’t exist. hilbish.aliases.add(alias, cmd) This is an alias (ha) for the hilbish.Module hilbish.completionhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/Introduction The completions interface deals with tab completions.
Functions bins(query, ctx, fields) -> entries (table), prefix (string) Return binaries/executables based on the provided parameters. call(name, query, ctx, fields) -> completionGroups (table), prefix (string) Calls a completer function. This is mainly used to call a command completer, which will have a name files(query, ctx, fields) -> entries (table), prefix (string) Returns file matches based on the provided parameters. handler(line, pos) This function contains the general completion handler for Hilbish.Module hilbish.editorhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/Introduction The hilbish.editor interface provides functions to directly interact with the line editor in use.
Functions getLine() -> string Returns the current input line. getVimRegister(register) -> string Returns the text that is at the register. insert(text) Inserts text into the Hilbish command line. getChar() -> string Reads a keystroke from the user. This is in a format of something like Ctrl-L. setVimRegister(register, text) Sets the vim register at register to hold the passed text.Module hilbish.historyhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/Introduction The history interface deals with command history. This includes the ability to override functions to change the main method of saving history.
-Functions add(cmd) Adds a command to the history. all() -> table Retrieves all history as a table. clear() Deletes all commands from the history. get(index) Retrieves a command from the history based on the index. size() -> number Returns the amount of commands in the history. hilbish.Module hilbish.messageshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Introduction The messages interface defines a way for Hilbish-integrated commands, user config and other tasks to send notifications to alert the user.z The hilbish.message type is a table with the following keys: title (string): A title for the message notification. text (string): The contents of the message. channel (string): States the origin of the message, hilbish.* is reserved for Hilbish tasks. summary (string): A short summary of the text. icon (string): Unicode (preferably standard emoji) icon for the message notification read (boolean): Whether the full message has been read or not.Module hilbish.modulehttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Introduction The hilbish.module interface provides a function to load Hilbish plugins/modules. Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin ) that are used to add functionality to Hilbish that cannot be written in Lua for any reason.
-Note that you don’t ever need to use the load function that is here as modules can be loaded with a require call like Lua C modules, and the search paths can be changed with the paths property here.Module hilbish.runnerhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Introduction The runner interface contains functions that allow the user to change how Hilbish interprets interactive input. Users can add and change the default runner for interactive input to any language or script of their choosing. A good example is using it to write command in Fennel.
+Functions add(cmd) Adds a command to the history. all() -> table Retrieves all history as a table. clear() Deletes all commands from the history. get(index) Retrieves a command from the history based on the index. size() -> number Returns the amount of commands in the history. hilbish.Module hilbish.jobshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.jobs/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.jobs/Introduction Manage interactive jobs in Hilbish via Lua.
+Jobs are the name of background tasks/commands. A job can be started via interactive usage or with the functions defined below for use in external runners.
+Functions add(cmdstr, args, execPath) Creates a new job. This function does not run the job. This function is intended to be all() -> table[@Job] Returns a table of all job objects. disown(id) Disowns a job. This simply deletes it from the list of jobs without stopping it.Module hilbish.messageshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/Introduction The messages interface defines a way for Hilbish-integrated commands, user config and other tasks to send notifications to alert the user.z The hilbish.message type is a table with the following keys: title (string): A title for the message notification. text (string): The contents of the message. channel (string): States the origin of the message, hilbish.* is reserved for Hilbish tasks. summary (string): A short summary of the text. icon (string): Unicode (preferably standard emoji) icon for the message notification read (boolean): Whether the full message has been read or not.Module hilbish.modulehttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/Introduction The hilbish.module interface provides a function to load Hilbish plugins/modules. Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin ) that are used to add functionality to Hilbish that cannot be written in Lua for any reason.
+Note that you don’t ever need to use the load function that is here as modules can be loaded with a require call like Lua C modules, and the search paths can be changed with the paths property here.Module hilbish.oshttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.os/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.os/ Introduction Provides simple text information properties about the current operating system. This mainly includes the name and version.
+Static module fields family Family name of the current OS name Pretty name of the current OS version Version of the current OSModule hilbish.runnerhttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/Introduction The runner interface contains functions that allow the user to change how Hilbish interprets interactive input. Users can add and change the default runner for interactive input to any language or script of their choosing. A good example is using it to write command in Fennel.
Runners are functions that evaluate user input. The default runners in Hilbish can run shell script and Lua code.
A runner is passed the input and has to return a table with these values.Module hilbish.timershttps://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/Mon, 01 Jan 0001 00:00:00 +0000https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/Introduction If you ever want to run a piece of code on a timed interval, or want to wait a few seconds, you don’t have to rely on timing tricks, as Hilbish has a timer API to set intervals and timeouts.
These are the simple functions hilbish.interval and hilbish.timeout (doc accessible with doc hilbish, or Module hilbish on the Website).
diff --git a/versions/snail/sitemap.xml b/versions/snail/sitemap.xml
index f67a7a8..9bfd481 100644
--- a/versions/snail/sitemap.xml
+++ b/versions/snail/sitemap.xml
@@ -1 +1 @@
-https://rosettea.github.io/Hilbish/versions/snail/docs/api/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/https://rosettea.github.io/Hilbish/versions/snail/docs/vim-mode/https://rosettea.github.io/Hilbish/versions/snail/docs/vim-mode/actions/https://rosettea.github.io/Hilbish/versions/snail/docs/lunacolors/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/https://rosettea.github.io/Hilbish/versions/snail/docs/features/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/faq/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/getting-started/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/2024-07-20T10:14:16-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.3-release/2024-07-20T10:14:16-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.2-release/2023-12-26T00:13:50-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/improving-this-website/2023-04-14T00:04:52-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1.2-release/2023-04-10T12:38:30-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1.1-release/2023-04-01T18:16:13-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1-release/2023-02-10T17:11:44-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.0-release/2022-12-28T22:27:05-04:00https://rosettea.github.io/Hilbish/versions/snail/2023-12-26T00:13:35-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/job/https://rosettea.github.io/Hilbish/versions/snail/docs/jobs/https://rosettea.github.io/Hilbish/versions/snail/docs/timers/https://rosettea.github.io/Hilbish/versions/snail/categories/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/command/https://rosettea.github.io/Hilbish/versions/snail/docs/completions/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/hilbish/https://rosettea.github.io/Hilbish/versions/snail/install/2023-04-14T00:04:52-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/api/bait/https://rosettea.github.io/Hilbish/versions/snail/docs/api/commander/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/dirs/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/doc/https://rosettea.github.io/Hilbish/versions/snail/docs/api/fs/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.aliases/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.userdir/https://rosettea.github.io/Hilbish/versions/snail/docs/api/snail/https://rosettea.github.io/Hilbish/versions/snail/docs/api/terminal/https://rosettea.github.io/Hilbish/versions/snail/docs/features/notifications/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/features/opts/https://rosettea.github.io/Hilbish/versions/snail/docs/features/runner-mode/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/signal/https://rosettea.github.io/Hilbish/versions/snail/tags/https://rosettea.github.io/Hilbish/versions/snail/blog/welcome/2022-12-28T22:27:05-04:00
\ No newline at end of file
+https://rosettea.github.io/Hilbish/versions/snail/docs/api/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/https://rosettea.github.io/Hilbish/versions/snail/docs/vim-mode/https://rosettea.github.io/Hilbish/versions/snail/docs/vim-mode/actions/https://rosettea.github.io/Hilbish/versions/snail/docs/lunacolors/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/https://rosettea.github.io/Hilbish/versions/snail/docs/features/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/faq/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/getting-started/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/2024-07-20T10:14:16-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.3-release/2024-07-20T10:14:16-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.2-release/2023-12-26T00:13:50-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/improving-this-website/2023-04-14T00:04:52-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1.2-release/2023-04-10T12:38:30-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1.1-release/2023-04-01T18:16:13-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.1-release/2023-02-10T17:11:44-04:00https://rosettea.github.io/Hilbish/versions/snail/blog/v2.0-release/2022-12-28T22:27:05-04:00https://rosettea.github.io/Hilbish/versions/snail/2023-12-26T00:13:35-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/job/https://rosettea.github.io/Hilbish/versions/snail/docs/jobs/https://rosettea.github.io/Hilbish/versions/snail/docs/timers/https://rosettea.github.io/Hilbish/versions/snail/categories/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/command/https://rosettea.github.io/Hilbish/versions/snail/docs/completions/https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/hilbish/https://rosettea.github.io/Hilbish/versions/snail/install/2023-04-14T00:04:52-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/api/bait/https://rosettea.github.io/Hilbish/versions/snail/docs/api/commander/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/dirs/https://rosettea.github.io/Hilbish/versions/snail/docs/nature/doc/https://rosettea.github.io/Hilbish/versions/snail/docs/api/fs/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.aliases/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.completion/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.editor/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.history/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.jobs/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.messages/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.module/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.os/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.runner/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.timers/https://rosettea.github.io/Hilbish/versions/snail/docs/api/hilbish/hilbish.userdir/https://rosettea.github.io/Hilbish/versions/snail/docs/api/snail/https://rosettea.github.io/Hilbish/versions/snail/docs/api/terminal/https://rosettea.github.io/Hilbish/versions/snail/docs/features/notifications/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/features/opts/https://rosettea.github.io/Hilbish/versions/snail/docs/features/runner-mode/2023-12-25T23:08:29-04:00https://rosettea.github.io/Hilbish/versions/snail/docs/hooks/signal/https://rosettea.github.io/Hilbish/versions/snail/tags/https://rosettea.github.io/Hilbish/versions/snail/blog/welcome/2022-12-28T22:27:05-04:00
\ No newline at end of file