-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ability to sort symbols in the diff view #39
Comments
Sure, I like this idea. Though instead of inside For "Reverse function order": that's specifically for objects compiled with Since that's an object-level property (it's set by dtk-template if |
I think it'd make sense for the object-level setting to apply first, and the user-level setting has no awareness of it. So the "base order" that the view receives is already reversed if deferred is set. Where would you want the sorting of the model to happen? I assume it should be persistently sorted so that the render function isn't running the sort every frame. Is this the line that sorts them currently? Line 118 in 0a85c49
|
Yes, that's the baseline sort when loading the object. I think this should happen in the view, though. Probably here, alongside the existing logic: objdiff/src/views/symbol_diff.rs Line 274 in 0a85c49
It's totally fine to do the sort every frame. The beauty of immediate mode UI! |
I was thinking it'd be useful to be able to sort symbols by...
For selecting sort order, I think either a flyout menu from
Diff Options
(likeRecent Projects
), or a popup (likeAlgorithm
), would suffice. It should override the project settings as it's a user-level preference. The user selects one sort method, and can select it again for reverse order. All sections are sorted by the same criterion.Also, it seems like this could replace
Reverse function order
by just beingOffset (descending)
, but I'm not very familiar with the use case of the existing option.Given approval of the idea and some pointers on implementation, I wouldn't mind implementing it.
The text was updated successfully, but these errors were encountered: