Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow paired files to be by ext #54

Merged
merged 11 commits into from
Jan 26, 2023
Merged

Allow paired files to be by ext #54

merged 11 commits into from
Jan 26, 2023

Conversation

gtronset
Copy link
Owner

@gtronset gtronset commented Jan 25, 2023

This adds the ability to be specific about which extensions should qualify as being a "pair", allowing for targeted filetypes instead of having to rely upon the global Filetote extension list.

These extensions are additive and independent from the global list, meaning those specified in the pairing config node will apply even if they do not otherwise appear in the global list. This can be useful for only targeting paired files, or only caring about certain file types if they are pairs.

This introduces a breaking change to the config of pairs. pairing has been converted from a boolean to an object with other like-config. Take the following config:

filetote:
  pairing: true
  pairing_only: false

These will both now be represented as individual settings within pairing:

filetote:
  pairing:
    enabled: true
    pairing_only: false
    extensions: ".lrc"

Both remain optional and both default to false.

@gtronset gtronset marked this pull request as ready for review January 26, 2023 00:00
@gtronset gtronset merged commit 9187a34 into main Jan 26, 2023
@gtronset gtronset deleted the gt-paired-ext branch January 26, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant