bogenpirat / remote-torrent-adder

A handy Chrome extension to add torrent files to torrent clients
237 stars 81 forks source link

Feature Request: Sort Label List Drop Down #279

Open ajtatum opened 4 years ago

ajtatum commented 4 years ago

This could be just me, and I've honestly looked into the code to see how it could be implemented but I don't have much experience with Chrome Extensions. In any case, it would be extremely nice/helpful if when the popup comes up with the dropdown list of labels... if that list were sorted alphabetically. Currently, it appears as though it's sorted by last used (haven't looked at the code, just the user experience). While nice at times, it would be nicer overall if it were just sorted by name to make things easier to find. For extra credit, implementing something like bootstrap-select.js would be freakin sweet (find as you type). But again, not sure how complex it is to add external libraries like that to an extension. Otherwise, love the plugin... keep up the good work!

bogenpirat commented 4 years ago

the label and directory selector are ordered by last usage, that's true (and so by design).

i suppose if you use a lot of different entries, it'd be more comfortable to have some sort of auto completion. i don't agree that ordering should default to alphabetical; last-used is just more comfortable if you keep downloading similar things which i believe is a more common use case than switching between the entire set of entries.

wrt implementation: the selection dialog is just plain old javascript injected into the given website ("content script"). the pitfall here is that you might get conflicting libraries if you name things similarly to what the website itself uses, but other than that, it's just regular web design. which is why it looks so ugly - i'm not a good web designer (and frankly don't try to be).

feel free to submit a pull request if you whip up something pretty, but for now i don't see this as a big priority on my end.