mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
1458ecdcab
...
86aa40af64
Author | SHA1 | Date |
---|---|---|
TorchedSammy | 86aa40af64 | |
TorchedSammy | a89d3e59d6 |
2
api.go
2
api.go
|
@ -601,7 +601,7 @@ func hlwhich(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// inputMode(mode)
|
// inputMode(mode)
|
||||||
// Sets the input mode for Hilbish's line reader. Accepts either emacs for vim
|
// Sets the input mode for Hilbish's line reader. Accepts either emacs or vim
|
||||||
// --- @param mode string
|
// --- @param mode string
|
||||||
func hlinputMode(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
func hlinputMode(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
if err := c.Check1Arg(); err != nil {
|
if err := c.Check1Arg(); err != nil {
|
||||||
|
|
|
@ -26,7 +26,7 @@ what text to use as an inline hint. The callback is passed 2 arguments:
|
||||||
the current line and the position. It is expected to return a string
|
the current line and the position. It is expected to return a string
|
||||||
which will be used for the hint.
|
which will be used for the hint.
|
||||||
|
|
||||||
inputMode(mode) > Sets the input mode for Hilbish's line reader. Accepts either emacs for vim
|
inputMode(mode) > Sets the input mode for Hilbish's line reader. Accepts either emacs or vim
|
||||||
|
|
||||||
interval(cb, time) > Runs the `cb` function every `time` milliseconds.
|
interval(cb, time) > Runs the `cb` function every `time` milliseconds.
|
||||||
Returns a `timer` object (see `doc timers`).
|
Returns a `timer` object (see `doc timers`).
|
||||||
|
|
|
@ -47,7 +47,7 @@ function hilbish.highlighter(cb) end
|
||||||
--- @param cb function
|
--- @param cb function
|
||||||
function hilbish.hinter(cb) end
|
function hilbish.hinter(cb) end
|
||||||
|
|
||||||
--- Sets the input mode for Hilbish's line reader. Accepts either emacs for vim
|
--- Sets the input mode for Hilbish's line reader. Accepts either emacs or vim
|
||||||
--- @param mode string
|
--- @param mode string
|
||||||
function hilbish.inputMode(mode) end
|
function hilbish.inputMode(mode) end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue