nextcloud / bookmarks

🔖 Bookmark app for Nextcloud
https://apps.nextcloud.com/apps/bookmarks
GNU Affero General Public License v3.0
999 stars 173 forks source link

Automatically sort bookmarks and folders #2162

Open Programie opened 3 months ago

Programie commented 3 months ago

Is your feature request related to a problem? Please describe. I want my bookmarks and the folder structure ordered by title to keep them organized.

Describe the solution you'd like Add some setting to allow the user to define the sorting of the bookmarks and/or folders which should be applied automatically once something changes. As not everyone might want the bookmarks to be reordered automatically, it should be possible to turn it off just like it is today (should probably the default).

The sorting setting should allow the user to select one of "title", "hostname", "last modified", etc.

Describe alternatives you've considered I'm currently using a browser extension for that job. But sorting the bookmarks on the server side would be better to keep the logic from the browser. That would also allow me to decrease the number of browser extensions being used which is always good.

github-actions[bot] commented 3 months ago

Hello :wave:

Thank you for taking the time to open this issue with the bookmarks app. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I'm Marcel and have been maintaining this software the last few years. I currently work for Nextcloud but maintain this app in my free time, because it is not an official Nextcloud product. My day job at Nextcloud is pretty awesome but sadly leaves me with less time for side projects like this one than I used to have. I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue Cheers :blue_heart:

marcelklehr commented 3 months ago

Mh, this should be implemented already. See below:

image

Programie commented 3 months ago

Yes, but that won't automatically sort everything, right?

At least the sorting does not happen if I add a new bookmark from by browser and sync using floccus. The newly added bookmark is still at the end of the folder.

The sorting only seems to affect the bookmark view in Nextcloud but does not alter the internal order which is also exposed in the API used by floccus.

marcelklehr commented 3 months ago

ah, yes, the sorting options are a view only feature. They won't affect the ordering of the bookmarks when syncing with floccus, that's true. So, you'd like something like a per-user setting that enforces a certain order. Would you like that to be enforced for all your bookmarks or per folder?

Programie commented 3 months ago

In my case, I want every folder to be sorted. So it should be enforced for every folder.

And the same should also happen for the folders itself.

marcelklehr commented 3 months ago

Great idea!