1module Main (main) where
3import Data.Bifunctor (bimap)
4import Data.Function ((&))
5import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
8import qualified Streamly.Prelude as S
9import qualified Streamly.Internal.Prelude as S
10import qualified Streamly.Internal.FileSystem.Dir as Dir
12-- | List the current directory recursively using concurrent processing
16 hSetBuffering stdout LineBuffering
17 S.mapM_ print $ S.concatMapTreeWith ahead listDir
18 (S.yieldM $ return (Left "."))
23 Dir.toEither dir -- SerialT IO (Either String String)
24 & S.map (bimap prefix prefix) -- SerialT IO (Either String String)
25 where prefix x = dir ++ "/" ++ x
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