Referencing lists in t2i-framework userInput options

----If I have a list of text options in my script that includes:

myList here, there be apples second, a plum third, a pear.

---and I have a place in the t2i-framework that specifies user input options

settings userInputs foo label = foo type = select remember = true options = {import:myList} //i know this isn’t correct, but gives a sense of what I’m trying to do

Is there a way to have settings.userInputs.foo.options. reference the complete set of options in myList? One item of note is that the myList options are full sentences, and thus contain punctuation such as commas. So joinItems statements would not work with a comma delimiter.

thank you!

2 points · 2 comments · view on lemmy.world

2 Comments

VioneT@lemmy.world · 1 pts · 1y (1 reply)

You can with the following:

settings
  userInputs
    foo
      label = foo
      type = select
      remember = true
      options
        meta:import
          from = {import:my-list}

Then on the my-list generator:

$output
  here, there be apples
  second, a plum
  third, a pear.
danMiller@lemmy.world · 1 pts · 1y

This worked for me. thank you so much