Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- requestSpellCheck :: MH ()
- editingKeybindings :: Lens' ChatState (Editor Text Name) -> KeyConfig -> KeyHandlerMap
- editingKeyHandlers :: Lens' ChatState (Editor Text Name) -> [KeyEventHandler]
- messageEditingKeybindings :: KeyConfig -> KeyHandlerMap
- toggleMultilineEditing :: MH ()
- invokeExternalEditor :: MH ()
- handlePaste :: ByteString -> MH ()
- handleInputSubmission :: TeamId -> ChannelId -> Text -> MH ()
- getEditorContent :: MH Text
- handleEditingInput :: Event -> MH ()
- cancelAutocompleteOrReplyOrEdit :: MH ()
- replyToLatestMessage :: MH ()
- data Direction
- tabComplete :: Direction -> MH ()
Documentation
requestSpellCheck :: MH () Source #
editingKeybindings :: Lens' ChatState (Editor Text Name) -> KeyConfig -> KeyHandlerMap Source #
editingKeyHandlers :: Lens' ChatState (Editor Text Name) -> [KeyEventHandler] Source #
toggleMultilineEditing :: MH () Source #
invokeExternalEditor :: MH () Source #
handlePaste :: ByteString -> MH () Source #
handleInputSubmission :: TeamId -> ChannelId -> Text -> MH () Source #
Handle an input submission in the message editor.
This handles the specified input text as if it were user input for the specified channel. This means that if the specified input text contains a command ("/...") then it is executed as normal. Otherwise the text is sent as a message to the specified channel.
However, this function assumes that the message editor is the *source* of the text, so it also takes care of clearing the editor, resetting the edit mode, updating the input history for the specified channel, etc.
handleEditingInput :: Event -> MH () Source #
replyToLatestMessage :: MH () Source #
tabComplete :: Direction -> MH () Source #