Highly customizable tree explorer built entirely in Go.
See test.go for usage. There are many exposed properties on the tree object which you can set.
Examples of various customizations are:
- Keybinds
- Styles
- Tree Indentation & Characters
- Folder/File Icons
- Font color/highlight/underline/bold using lipgloss in the Styles attribute
- Tree with directory lines or without them
- Cursor for line selection
- Custom styling for selected line
- Etc.
Reach out to lucas.hancock18@gmail.com for inquiries.
- Bubbletea: https://github.com/charmbracelet/bubbletea
- Lipgloss: https://github.com/charmbracelet/lipgloss
Lipgloss has a pretty nice tree generator but currently doesn't support selection/navigation. This project is my own code which uses simple iteration and string concatenation to build out the tree. It is probably not that efficient and could've been done better, but it works. If you're looking for a project that integrates with the existing lipgloss tree builder, there is a pull request for a bubble that implements selection and navigation which is yet to be merged. Check it out here: charmbracelet/bubbles#639