#tui #ui #terminal #cli

filetreelist

filetree abstraction based on a sorted path list, supports key based navigation events, folding, scrolling and more

8 releases (4 breaking)

0.5.1 Feb 21, 2024
0.5.0 Aug 17, 2022
0.4.0 Oct 11, 2021
0.3.0 Sep 9, 2021
0.1.1 May 28, 2021

#417 in GUI

Download history 98/week @ 2023-12-22 141/week @ 2023-12-29 434/week @ 2024-01-05 258/week @ 2024-01-12 218/week @ 2024-01-19 199/week @ 2024-01-26 185/week @ 2024-02-02 210/week @ 2024-02-09 681/week @ 2024-02-16 605/week @ 2024-02-23 351/week @ 2024-03-01 304/week @ 2024-03-08 323/week @ 2024-03-15 314/week @ 2024-03-22 260/week @ 2024-03-29 194/week @ 2024-04-05

1,133 downloads per month
Used in gitui

MIT license

1MB
1.5K SLoC

filetreelist

This crate is designed as part of the gitui project.

filetreelist provides a very common functionality of gitui: lists of files visualized as a tree. It allows efficient iteration of only the visual (non collapsed) elements and change the tree state correctly given well defined inputs like Up/Down/Collapse.

It is the main driver behind the file tree feature:

demo

Dependencies