leo-arch / clifm

The shell-like, command line terminal file manager: simple, fast, extensible, and lightweight as hell.
https://github.com/leo-arch/clifm/wiki
GNU General Public License v2.0
1.36k stars 39 forks source link

order changes unexpectedly #219

Closed muellerto closed 1 year ago

muellerto commented 1 year ago

Describe the bug The order of directories changes after jumping into one and returning from there.

To Reproduce The start situation is as follows: 3 The directories are ordered, everything looks nice.

Then I step into 10_X using ELN 2. I get there, all OK, and then I return from there using .. I get again into the start directory but the file list looks now as follows: 4 10_X is now at the bottom. Why? This changing order is especially annoying when you want to do an action in several directories and you must process them one by one.

Expected behavior The order should not change as long as file names do not change.

Desktop:

Additional context This wrong order is volatile. When you press Enter or rf the order is again as expected.

leo-arch commented 1 year ago

Hi @muellerto. A few quick tests (I've recreated your dir structure) and no luck yet.

  1. What sort order are you using? Run st to find it out. Run it both before and after changing the directory, to make sure it remains the same (if it changes, we a clearer notion of our problem).

  2. Also, try running with a new profile (clifm -P newprof) to exclude a configuration issue (which nonetheless should also be investigated).

  3. Run in stealth mode (clifm -S) as well, for the same reason.

muellerto commented 1 year ago

Sort order is: none. (note: ListDirsFirst is still true in .clifmrc)

But I can't reproduce this issue today. I have still the same binaries as yesterday, extra for a test. But it doesn't happen anymore. Strange. Yesterday I had it all the time.

I let the case open, will have a eye on it today.

muellerto commented 1 year ago

Never had this anymore. A self-solving problem, never good :(

leo-arch commented 1 year ago

I'll keep this in sight anyway.