mirror of
https://github.com/sammy-ette/Hilbish
synced 2025-08-10 02:52:03 +00:00
- add a table that lists module functions - add highlight when jumping to a function - separators
2.0 KiB
2.0 KiB
| title | description | layout | menu | ||||
|---|---|---|---|---|---|---|---|
| Module hilbish.history | command history | doc |
|
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. |
| clear() | Deletes all commands from the history. |
| get(idx) | Retrieves a command from the history based on the idx. |
| size() -> number | Returns the amount of commands in the history. |
hilbish.history.clear()
Deletes all commands from the history.
Parameters
This function has no parameters.
hilbish.history.get(idx)
Retrieves a command from the history based on the idx.
Parameters
This function has no parameters.