mihon icon indicating copy to clipboard operation
mihon copied to clipboard

Add library drag and drop sorting

Open AbdelrahmanElnezamy121 opened this issue 1 year ago • 3 comments

Describe your suggested feature

Add library drag and drop sorting

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
  • [X] I have updated the app to version 0.16.1.
  • [X] I will fill out all of the requested information in this form.

AbdelrahmanElnezamy121 avatar Jan 23 '24 14:01 AbdelrahmanElnezamy121

Care to elaborate?

MajorTanya avatar Jan 23 '24 14:01 MajorTanya

Care to elaborate?

They probably mean a custom sort order where you can freedly drag and drop your entries from one position to another and it stays in that position.

THElegend5 avatar Jan 23 '24 15:01 THElegend5

Care to elaborate?

They probably mean a custom sort order where you can freedly drag and drop your entries from one position to another and it stays in that position.

It's what I mean

AbdelrahmanElnezamy121 avatar Jan 23 '24 18:01 AbdelrahmanElnezamy121

Before, in the settings it was possible to do this, it was much more practical.

joaoandre120 avatar Jan 27 '24 00:01 joaoandre120

I believe it should be possible to use some implementation of https://github.com/aclassen/ComposeReorderable for the drag/drop. Then in the library tab when the user is in selection mode, an option in the topbar for custom order could be added. This will allow the user to drag/drop instead of select more items and the order idx will be stored in the library item model. Finally a custom sort option could be added in the settings dialog.

MartsTech avatar Feb 12 '24 11:02 MartsTech

Before, in the settings it was possible to do this, it was much more practical.

Yes, this was omitted when the screen in question was migrated to the new Compose UI framework. My personal guess is that it would have been a nightmare to properly implement.

I believe it should be possible to use some implementation of https://github.com/aclassen/ComposeReorderable for the drag/drop. Then in the library tab when the user is in selection mode, an option in the topbar for custom order could be added. This will allow the user to drag/drop instead of select more items and the order idx will be stored in the library item model. Finally a custom sort option could be added in the settings dialog.

That looks promising but as with every feature for Mihon, someone will have to take this up and PR it in order for it to happen 👍 Thanks for the research and recommendation

MajorTanya avatar Feb 12 '24 16:02 MajorTanya