[−][src]Crate scrawl
Scrawl
A library for opening a file for editing in a text editor and capturing the result as a String
Modules
error | Scrawl Error Types |
Structs
Editor | The Editor struct allows setting up the editor before opening it. Useful for setting things like a file extension for syntax highlighting, or specifying a specific editor and more. |
Functions
edit | Edit opens a text buffer in an editor with the contents of the file specified. This does edit the contents of the file. Returns a Result |
new | New opens an empty text buffer in an editor and returns a Result |
open | Open opens a text buffer in an editor with the contents of the file specified. This does not edit the contents of the file. Returns a Result |
with | New opens an text buffer with the contents of the provided String in an editor. Returns a Result |