Conversation
|
Sure! I'll solve the conflicts before your review. |
|
no more merge conflicts, up to date with |
ab5f4ff to
0e3bd3b
Compare
# Conflicts: # Cargo.toml
jannistpl
left a comment
There was a problem hiding this comment.
I've now found the time to do a first code review :)
But I haven't been able to test it yet...
Thanks for the work!
|
@hacknus what is the status of the width? Ideally there should also be the option to display the details or, like before, to only display the file name. |
I tried some more things but have not found a way for a clean fix..
Yes, I can implement this. |
|
Done! |
|
Somehow the scrolling does not work anymore when I drop a file. Since it only renders the files in view, let primary_selected = self.is_primary_selected(item);this is never true, so it will never run the if primary_selected && self.scroll_to_selection {
row.response().scroll_to_me(Some(egui::Align::Center));
self.scroll_to_selection = false;
}Gotta look into this. |
|
Is the |
yes, by clicking on the individual headers in the window. |
|
Okay, so the scroll bug is fixed. From my side I think all that is left is the error with the width of the central panel. As for now, this feature is definitely usable, but because of the bug with the width not ready. |
Awesome, thanks for the update. I'll check over the next few weeks to see if I can get the width fixed. But I've never done anything with the egui-extras tables myself. So I have to try it out first :) |
# Conflicts: # src/file_dialog.rs
|
|
@hacknus maybe use grid instead of table? |
Might be worth looking into. But I'm not sure if the selecting/highlighting can be done as nicely in the grid. EDIT: Also not sure if it would be as easy to only render the currently visible lines with a grid. |
|
|
|
The table-bug has already been reported (one year ago...): emilk/egui#3680 It's not the same as for the width in the right-side-panel. |
If this is a bug in egui, I'm not sure it's worth putting a lot of energy into debugging it. At least here in this project. We should rather open a PR at egui. The rendering problem with the grid is a good point. Unfortunately, this makes it impossible for us to use the grid as a workaround. |
Yes, I agree. I tried looking into the egui-code but I haven't been able to figure out where the bug originates. |
# Conflicts: # src/config/mod.rs # src/data/directory_content.rs # src/file_dialog.rs # src/information_panel.rs
|
@hacknus FYI renamed branch |
|
I didn't know I could just rename the branch using the Github interface, lol |
# Conflicts: # Cargo.toml # src/file_dialog.rs
# Conflicts: # src/config/labels.rs # src/config/mod.rs # src/file_dialog.rs
# Conflicts: # Cargo.toml # src/file_dialog.rs
# Conflicts: # Cargo.toml # src/data/directory_content.rs # src/file_dialog.rs
Feature request to display metadata and sort by size, date etc (#165)
This PR relies on #184.
TableBuilderLabel) inTableemilk/egui#5045, done with workaroundEDIT: moved this PR over here so you can review/edit, the diffs here should be more clear once #184 is merged.