eza icon indicating copy to clipboard operation
eza copied to clipboard

feat: support relative recent time style

Open erickguan opened this issue 1 month ago • 0 comments

I propose a new --time-style relative-recent.

Motivation

I care if I am making changes to files in the current week. And I am more careful with files if this goes beyond the current week. eza currently doesn't provide a style to provide a relative time format & absolute time format based on a cut-off.

New behavior

Where in a week (7 days), eza uses --time-style relative. When a date goes beyond a week, eza uses --time-style iso.

The current eza only supports "--time-style relative" or "--time-style iso".

Future Work

eza provides a configuration for --time-style relative:

  1. cut_off: 7 days by default
  2. style: relative
  3. away_style: iso

Happy to contribute this.

erickguan avatar Oct 31 '25 21:10 erickguan