brick-filetree-0.1.0.3

Safe HaskellNone
LanguageHaskell2010

Brick.Widgets.FileTree.Internal.Actions

Synopsis

Documentation

moveUp :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor up one item

moveDown :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor down one item

pageUp :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor up a page

pageDown :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor down a page

moveToTop :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor the the top of the file list

moveToBottom :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor the the bottom of the file list

ascendDir :: FileTree a -> EventM String (FileTree a) Source #

Move the cursor up a directory in the file tree

descendDir :: FileTree a -> EventM String (FileTree a) Source #

If the cursor is on a directory then descend the cursor into that dir If the cursor is on a file nothing happens

getCurrentFilePath :: FileTree a -> Maybe FilePath Source #

Get the absolute path of the object (dir or file) under the cursor

getCurrentDir :: FileTree a -> FilePath Source #

Get the absolute path of the directory where the cursor currently is.

toggleFlagged :: FileTree a -> EventM String (FileTree a) Source #

Flag or unflag the current file or dir

getFlagged :: FileTree a -> [FilePath] Source #

Get all flagged file paths. All paths are absolute

toggleFlaggedVisible :: FileTree a -> FileTree a Source #

Hide/Show a list of all flagged files