Skip to content

RFE: Add an ability to define "smarter" collapses #130

@JacobCallahan

Description

@JacobCallahan

Problem

Collapses are a nice feature, especially for people that use specific backup patterns for files. However, all collapses need to be defined per-name in the config. This isn't really reasonable for things like backup files, where any file name could have a backup that should be nested.

Description

What I'd like to see is some way to describe a variable pattern that we could use when writing collapse rules. Maybe something like this.

  - capture_pattern: \*$  # some pattern to match all files or only ones a user wants 
    pattern: {capture_pattern}.bak$
    importance: -1
    collapse:
      name: {capture_pattern}

Alternatives

The only current alternative I know is to specify a separate collapse rule for each file you want to have collapsed.

Additional information

Current directory view

Image

Desired directory view (with "smart" collapse)

Image

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