Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lua API for Mutt's config and commandline
* adds the following to Mutt's API: * `:lua` to execute a line of Lua * `:lua-source` to load and run a Lua source file * exposes the following Mutt API in Lua: * `mutt.message()` To write a message on Mutt's command line * `mutt.error()` To write an error message on Mutt's command line * `mutt.enter()` run an arbitrary Mutt command, like with `:enter-command` * `mutt.get()` get a variable from Mutt * `mutt.set()` sets a variable from Mutt (with type enforcement) * `mutt.call()` calls a command available in mutt, with arguments * `mutt.command.*` exposes all the commands from within Mutt * For some technical details: * proper error handling of the Lua interpreter * exposed mutt_option_set and mutt_option_get from init fixes: #153 Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
- Loading branch information
Showing
2 changed files
with
51 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters