jxxcarlson/elm-editor/3.0.0

NOTE: the latest version is 3.1.3

EditorMsg

type EMsg
= EditorNoOp
| ExitVimInsertMode
| MoveUp
| MoveDown
| MoveLeft
| MoveRight
| MoveToLineStart
| MoveToLineEnd
| PageUp
| PageDown
| FirstLine
| LastLine
| GoToLine
| NewLine
| InsertChar String
| Indent
| Deindent
| RemoveCharBefore
| RemoveCharAfter
| KillLine
| DeleteLine
| Cut
| Copy
| Paste
| WrapAll
| WrapSelection
| Hover Hover
| GoToHoveredPosition
| StartSelecting
| StopSelecting
| SelectLine
| SelectUp
| SelectDown
| SelectLeft
| SelectRight
| SelectGroup
| Undo
| Redo
| AcceptLineToGoTo String
| DebounceMsg Msg
| Unload String
| Clear
| Test
| ContextMenuMsg (Msg Context)
| Item Int
| ToggleAutoLineBreak
| EditorRequestFile
| EditorRequestedFile File
| MarkdownLoaded String
| EditorSaveFile
| SendLineForLRSync
| GotViewportForSync
(Maybe String)
(Result Error Viewport)
| CopyPasteClipboard
| WriteToSystemClipBoard
| DoSearch String
| ToggleSearchPanel
| ToggleReplacePanel
| OpenReplaceField
| RollSearchSelectionForward
| RollSearchSelectionBackward
| ReplaceCurrentSelection
| AcceptLineNumber String
| AcceptSearchText String
| AcceptReplacementText String
| GotViewport (Result Error Viewport)
| ToggleDarkMode
| ToggleHelp
| ToggleEditMode
| MarkdownMsg MarkdownMsg

Messages that the editor responds to

type Context
= Object
| Background

For the context menu

type Hover
= NoHover
| HoverLine Int
| HoverChar Position

Mouuse hover states

type alias Position =
{ line : Int
, column : Int
}

Cursor position

= NoSelection
| SelectingFrom Hover
| SelectedChar Position
| Selection Position Position

Selected text