Skip to content

feat: support relative recent time style #1657

@erickguan

Description

@erickguan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions