Uh oh!
There was an error while loading. Please reload this page.
Add a sort option popup to branch list view - #2146
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
extrawurst
commented
Mar 22, 2024
Thanks for taking a go at this! If you look at other popups like the options or search-in-log popup you will notice that the way we do these is: using the navigation cursors to pick an option instead of adding a bunch of new key bindings for each option uniquely. if you could convert this on to the same that would be awesome |
UUGTech
commented
Mar 25, 2024
Thank you for pointing that out. Screen.Recording.2024-03-25.at.13.26.57.mov |
d329b95 to
d30b9acCompared30b9ac to
0c1c973Compare| { | ||
| let date_local = Local | ||
| .timestamp_opt(displaybranch.top_commit_time, 0) | ||
| .unwrap(); |
There was a problem hiding this comment.
Would it be possible to change this from an unwrap to an unwrap_or to protect from panics just incase
There was a problem hiding this comment.
how is this even possible to pass CI?
checkout main.rs: #![deny(clippy::unwrap_used)]
There was a problem hiding this comment.
wtf MappedLocalTime: https://docs.rs/chrono/latest/chrono/offset/type.MappedLocalTime.html
lets do earliest and then unwrap the Option with unwrap_or_else
There was a problem hiding this comment.
I am also debating whether to store this DateTime<Local> instead inside of BranchInfo which should be fine as it is just twice as big as the i64 that we we do not have to do this mess everytime the screen renders
There was a problem hiding this comment.
but at the least the unwrap needs to go
UUGTech
commented
Apr 14, 2024
@extrawurst Sorry for the delay 🙇♂️ |
There was a problem hiding this comment.
when sorting it should also keep the selection: right now it only keeps the same index selected which will mostly be a different branch when sorting changes.
the popup list entries should also not use a focused (bold) style, make it more in line with other popups (search, fuzzy find)
UUGTech
commented
Apr 14, 2024
@extrawurst
Easier way to find new branch is required in #2129, also I think sorting is that kind of feature.
Thank you. I'll fix this. |
extrawurst
commented
Apr 21, 2024
yes please. the use case you describe is better fixed by providing quick scroll-to-top/bottom shortcuts like we also have in the commit log list view |
UUGTech
commented
Apr 24, 2024
UUGTech
commented
Apr 24, 2024
I made an issue for this. |
extrawurst
commented
Apr 24, 2024
UUGTech
commented
May 1, 2024
extrawurst
commented
Oct 28, 2025
@UUGTech are you still planning to push this over the finish line? will mark it as |
UUGTech
commented
Oct 28, 2025
I'm sorry, but at this time I don't plan to continue working on this. It's okay to mark it as |
vztester94w
commented
Apr 14, 2026
This was amazing feature. IMO there is no real purpose for default "sort by name", git is for tracking change over time and should be default. |







This Pull Request fixes/closes#2129, #2024
It changes the following:
I followed the checklist:
make checkwithout errorsScreen.Recording.2024-03-22.at.19.46.23.mov