Files
herolib/lib/ui/generic/editor.v
2024-12-25 08:40:56 +01:00

27 lines
746 B
V

module generic
// import freeflowuniverse.herolib.ui.console
// import freeflowuniverse.herolib.ui.telegram { UITelegram }
import freeflowuniverse.herolib.ui.uimodel
// open editor which can be used to edit content
// (not every UI has all capability, in case of console open vscode if installed) .
// .
// ```
// args:
// content string //in specified format
// cat ...
// enum InfoCat {
// content string //in specified format
// cat EditorCat
// }
// ```
// returns the editted content, idea is that formatting is used in editor
pub fn (mut c UserInterface) edit(args uimodel.EditArgs) !string {
// match mut c.channel {
// UIConsole { return c.channel.editor(args)! }
// else { panic("can't find channel") }
// }
return ''
}