2022-12-15 04:00:54 +00:00
|
|
|
---
|
|
|
|
title: Interface hilbish.editor
|
|
|
|
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-02-07 22:19:24 +00:00
|
|
|
### getLine() -> string
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the current input line.
|
|
|
|
|
2023-02-07 22:19:24 +00:00
|
|
|
### getVimRegister(register) -> string
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the text that is at the register.
|
|
|
|
|
|
|
|
### insert(text)
|
|
|
|
Inserts text into the line.
|
|
|
|
|
2023-10-25 04:41:53 +00:00
|
|
|
### getChar() -> string
|
|
|
|
Reads a keystroke from the user. This is in a format
|
|
|
|
of something like Ctrl-L..
|
|
|
|
|
2022-12-15 04:00:54 +00:00
|
|
|
### setVimRegister(register, text)
|
|
|
|
Sets the vim register at `register` to hold the passed text.
|
|
|
|
|