| CARVIEW |
brick-filetree
Please see the README on GitHub at https://github.com/ChrisPenner/brick-filetree#readme
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- brick-filetree-0.1.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.7 && <5), brick, comonad, containers, directory, directory-tree, filepath, free, vector, vty [details] |
| License | BSD-3-Clause |
| Copyright | Chris Penner |
| Author | Chris Penner |
| Maintainer | christopher.penner@gmail.com |
| Uploaded | by ChrisPenner at 2019-02-13T19:34:44Z |
| Home page | https://github.com/ChrisPenner/brick-filetree#readme |
| Bug tracker | https://github.com/ChrisPenner/brick-filetree/issues |
| Source repo | head: git clone https://github.com/ChrisPenner/brick-filetree |
| Distributions | |
| Downloads | 2292 total (14 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs uploaded by user Build status unknown [no reports yet] |
Readme for brick-filetree-0.1.0.3
[back to package description]brick-filetree
A brick widget for exploring file trees.
You can dig through my unfinished cli file browser Delve for a few examples if you like.
Note that this works relatively well, but I give no guarantees about future maintenance or feature requests.
Allows selecting multiple files/directories from anywhere in your filesystem which can be viewed from your brick app and used for whatever you like.
Note, this uses lazy IO to build the file tree, which will be run iteratively as you use the UI to explore it; this allows better performance, but all the usual lazyIO caveats apply; shouldn't cause you too much trouble though.
Usage:
- Create a FileTree using
newFileTree - Store this FileTree in your Brick State somewhere
- Render the FileTree using
renderFileTree - Wire up handlers for brick events to trigger FileTree actions, e.g.
moveUp,toggleFlagged, etc. - At some point you'll want to get the selected object with
getCurrentFilePathor get all flagged items withgetFlagged.
See Hackage for docs.
