Skip to content

Refactor & support reverse#31

Merged
bootandy merged 11 commits into
masterfrom
nodes_rev
Oct 8, 2019
Merged

Refactor & support reverse#31
bootandy merged 11 commits into
masterfrom
nodes_rev

Conversation

@bootandy
Copy link
Copy Markdown
Owner

@bootandy bootandy commented Oct 8, 2019

No description provided.

This will probably be useful when i refactor for the reverse mode
(will be needed for reverse)
strip_end_slash_including_root will remove end slashes including the
root directory.

The root directory has been a long running problem because if we strip
the final slash we will run dust on no directory instead of the root.
Pull several variables related to how output is printed
into DisplayData struct
WIP

Replace array of (string, int) pairs with tree of nodes.

A tree of nodes more accurately represents the underlying file structure
and hence is a better fit for the problem space.

Regression: Reverse doesn't work in this commit.

I suspect more methods can be simplifed and reduced.
Following the large refactor on the previous commit, this commit fixes
the reverse functionality.

Depth detection moved into the tree building instead of being calculated
when drawing the tree to screen
@bootandy bootandy merged commit c727eb2 into master Oct 8, 2019
@bootandy bootandy deleted the nodes_rev branch January 19, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant