On Jun 3, 5:05 am, PauldM <[email protected]> wrote:
> I want to add this custom to the QuickEdit_customList
> ----
> Section with editSection
> !!$[[enter sectionname|$1]]
> <<editSection ##$1>>
> ----
> Unfortunately the sectionname I entered isn't added after ## if no
> text is selected. What syntax do I use to make this work.

The $1 marker is used to insert the *selected text* into the custom-
formatted output
The $[[prompt|defValue]] syntax asks for input and inserts that text
into the output
Special use-case $[[prompt|$1]] asks for input, using the selected
text as default value

However... all occurences of $1 are substituted *before* any prompts
for input and each substitution is processed independently.  Thus, a
value you enter when prompted will not alter the value of $1 used in
other substitutions, and what you want is not currently supported by
the existing custom-format syntax.  To achieve the results you seek, I
would need to add a new syntax that allows for substitution of
prompted-input values in multiple places within a single custom-format
definition.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to