alipirpiran / Crypto-Price-Tracker-for-Gnome-Shell

An extension for Gnome-Shell to track price of crypto-currencies
https://extensions.gnome.org/extension/2817/crypto-price-tracker/
MIT License
45 stars 13 forks source link

feature to rearrange the order of items/pairs #18

Open azorpax opened 1 year ago

azorpax commented 1 year ago

Currently, we cannot rearrange the order of the pairs. The workaround I can think of is by deleting and re-adding the pairs in the order you want.

This request will give the user a way to rearrange the pairs in a convenient way. But, I am not sure, how it could be done. if drag n drop is possible then maybe that's the answer. If not, maybe adding buttons to indicate Up/Down? but how would it look in UI?

Any thoughts?

alipirpiran commented 1 year ago

I'm not sure drag and drop is available. I think it can be done by adding a button (rearrenge), when user click on it, up and down button appear on the items. And the text rearrenge button change to "Done". Also to save current order of items, it should be add to the schema. Maybe adding a priority property for each coin or ... But unfortunately i dont have enough time now to implement this feture. In the future i can do it.

azorpax commented 1 year ago

I just saw a drag-and-drop feature in an extension (Time++). so it's possible.
Still, I agree that we need the button "Rearrange" to activate the drag-and-drop of the items.

When Rearrange is active we can :

alipirpiran commented 1 year ago

Exactly 👌🏽