# sued Lua scripts This directory contains Lua scripts for sued's Lua bindings. These scripts are intended to provide editing commands from the Lua side into the Rust side, as well as serve as a sort of demonstration of how to use sued's Lua bindings. Previously, an attempt was made to expose sued's `run_sued_command` function to the Lua side, but that resulted in a bucketload of ownership issues with `EditorState`. Instead, these scripts will supplant `run_sued_command` by implementing commands in Lua instead. Since I have a lot more faith in `mlua` than my own crappy C FFI code (which is now gone entirely), this should go a lot more swimmingly. These scripts will do nothing unless the `lua` feature (or the `most` feature group) is enabled when building sued.