Hilbish/docs/api/hilbish/hilbish.editor.md

27 lines
547 B
Markdown
Raw Permalink Normal View History

---
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
Returns the current input line.
2023-02-07 22:19:24 +00:00
### getVimRegister(register) -> string
Returns the text that is at the register.
### insert(text)
Inserts text into the line.
### setVimRegister(register, text)
Sets the vim register at `register` to hold the passed text.