docs » cp.console.history
Console History Manager.
Based on code by @asmagill https://github.com/asmagill/hammerspoon-config-take2/blob/master/utils/_actions/consoleHistory.lua
- Functions - API calls offered directly by the extension
- clearHistory
- history
- init
- pruneHistory
- retrieveHistory
- saveHistory
- Fields - Variables which can only be accessed from an object returned by a constructor
- cache
| Signature | cp.console.history.clearHistory() -> none |
|---|---|
| Type | Function |
| Description | Clears the Console History. |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.history(toFind) -> none |
|---|---|
| Type | Function |
| Description | Gets a history item. |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.init() -> self |
|---|---|
| Type | Function |
| Description | Initialise the module. |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.pruneHistory() -> number |
|---|---|
| Type | Function |
| Description | Prune History |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.retrieveHistory() -> none |
|---|---|
| Type | Function |
| Description | Retrieve's the Console History. |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.saveHistory() -> none |
|---|---|
| Type | Function |
| Description | Saves the Console History. |
| Parameters |
|
| Returns |
|
| Signature | cp.console.history.cache <cp.prop: table> |
|---|---|
| Type | Field |
| Description | Console History Cache |