Skip to content

Allow use of mutiple styles csv files#14125

Merged
AUTOMATIC1111 merged 5 commits intoAUTOMATIC1111:devfrom
MisterSeajay:dev
Dec 2, 2023
Merged

Allow use of mutiple styles csv files#14125
AUTOMATIC1111 merged 5 commits intoAUTOMATIC1111:devfrom
MisterSeajay:dev

Conversation

@MisterSeajay
Copy link
Contributor

Description

Usage

To enable the multiple CSV functionality it is sufficient to add or amend the --styles-file command-line argument to include a wildcard * in the CSV file name, e.g. --styles-file=\path\to\styles*.csv. This will load all files matching the wildcarded file name.

The styles drop-down groups styles according to the file they were loaded from and inserts markers within the list to indicate which file the subsequent styles have been loaded from.

Edited styles are pushed to the bottom of the list of styles (no change to existing behavior). When an existing style is edited and saved, it will be saved to the same file that it was loaded from. New styles are always added back to the default styles.csv.

If the command line argument is omitted, or points to exactly one file, then the default behavior of using just that one file is maintained.

Checklist:

@AUTOMATIC1111 AUTOMATIC1111 merged commit ef1723e into AUTOMATIC1111:dev Dec 2, 2023
This was referenced Dec 4, 2023
@w-e-w w-e-w mentioned this pull request Dec 16, 2023
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.

2 participants