package
0.0.0-20230501113000-8fc54059b7dd
Repository: https://github.com/bsteffaniak/lazyaws.git
Documentation: pkg.go.dev

# README

FileTree Package

This package handles the representation of file trees. There are two ways to render files: one is to render them flat, so something like this:

dir1/file1
dir1/file2
file3

And the other is to render them as a tree

dir1/
  file1
  file2
file3

Internally we represent each of the above as a tree, but with the flat approach there's just a single root node and every path is a direct child of that root. Viewing in 'tree' mode (as opposed to 'flat' mode) allows for collapsing and expanding directories, and lets you perform actions on directories e.g. staging a whole directory. But it takes up more vertical space and sometimes you just want to have a flat view where you can go flick through your files one by one to see the diff.

This package is not concerned about rendering the tree: only representing its internal state.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
this shows files with merge conflicts.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
CommitFileNode wraps a node and provides some commit-file-specific methods for it.
No description provided by the author
No description provided by the author
FileNode wraps a node and provides some file-specific methods for it.
No description provided by the author
This combines our FileTree struct with a cursor that retains information about which item is selected.
Represents a file or directory in a file tree.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author