interactions for Hilbish's line reader
The hilbish.editor interface provides functions to directly interact with the line editor in use.
deleteByAmount(amount) | Deletes characters in the line by the given amount. |
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. |
Deletes characters in the line by the given amount.
number
amount
Returns the current input line.
This function has no parameters.
Returns the text that is at the register.
string
register
Reads a keystroke from the user. This is in a format of something like Ctrl-L.
This function has no parameters.
Want to help improve this page? Create an issue.