-to create a button which saves a list of open Tiddlers in a new Tiddler, (SaveStory)
\define saveSnapshot()
<$button
set="$:/_snapshots##$(snapText)$"
setTo={{$:/StoryList!!list}}>
{{$:/core/images/done-button}}
Save</$button>
\end
-to create a button to open all Tiddlers contained in a Tiddler while closing all others.(OpenStory)
\define loadSnapshot() <$button set="$:/StoryList!!list" setTo={{$:/_snapshots##$(snapSelect)$}}> {{$:/core/images/right-arrow}} Load</$button> \end-Jan
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a098f730-cf23-4c0f-ac54-3425487ce93d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c46836b9-c347-4d73-b801-13e5a9cf3bf8%40googlegroups.com.
\define saveSnapshot()
<$button> Save Snapshot
<$action-setfield $tiddler="$(snapshot)$" $field="text" $value={{$:/StoryList!!list}} tags="Snapshot">
</$button>
\end
\define showSnapshot()
<$button set="$:/StoryList!!list" setTo={{$(snap)$}}>Show Snapshot</$button>
\end
;Show Snapshot
<span title="Select a Snapshot"><$select tiddler="$:/_snapshots" field="story-name" default='(none)'>
<$list filter="[tag[Snapshot]]" variable="currentIndex">
<option value=<<currentIndex>>><<currentIndex>></option>
</$list>
</$select></span>
<$set name="snap" value={{$:/_snapshots!!story-name}}>
<<showSnapshot>>
</$set>
;Save Snapshot
<span title="Enter a Name"><$edit-text tiddler="$:/_snapshots" field="story-name"/></span>
<$set name="snapshot" value={{$:/_snapshots!!story-name}}>
<<saveSnapshot >>
</$set>
$:/_snapshots
. <$action-setfield
$tiddler="$(snapshot)$" $field="text" $value=
tags="Snapshot">
Hello,
Technically, this modification of matebele's version does just what you want:
\define saveSnapshot()
<$button> Save Snapshot
<$action-setfield $tiddler="$(snapshot)$" $field="text" $value= tags="Snapshot">
</$button>
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/81be6646-c94e-4f6d-abee-6afc107cc321%40googlegroups.com.
<$list filter="[all[current]tag[Snapshot]has[list]]">
<$list filter="[list[]!tag[excludeStory]]"><$link><$view field="title"/></$link><br/></$list>
</$list>
I don't think there is a "split" operator -- at least it's not mentioned in the docs.
And I don't think you can capture the nicely formatted list and tuck it into a tiddler. It would be cool if you could.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/761b548c-826f-4b73-b615-1d6673529b92%40googlegroups.com.
Betreff: | Re: [tw] Re: TW5 Alternatives for TWClassic-Plugins : OpenStory/SaveStory |
---|---|
Datum: | Mon, 2 May 2016 10:08:18 -0700 (PDT) |
Von: | 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> |
Antwort an: | tiddl...@googlegroups.com |
An: | TiddlyWiki <tiddl...@googlegroups.com> |
Hi Mark,
Thanks for the .json
The view-template works fine, it creates a neat row and tiddlers tagged with excludeStory are not shown, but they are saved in the list and are opened when you load the story.
For my purpose would be best to exclude them at once...
I understand that the Problem is in opening tiddlers contained in the textfield if they are not properly aligned. In TWC the tiddlytools StorySaverPlugin managed this...http://www.tiddlytools.com/#StorySaverPlugin
Yours Jan
-------- Weitergeleitete Nachricht --------
Betreff: Re: [tw] Re: TW5 Alternatives for TWClassic-Plugins : OpenStory/SaveStory Datum: Mon, 2 May 2016 10:08:18 -0700 (PDT)
Von: 'Mark S.' via TiddlyWiki <tidd...@googlegroups.com> Antwort an: tiddl...@googlegroups.com An: TiddlyWiki <tidd...@googlegroups.com>
...
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/00a7672a-e41a-43ae-868e-f0344a9f77e7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/00a7672a-e41a-43ae-868e-f0344a9f77e7%40googlegroups.com.
Hah! I bet this isn't what you really wanted ;-)
You can drag-n-drop the EXPERIMENTAL plugin from http://mashive.tiddlyspot.com/.
The list is now stored in field "story". The view template includes a button to open everything in a snapshot. Probably need to tweak that eventually.
Have fun,
Mark
On Wednesday, May 4, 2016 at 8:35:05 AM UTC-7, Jan wrote:
Hello Mark,
now I had the time to try out both attemps. They both work very good. Many thanks for this.
Do you want to make them accessible for the community by turning them into a plugin, I think this could be useful for some of us?
I like your first solution (V3) better, I think it could even be an advantage that the tiddlers are stored in a list-field.
-Would it be possible to give this List-field a custom name for example "story"?
-Would it be possible to implement a button to open the story in the viewTemplate so that it appears below the List of tiddlers?
and I encountered another issue:
Is it possible to rearrange the tiddlers by drag and drop like it was with the rearrangeTiddlersPugin in TiddlyTools?
I think it might be better to post this as a new question.
Cheerio and Thanks
Jan
On Monday, May 2, 2016 at 5:34:37 AM UTC-7, Jan wrote:
Hello Mark,
On Wednesday, April 27, 2016 at 3:24:46 PM UTC-7, Jan wrote:
Hello Mark,
...
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc2637da-328a-4865-9e96-369fc1353ef7%40googlegroups.com.
Hah! I bet this isn't what you really wanted ;-)
You can drag-n-drop the EXPERIMENTAL plugin from http://mashive.tiddlyspot.com/.
The list is now stored in field "story". The view template includes a button to open everything in a snapshot. Probably need to tweak that eventually.
Have fun,
Mark
On Wednesday, May 4, 2016 at 8:35:05 AM UTC-7, Jan wrote:
Hello Mark,
now I had the time to try out both attemps. They both work very good. Many thanks for this.
Do you want to make them accessible for the community by turning them into a plugin, I think this could be useful for some of us?
I like your first solution (V3) better, I think it could even be an advantage that the tiddlers are stored in a list-field.
-Would it be possible to give this List-field a custom name for example "story"?
-Would it be possible to implement a button to open the story in the viewTemplate so that it appears below the List of tiddlers?
and I encountered another issue:
Is it possible to rearrange the tiddlers by drag and drop like it was with the rearrangeTiddlersPugin in TiddlyTools?
I think it might be better to post this as a new question.
Cheerio and Thanks
Jan
On Monday, May 2, 2016 at 5:34:37 AM UTC-7, Jan wrote:
Hello Mark,
On Wednesday, April 27, 2016 at 3:24:46 PM UTC-7, Jan wrote:
Hello Mark,
...
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc2637da-328a-4865-9e96-369fc1353ef7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fe0b2695-4a21-40ce-8f3e-15dd084321eb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dd3ce9db-838c-4b19-9865-53da36ab0b83%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ecd13e96-480f-4c16-a068-2b2cca370c36%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f8f3d9bb-eddf-437c-9a2b-5b97e0889007%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e8a3f2b8-02b0-4463-8537-4c6c9914734f%40googlegroups.com.