Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- listWindowActivateCurrent :: TeamId -> Lens' ChatState (ListWindowState a b) -> MH ()
- listWindowActivate :: TeamId -> Lens' ChatState (ListWindowState a b) -> a -> MH ()
- listWindowSearchString :: Lens' ChatState (ListWindowState a b) -> MH Text
- listWindowMove :: Lens' ChatState (ListWindowState a b) -> (List Name a -> List Name a) -> MH ()
- exitListWindow :: TeamId -> Lens' ChatState (ListWindowState a b) -> MH ()
- enterListWindowMode :: TeamId -> Lens' ChatState (ListWindowState a b) -> Mode -> b -> (a -> MH Bool) -> (b -> Session -> Text -> IO (Vector a)) -> MH ()
- resetListWindowSearch :: Lens' ChatState (ListWindowState a b) -> MH ()
- onEventListWindow :: Lens' ChatState (ListWindowState a b) -> (KeyConfig -> KeyHandlerMap) -> Event -> MH Bool
Documentation
listWindowActivateCurrent :: TeamId -> Lens' ChatState (ListWindowState a b) -> MH () Source #
Activate the specified list window's selected item by invoking the window's configured enter keypress handler function.
listWindowActivate :: TeamId -> Lens' ChatState (ListWindowState a b) -> a -> MH () Source #
Activate the specified list window's selected item by invoking the window's configured enter keypress handler function.
listWindowSearchString :: Lens' ChatState (ListWindowState a b) -> MH Text Source #
Get the current search string for the specified window.
:: Lens' ChatState (ListWindowState a b) | Which window |
-> (List Name a -> List Name a) | How to transform the list in the window |
-> MH () |
Move the list cursor in the specified window.
:: TeamId | |
-> Lens' ChatState (ListWindowState a b) | Which window to reset |
-> MH () |
Clear the state of the specified list window and return to the Main mode.
:: TeamId | |
-> Lens' ChatState (ListWindowState a b) | Which window to initialize |
-> Mode | The mode to change to |
-> b | The window's initial search scope |
-> (a -> MH Bool) | The window's enter keypress handler |
-> (b -> Session -> Text -> IO (Vector a)) | The window's results fetcher function |
-> MH () |
Initialize a list window with the specified arguments and switch to the specified mode.
resetListWindowSearch :: Lens' ChatState (ListWindowState a b) -> MH () Source #
Reset the window's search by initiating a new search request for the string that is currently in the window's editor. This does nothing if a search for this window is already in progress.
:: Lens' ChatState (ListWindowState a b) | Which window to dispatch to? |
-> (KeyConfig -> KeyHandlerMap) | The keybinding builder |
-> Event | The event |
-> MH Bool |
Generically handle an event for the list window state targeted by the specified lens. Automatically dispatches new searches in the window's editor if the editor contents change.