Setting Control Panel fields with code

Hi tiddlywiki-ers,

Is there a way to set fields in the ControlPanel with code, I would like to do this for the github saver. I often find that the “Filename of target file” is not retained between sessions (Tiddloid on Android) and would like to create a button to set it.

many thanks

M

  • use $:/AdvancedSearch > Shadows to view the $:/core/ui/ControlPanel/Saving/GitHub shadow tiddler
  • when you edit this shadow tiddler, you will see the $edit-text widgets used to store the GitHub Saver configuration settings.
  • for your objective, you will want to create a $button widget to set the contents of $:/GitHub/Filename
<$button>set GitHub Filename
   <$action-setfield $tiddler="$:/GitHub/Filename" text="..."/>
</$button>

-e

1 Like