Skip to content

File tree view (in default tab) #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maralorn opened this issue May 27, 2024 · 1 comment
Open

File tree view (in default tab) #20

maralorn opened this issue May 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@maralorn
Copy link
Contributor

lazygit has the excellent (and very pretty) tree view of changes right at the top when you start it. It is basically a prettier version of the files tab.

I was wondering if we could 1. make it possible to integrate it into one tab with the log, like lazygit does and 2. make it nicer with folding of dirs and stuff like that.

However both of these are nice to have.

@Cretezy
Copy link
Owner

Cretezy commented May 28, 2024

I think a file tree view would be great. https://crates.io/crates/tui-tree-widget exists which seems to implement what's required. It would be a great option to have, although I think the current list should be kept as the default as most changes likely have <25 files (random number I made up), and a list can be easier to navigate (and it's already sorted by file path).

An "all-in-one" view with log + file tree + file diff would be cool. One concern is which keyboard navigation, as 3 panes means we'll likely need to be able to switch the active pane and scroll inside of it separately. Users could also have the ability to switch between the current 2 pane layout (of log + diff) to the 3 panel layout (with diff replaced with tree + individual diffs).

@Cretezy Cretezy added the enhancement New feature or request label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants