ribosome-0.9.9.9: Neovim plugin framework for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Api.Input

Description

Functions for simulating user input in tests.

Synopsis

Documentation

syntheticInput :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r () Source #

Send a list of character sequences as user input to Neovim with an optional wait interval.

Uses nvim_input.

feedKey :: Member Rpc r => Text -> Sem r () Source #

Send a sequence of keys using nvim_feedkeys after replacing terminal codes.

syntheticInputFk :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r () Source #

Send a list of character sequences as user input to Neovim with an optional wait interval.

Uses nvim_feedkeys.

withInput :: Members [Rpc, Resource, Race, Async, Time t d] r => Maybe MilliSeconds -> Maybe MilliSeconds -> [Text] -> Sem r a -> Sem r a Source #

Run an action after forking a thread that sends user input to Neovim.