Lf: Sort files randomly

Created on 18 Jul 2020  路  6Comments  路  Source: gokcehan/lf

Is it currently possible?

question

Most helpful comment

I use this feature for music. So, yeah, just for fun.

Nothing wrong with having some fun, though.

All 6 comments

I think, yes. But I have no idea when it could be acutally useful (except just for fun)

I mean, ranger's got it. Maybe that's bloat? It wouldn't make lf generally slow though.

It should be pretty easy to implement but I know nothing about golang so I'm not able to make a PR about this.

As per usefulness, suppose the following scenario: you want to set the wallpaper to a random one but you want to take a look at it first.

I use this feature for music. So, yeah, just for fun.

Nothing wrong with having some fun, though.

With the current structure of the code, sorting order won't be changed again when you set sortby random repeatedly. @mvrozanti Can't you just make use of shuf for that? @igorhub Which music player doesn't have shuffle these days? To be honest, I would want to see set sortby none much before set sortby random.

@gokcehan mpv over ssh. Well, it has shuffle, but it doesn鈥檛 show you the playlist (maybe it can, I just don鈥檛 know how to turn it on), so I use the directory as my shuffled playlist.

I鈥檓 sure I could solve this "problem" in a more rational way. (Perhaps with cmus, or just by reading mpv鈥檚 manpage carefully). I just grabbed the first tool at hand when I first faced this situation, and it proved satisfactory. Without random sort, I鈥檇 find another solution. No big deal.

@gokcehan

Can't you just make use of shuf for that?

I guess, but not as quickly :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muellerto picture muellerto  路  8Comments

lucas-mior picture lucas-mior  路  6Comments

nostdm picture nostdm  路  6Comments

johnhk picture johnhk  路  8Comments

ipstone picture ipstone  路  6Comments