20import Data.Nullable (Nullable)
22import Promise (Promise)
23import OpenTUI (Color, Renderable, Renderer)
28 , sessionID :: Nullable String
31foreign import data Context :: Type
33foreign import data Plugin :: Type
35-- The host owns setup invocation and calls the cleanup effect returned by setup.
37 :: { id :: String, setup :: Context -> Effect (Effect Unit) }
40foreign import renderer :: Context -> Renderer
42foreign import cwd :: Context -> Effect String
44foreign import themeMode :: Context -> Effect String
46foreign import mutedColor :: Context -> Effect Color
48foreign import backgroundColor :: Context -> Effect Color
50foreign import route :: Context -> Effect Route
52-- The callback runs immediately and on later route changes. Run the returned cleanup
53-- to dispose its Solid root.
54foreign import observeRoute :: Context -> Effect Unit -> Effect (Effect Unit)
56foreign import registerCommand
60 , description :: String
64 -> (Nullable String -> Effect (Promise Unit))
67-- The returned cleanup unregisters the host slot claim. The slot callback creates
68-- the renderable and owns resources associated with it.
69foreign import mountSlot
72 -> (Nullable String -> Effect (Nullable Renderable))
73 -> Effect (Effect Unit)
75-- Run the returned cleanup to pop precisely this mode stack entry.
76foreign import pushMode :: Context -> String -> Effect (Effect Unit)
78foreign import registerKeys
82 -> Array { id :: String, bind :: String, run :: Effect Unit }
85foreign import notifyError :: Context -> String -> Effect Unit
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list