Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data KeyEvent
- = VtyRefreshEvent
- | ShowHelpEvent
- | EnterSelectModeEvent
- | ReplyRecentEvent
- | ToggleMessagePreviewEvent
- | InvokeEditorEvent
- | EnterFastSelectModeEvent
- | QuitEvent
- | NextChannelEvent
- | PrevChannelEvent
- | NextChannelEventAlternate
- | PrevChannelEventAlternate
- | NextUnreadChannelEvent
- | NextUnreadUserOrChannelEvent
- | LastChannelEvent
- | EnterOpenURLModeEvent
- | ClearUnreadEvent
- | ToggleMultiLineEvent
- | EnterFlaggedPostsEvent
- | ToggleChannelListVisibleEvent
- | ToggleExpandedChannelTopicsEvent
- | ShowAttachmentListEvent
- | EditorKillToBolEvent
- | EditorKillToEolEvent
- | EditorBolEvent
- | EditorEolEvent
- | EditorTransposeCharsEvent
- | EditorDeleteCharacter
- | EditorPrevCharEvent
- | EditorNextCharEvent
- | EditorPrevWordEvent
- | EditorNextWordEvent
- | EditorDeleteNextWordEvent
- | EditorDeletePrevWordEvent
- | EditorHomeEvent
- | EditorEndEvent
- | EditorYankEvent
- | SelectNextTabEvent
- | SelectPreviousTabEvent
- | SaveAttachmentEvent
- | CancelEvent
- | LoadMoreEvent
- | OpenMessageURLEvent
- | ScrollUpEvent
- | ScrollDownEvent
- | ScrollLeftEvent
- | ScrollRightEvent
- | PageUpEvent
- | PageDownEvent
- | PageRightEvent
- | PageLeftEvent
- | ScrollTopEvent
- | ScrollBottomEvent
- | SelectOldestMessageEvent
- | SelectUpEvent
- | SelectDownEvent
- | SearchSelectUpEvent
- | SearchSelectDownEvent
- | ActivateListItemEvent
- | ViewMessageEvent
- | FillGapEvent
- | FlagMessageEvent
- | PinMessageEvent
- | YankMessageEvent
- | YankWholeMessageEvent
- | DeleteMessageEvent
- | EditMessageEvent
- | ReplyMessageEvent
- | ReactToMessageEvent
- | AttachmentListAddEvent
- | AttachmentListDeleteEvent
- | AttachmentOpenEvent
- | FileBrowserBeginSearchEvent
- | FileBrowserSelectEnterEvent
- | FileBrowserSelectCurrentEvent
- | FileBrowserListPageUpEvent
- | FileBrowserListPageDownEvent
- | FileBrowserListHalfPageUpEvent
- | FileBrowserListHalfPageDownEvent
- | FileBrowserListTopEvent
- | FileBrowserListBottomEvent
- | FileBrowserListNextEvent
- | FileBrowserListPrevEvent
- | FormSubmitEvent
- | NextTeamEvent
- | PrevTeamEvent
- | MoveCurrentTeamLeftEvent
- | MoveCurrentTeamRightEvent
- type KeyConfig = Map KeyEvent BindingState
- data Binding = Binding {}
- data BindingState
- = BindingList [Binding]
- | Unbound
- allEvents :: [KeyEvent]
- parseBinding :: Text -> Either String Binding
- parseBindingList :: Text -> Either String BindingState
- ppBinding :: Binding -> Text
- nonCharKeys :: [Text]
- eventToBinding :: Event -> Binding
- keyEventFromName :: Text -> Either String KeyEvent
- keyEventName :: KeyEvent -> Text
Types
This enum represents all the possible key events a user might want to use.
Instances
Enum KeyEvent Source # | |
Defined in Matterhorn.Types.KeyEvents | |
Eq KeyEvent Source # | |
Ord KeyEvent Source # | |
Defined in Matterhorn.Types.KeyEvents | |
Show KeyEvent Source # | |
data BindingState Source #
Instances
Eq BindingState Source # | |
Defined in Matterhorn.Types.KeyEvents (==) :: BindingState -> BindingState -> Bool # (/=) :: BindingState -> BindingState -> Bool # | |
Ord BindingState Source # | |
Defined in Matterhorn.Types.KeyEvents compare :: BindingState -> BindingState -> Ordering # (<) :: BindingState -> BindingState -> Bool # (<=) :: BindingState -> BindingState -> Bool # (>) :: BindingState -> BindingState -> Bool # (>=) :: BindingState -> BindingState -> Bool # max :: BindingState -> BindingState -> BindingState # min :: BindingState -> BindingState -> BindingState # | |
Show BindingState Source # | |
Defined in Matterhorn.Types.KeyEvents showsPrec :: Int -> BindingState -> ShowS # show :: BindingState -> String # showList :: [BindingState] -> ShowS # |
Data
Parsing and pretty-printing
nonCharKeys :: [Text] Source #
eventToBinding :: Event -> Binding Source #
Key event name resolution
keyEventName :: KeyEvent -> Text Source #