2022-12-15 04:00:54 +00:00
|
|
|
---
|
2023-08-26 15:30:51 +00:00
|
|
|
title: Module hilbish.editor
|
2022-12-15 04:00:54 +00:00
|
|
|
description: interactions for Hilbish's line reader
|
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
The hilbish.editor interface provides functions to
|
|
|
|
directly interact with the line editor in use.
|
|
|
|
|
|
|
|
## Functions
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.editor.getLine() -> string
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the current input line.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.editor.getVimRegister(register) -> string
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the text that is at the register.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.editor.insert(text)
|
2022-12-15 04:00:54 +00:00
|
|
|
Inserts text into the line.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.editor.setVimRegister(register, text)
|
2022-12-15 04:00:54 +00:00
|
|
|
Sets the vim register at `register` to hold the passed text.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|