Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FileTree
- newFileTree :: FilePath -> IO FileTree
- moveUp :: FileTree -> EventM String FileTree
- moveDown :: FileTree -> EventM String FileTree
- pageUp :: FileTree -> EventM String FileTree
- pageDown :: FileTree -> EventM String FileTree
- moveToTop :: FileTree -> EventM String FileTree
- moveToBottom :: FileTree -> EventM String FileTree
- ascendDir :: FileTree -> EventM String FileTree
- descendDir :: FileTree -> EventM String FileTree
- toggleFlagged :: FileTree -> EventM String FileTree
- toggleFlaggedVisible :: FileTree -> FileTree
- getCurrentFilePath :: FileTree -> Maybe FilePath
- getCurrentDir :: FileTree -> FilePath
- getFlagged :: FileTree -> [FilePath]
- renderFileTree :: FileTree -> Widget String
- renderSelection :: FileTree -> Widget String
- flaggedItemAttr :: AttrName
- titleAttr :: AttrName
- dirAttr :: AttrName
- fileAttr :: AttrName
- errorAttr :: AttrName
Types
Interaction
moveToTop :: FileTree -> EventM String FileTree Source #
Move the cursor the the top of the file list
moveToBottom :: FileTree -> EventM String FileTree Source #
Move the cursor the the bottom of the file list
ascendDir :: FileTree -> EventM String FileTree Source #
Move the cursor up a directory in the file tree
descendDir :: FileTree -> EventM String FileTree Source #
If the cursor is on a directory then descend the cursor into that dir If the cursor is on a file nothing happens
toggleFlaggedVisible :: FileTree -> FileTree Source #
Hide/Show a list of all flagged files
Queries
getCurrentFilePath :: FileTree -> Maybe FilePath Source #
Get the absolute path of the object (dir or file) under the cursor
getCurrentDir :: FileTree -> FilePath Source #
Get the absolute path of the directory where the cursor currently is.
getFlagged :: FileTree -> [FilePath] Source #
Get all flagged file paths. All paths are absolute
Rendering
Attributes
flaggedItemAttr :: AttrName Source #
Flagged items are rendered with this attr