jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.38k stars 761 forks source link

Detail view sometimes highlights all files (not just last 5 min) #1927

Closed martinus closed 2 months ago

martinus commented 2 months ago

I'm using currently latest master 14fef032. When using nnn with detail view, as far as I understand it should only highlight the files that are < 5 minutes old. But sometimes (not always) it highlights all files:

image

Environment details (Put x in the checkbox along with the information)

Exact steps to reproduce the issue

  1. start VISUAL=nvim nnn -ed
  2. go to directory
N-R-K commented 2 months ago

as I understand it should only highlight the files that are < 5 minutes old.

It applies to files that were created or modified within the last 5 mins. Are you sure those files haven't been modified (i.e have their mtime updated) recently?

martinus commented 2 months ago

I'm pretty sure they were not modified, when I run ls -l --time=mtime (which should be the default anyways) it shows the same times. I believe it might have something to do with the modification time of the parent directory, when that was modified recently I get this behavior that everything inside looks recently modified even when it isn't

jarun commented 2 months ago

I believe it might have something to do with the modification time of the parent directory

I tried renaming a parent dir and checked the files within. Didn't see the issue.

martinus commented 2 months ago

I cant properly reproduce it unfortunately, most of the time it's working correctly. I couldn't narrow it down yet to when this really happens

jarun commented 2 months ago

Closing for now. Please reopen if you find a sure way of reproducing the issue.