Prayag2 / konsave

A command line program written in Python to let you backup your dotfiles and switch to other ones in an instant. Works out-of-the box on KDE Plasma!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order of listed profiles

kAlvaro opened this issue · comments

Are profiles listed in any particular order?

$ konsave -l
Konsave profiles:
ID      NAME
1       alvaro-20221130_080810
2       alvaro-20221125_080803
3       alvaro-20221213_090958
4       alvaro-20221128_090926
5       alvaro-20221130_070734

In this example, the latest profile is shown right in the middle (nr. 3).

The order in which the profiles are listed is determined by the os.listdir() function in Python (no specific order). I can, however, make it print in alphabetical order.

Not sure what order would be more useful for most people (alphabetical or creation time) but directory order is definitively not especially helpful.

Fixed.