I will continue my stream of thought even if it was not what you were
looking for Si.
For example
The following in a tiddler called edit-inline
<$set name=state-tiddler value=<<qualify $:/state/edit-inline>> >
<$reveal type="nomatch" state=<<state-tiddler>> text="edit">
<$button tag="div" tooltip="Click to edit inline" style="cursor:auto;
-webkit-user-select:text; -moz-select:text; -ms-select:text;
user-select:text;">
<$action-setfield $tiddler=<<state-tiddler>> text="edit"/>
<$transclude tiddler=<<currentTiddler>>/>
</$button>
</$reveal>
<$reveal type="match" state=<<state-tiddler>> text="edit">
<$button tag="div" tooltip="Click to edit inline" style="cursor:auto;
-webkit-user-select:text; -moz-select:text; -ms-select:text;
user-select:text;">
<$action-setfield $tiddler=<<state-tiddler>> text="edit"/>
{{||$:/core/ui/EditTemplate/body/editor}}
</$button><$button tooltip="Click to edit inline">
<$action-setfield $tiddler=<<state-tiddler>> text="view"/>
Close
</$button>
</$reveal>
</$set>
Then when you transclude part of a tiddler
Rather than
{{tiddlername}}
use
{{tiddlername||edit-inline}}
Then click to edit inline
My idea is to make a set of templates you can choose from at excise time.
Regards
Tones
On Tuesday, August 11, 2020 at 10:15:53 AM UTC+10, TW Tones wrote:
>
> Si,
>
> There are ways to do transcludes such that they are easy to edit in the
> top tiddler, as you say In a way that's what streams and other solutions do.
>
> Actually, inspired by your situation I have an idea for a excise tool with
> a difference.
>
> Regards
> Tones
>
> On Tuesday, August 11, 2020 at 4:11:34 AM UTC+10, si wrote:
>>
>> Thanks a lot Eric, that does the trick!
>>
>> @ TW Tones
>>
>> I did consider separate tiddlers, but for this specific case I decided
>> against it just because of the difficulty of jumping around to different
>> tiddlers when editing entries in the list.
>>
>> Of course plugins like saq's streams may be another good option that
>> solve this problem nicely.
>>
>> On Saturday, 8 August 2020 at 19:59:18 UTC+1 Eric Shulman wrote:
>>
>>> On Saturday, August 8, 2020 at 11:01:41 AM UTC-7, si wrote:
>>>>
>>>> I have a typed list in a tiddler:
>>>> # First entry
>>>> # Second entry
>>>> # Third entry
>>>> I want to transclude it into another tiddler, and then add additional
>>>> elements to the list:
>>>>
>>>
>>> It's not pretty, but this will work:
>>> <$vars newline="
>>> ">
>>> <$vars list={{List Tiddler}}>
>>> <$vars list={{{ [<list>addsuffix<newline>addsuffix[# Fourth entry]] }}}>
>>> <$vars list={{{ [<list>addsuffix<newline>addsuffix[# Fifth entry]] }}}>
>>>
>>> <<list>>
>>>
>>> 1) The first $vars defines a literal newline character (note the line
>>> break in between quotes is essential!)
>>> 2) The next $vars fetches the list content from the other tiddler
>>> 3) Each subsequent $vars appends a newline plus another numbered entry
>>> 4) The <<list>> shows the result (note the linebreak before this line is
>>> also essential)
>>>
>>> As an alternative, let's suppose you have two source tiddlers, "List
>>> One" and "List Two",
>>> where "List One" contains:
>>> # First entry
>>> # Second entry
>>> # Third entry
>>>
>>> and "List Two" contains:
>>> # Fourth entry
>>> # Fifth entry
>>>
>>> Note that each source tiddler must end with a newline.
>>>
>>> Then, you can combine these two source lists like this:
>>> <$vars list={{{ [{List One}addsuffix{List Two}] }}}>
>>>
>>> <<list>>
>>>
>>> -e
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b8f02663-411b-4784-97f7-61155585a846o%40googlegroups.com.