#How can i further customize smoothie filenames?
16 messages · Page 1 of 1 (latest)
change this value: file format: %FILENAME% ~ %FRUIT%
say if you want %FILENAME% ~ Smoothie
then replace it
right
is there a way to automaticaly use algorithm, speed, etc?
wdym
if format.contains("%FRUITS%") || format.contains("%FRUIT") {
format = format.replace("%FRUIT%", "%FRUITS%").replace(
"%FRUITS%",
&format!(
" {}",
fruits
.choose(&mut rand::thread_rng())
.expect("Failed to select a random suffix")
),
);
}
if format.contains("%FILENAME") {
format = format.replace("%FILENAME%", &basename);
} else {
panic!("No `%FILENAME%` variable in recipe's `[misc] format:` key");
}
🙏
sm-rs doesn't have support for it yet
you make a suggestion in #1020031513502429268 in that case