7import Data.Char (isSpace)
9-- | Trim a string (drop spaces and tabs at both sides).
10trim :: String -> String
11trim = reverse . trim' . reverse . trim'
12 where trim' = dropWhile isSpace
15stripHTML :: String -> String
17stripHTML str = let (beforeTag, rest) = break (== '<') str
18 (_, afterTag) = break (== '>') rest
19 in beforeTag ++ (stripHTML $ tail' afterTag)
20 -- We need a failsafe tail function.
26-- > link "foo" "bar.html" == "<a href='bar.html'>foo</a>"
27link :: String -> String -> String
28link text destination = "<a href=\"" ++ destination ++ "\">"
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