Easer icon indicating copy to clipboard operation
Easer copied to clipboard

add the possibility to sort lists

Open racuna opened this issue 5 years ago • 4 comments

I know there is other priorities more important than the UI right now, but would be very helpful for a user level to add the possibility to sort the Script list (also, events, conditions, and profiles), and add visual indentation (maybe with expand/collapse feature too) for child scripts too.

Maybe drag support, or a header button to sort by name, or creation date, I dunno what is the easier way to do it.

I know, is not important right now, but I hope this can be considered in the future.

racuna avatar Oct 01 '18 13:10 racuna

Hiya, thanks for your understanding. I do have a plan to introduce a expand/collapse list to the "Script" page, as a temporary "trade-off" before a graphical view of the Script trees is implemented (which is a far way, partially because I'm not familiar with the canvas/draw APIs of Android).

For sorting, there is currently no recording of creation time and/or edit time, so (and naturally) the sorting is based on name. I may rely on the "modification date" provided by the system/filesystem, but this doesn't seem to be really useful if an expand/collapse list is provided (e.g. whether sort by every node in a tree, or the first node in that level?)...

renyuneyun avatar Oct 06 '18 16:10 renyuneyun

Hi, is this useful? https://developer.android.com/reference/android/widget/ExpandableListView

I'm glad you are interested in add expand/collapse lists :)

racuna avatar Oct 11 '18 15:10 racuna

so (and naturally) the sorting is based on name

@renyuneyun, to what parts of the app this statement applies to? It seems that ordering in all data views is (seemingly) random.

eandersons avatar Mar 16 '22 05:03 eandersons

@eandersons It's for the list of various data (i.e. Data page) (e.g. Script, Condition, ...). You are right. It is somewhat random -- Easer did not do anything for ordering them. Therefore, the order is the same as the order returned by the system (for the relevant data files).


To anyone reading this:

Because we now have the Pivot page, this issue is no longer as important as when it was raised. But this is still a potential and indeed useful improvement point.

See also #279 for some other suggested ways of ordering.

(As always, PRs are welcome.)

renyuneyun avatar Mar 20 '22 23:03 renyuneyun