Skip to content
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

In tree view: Toggle all directories collapsed #3554

Closed
multivac61 opened this issue May 8, 2024 · 7 comments
Closed

In tree view: Toggle all directories collapsed #3554

multivac61 opened this issue May 8, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@multivac61
Copy link

Is your feature request related to a problem? Please describe.
It would be nice to have the ability to toggle all directories when in tree view. When making a lot of edits it is tedious to do this by hand. Flat layout is very nice, but this is a little different.

Describe the solution you'd like
Ability to toggle all directories collapsed

Describe alternatives you've considered
Flat layout

Additional context
I 🫶 lazygit

@multivac61 multivac61 added the enhancement New feature or request label May 8, 2024
@Axlefublr
Copy link

yes! I need this sm

@Kemboiray
Copy link

I don't know about collapsing all directories, but you can collapse a single directory by pressing <enter>.

@Axlefublr
Copy link

it is tedious to do this by hand

@vdegenne
Copy link

I don't know anything about go language but I wish I could help with that, this is really needed.

mtrajano added a commit to mtrajano/lazygit that referenced this issue Dec 27, 2024
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
mtrajano added a commit to mtrajano/lazygit that referenced this issue Dec 27, 2024
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
mtrajano added a commit to mtrajano/lazygit that referenced this issue Dec 27, 2024
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
mtrajano added a commit to mtrajano/lazygit that referenced this issue Jan 6, 2025
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
mtrajano added a commit to mtrajano/lazygit that referenced this issue Jan 7, 2025
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
mtrajano added a commit to mtrajano/lazygit that referenced this issue Jan 10, 2025
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
stefanhaller pushed a commit to mtrajano/lazygit that referenced this issue Jan 13, 2025
Seems like this feature is highly requested jesseduffield#4095 jesseduffield#3554

Did a quick wip pr. I got the core functionality working with files and
had some questions on what can be improved in order to polish it more.
I.e. What keymaps if any to add to these, should the functionality be to
toggle vs collapse and uncollapse separately, and if this should be
added anywhere else (right now it's just for the file tree)

Once I figure this out I can add the tests, documentations and anything
else that's missing. I'm also pretty new to the language so if there's a
way I can structure this better please let me know
@stefanhaller
Copy link
Collaborator

Implemented in #4131.

@multivac61
Copy link
Author

@stefanhaller You legend!

@vdegenne
Copy link

@stefanhaller Thanks!!

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

5 participants