Skip to content

[Feature Request]: Adding fields based on paths #1203

@mm12

Description

@mm12

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

Description

Currently, there is a macro for adding tags based on folders. I believe a similar functionality to this would be extremely helpful. I have paths like:

  • series-{some-series-name}/{page_number}_{total_pages}.ext
  • creator-{artist_ident}/{source_ident}_{page_number}.ext
  • creator-{artist}/{series-name}_{source-name}_{page_number}.ext
  • creator-{artist}/{series-name}_{a-few-tags-comma-seperated}_{page_number}.ext

And I want to be able to import the information as fields.

Milestone: This should be added before searching by fields is added.

Solution

A macro similar to folders->tags that allows users to select items and add populate fields based on a template/regex. I suggest allowing full regex, ie:
Find: creator-(.+)\/abc(\d+)_(\d+)\..+ would match the 2nd example where the source ident is abc then some numbers.
Then, population could allow for editing of this, so that for example, source_ident ($2) can be formatted as a source url, such as example.com/abc/$2

Alternatives

Alternatively, being able to populate (not just add) fields via multi-select is possible. This is desirable and would be a great addition as well, however, adds unnecessary manual work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions