7data SrcPos = Pos Int Int
10data SrcSpan = Span SrcPos SrcPos | NoSpan
13data Context e = C (Maybe String) SrcSpan e deriving (Eq,Ord)
16instance Show SrcPos where
17 show (Pos r c) = "Line " ++ show r ++ ", Column " ++ show c
19instance Show SrcSpan where
22 Span start end -> show start
25instance Show e => Show (Context e) where
26 show (C _ _ e) = show e
30noContext = C Nothing NoSpan
32pos start end = C Nothing
33 (Span (Pos (sourceLine start) (sourceColumn start))
34 (Pos (sourceLine end ) (sourceColumn end )))
36epos (C _ s1 _) (C _ s2 _) = C Nothing span
37 where span = case (s1,s2) of
38 (Span start _, Span _ end) -> Span start end
42addCtx x (C Nothing span e) = C (Just (show x)) span e
43addCtx x (C txt span e) = C txt span e
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