[tw] Re: [TW5] Appending (Rather than Overwriting) Text into a Tiddler

2016-08-10 Thread Zaphod Beeblebrox
So sorry for the long delay in replying, but I've had to be out of town 
(and AFK) for some days...

*@Mark S.*

Hi Z
>
> My quick test suggests that the names don't have to be separated by 
> carriage returns. Try it and see.
>
> The reason it matters is that I think (not sure) it might be possible to 
> do this with the ActionListopsWidget operator without any extra-TW 
> programming IF carriage returns are not required.


Thank You for looking into this for me :) 

I may delve into that ActionListopsWidget later.

Maybe your imported tiddlers could be marked with a tag like IMPORT. Then 
> you could use the tag filter, and all your users would have to do is 
> uncheck the special IMPORT tag when they want to clear the decks. Or a 
> simple button in the sidebar could wipe out the IMPORT tag with a single 
> click.
>

I like that IMPORT idea, but I especially like the button in the SideBar to 
wipe the tag out...
 

> Hmm ... If your users are so unsavvy, how do they manage to import the 
> .JSON in the first place?
>
 
Heh heh - Trust me, some had the greatest amount of trouble (and needed 
detailed instructions) to be able to copy download links (from my former 
static-page site) and paste them into their download managers :Þ

With the method I came up with, all they have to do is drag & drop the 
.JSON file, click "Import", then hit F5 to reload the TW (yet I still 
anticipate hand-holding will be necessary for a few).


*@PMario*

Hi Zaphod,
>
> You could tell your users, that they should just add a tag eg: default to 
> the tiddlers, they want to keep. 
> In your json file, that overwrites the Default tiddlers just add 
> [tag[default]] at the beginning or the end. -> everyone will be happy :)  
> You can overwrite the default setting. You just have to remember that you 
> need to add one extra line. 
>
> TW is based on many conventions. This is one for you and your users. 
>
> just a thought.
>
 
Thank You very much for this 'thought,' Mario!

I really like this idea a lot, and will probably end up going with it in 
the long run :)

--Zaphod

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/090d9cb5-8683-48a1-85c4-d45e445f1a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Appending (Rather than Overwriting) Text into a Tiddler

2016-07-30 Thread PMario
Hi Zaphod,

You could tell your users, that they should just add a tag eg: default to 
the tiddlers, they want to keep. 
In your json file, that overwrites the Default tiddlers just add 
[tag[default]] at the beginning or the end. -> everyone will be happy :)  
You can overwrite the default setting. You just have to remember that you 
need to add one extra line. 

just a thought.
mario

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/fa93589d-89ca-47bd-a1ef-b9cb724eccde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Appending (Rather than Overwriting) Text into a Tiddler

2016-07-29 Thread 'Mark S.' via TiddlyWiki
Hi Z

My quick test suggests that the names don't have to be separated by 
carriage returns. Try it and see.

The reason it matters is that I think (not sure) it might be possible to do 
this with the ActionListopsWidget operator without any extra-TW programming 
IF carriage returns are not required.


Maybe your imported tiddlers could be marked with a tag like IMPORT. Then 
you could use the tag filter, and all your users would have to do is 
uncheck the special IMPORT tag when they want to clear the decks. Or a 
simple button in the sidebar could wipe out the IMPORT tag with a single 
click.


Hmm ... If your users are so unsavvy, how do they manage to import the 
.JSON in the first place?


Mark


On Friday, July 29, 2016 at 4:17:11 PM UTC-7, Zaphod Beeblebrox wrote:
>
>
>
> On Friday, July 29, 2016 at 12:18:56 PM UTC-4, Mark S. wrote:
>>
>> I don't follow your use case. Are both you and your users saving to the 
>> same TW? How are you overriding your users DefaultTiddlers?
>>
>
> For each 'update,' I'm planning on sending out a complete TW, with all new 
> posts (tiddlers) included (for those that don't wish to keep a TW around), 
> and also a .json file containing just the new posts since the last update, 
> for the folks who will be maintaining their own local TW.
>
> The method I was going to use was just to include a $:/DefaultTiddlers 
> tiddler containing the titles of the updated posts, so that they would 
> automatically open upon a refresh of the TW after importing the .json 
> file.  But after talking to my friend I see that would not work as well as 
> I thought...
>
>
> Why do you need to put a carriage return after each item, since it's all 
>> in the DefaultTiddlers which isn't usually used for viewing lists?
>>
>
> I thought the title of each tiddler in the file needed to be on its own 
> line?  eg:
>
> [[tiddler1]]
> [[tiddler2]]
> [[tiddler3]]
>
>
> Do your import tiddlers have anything in common? In particular, a tag? 
>> Then you could just add this to the bottom of the DefaultTiddlers:
>>
>> [tag[MyImportedTiddlers]]
>>
>> and your imported tiddlers would be automatically opened when the TW is 
>> opened.
>>
>
> That is a very good idea, and one that I hadn't considered at all...
>
> But, no, they don't *ALL* share a common tag - MOST are tagged "Movie", 
> some "Short Film" and then there's a handful of other tags...
>
> Plus, if I did a match on some tag within the DefaultTiddlers file, ALL 
> tiddlers with that tag would attempt to open, including others that were 
> already in the users' TW...
>
> If we were dealing with even moderately tech-savvy folks, it wouldn't be 
> such a problem, but trust me, the majority of my users do well to know how 
> to turn their computers on :-P - Even so, doing it the way I have 
> envisioned, I will still have to write up detailed instructions for them on 
> how to go into ControlPanel and delete the 'updated' tiddler titles after 
> they've viewed and digested them.
>
> --Zaphod
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/57838363-6245-4e17-91b5-d6ea3638432f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Appending (Rather than Overwriting) Text into a Tiddler

2016-07-29 Thread Zaphod Beeblebrox


On Friday, July 29, 2016 at 12:18:56 PM UTC-4, Mark S. wrote:
>
> I don't follow your use case. Are both you and your users saving to the 
> same TW? How are you overriding your users DefaultTiddlers?
>

For each 'update,' I'm planning on sending out a complete TW, with all new 
posts (tiddlers) included (for those that don't wish to keep a TW around), 
and also a .json file containing just the new posts since the last update, 
for the folks who will be maintaining their own local TW.

The method I was going to use was just to include a $:/DefaultTiddlers 
tiddler containing the titles of the updated posts, so that they would 
automatically open upon a refresh of the TW after importing the .json 
file.  But after talking to my friend I see that would not work as well as 
I thought...


Why do you need to put a carriage return after each item, since it's all in 
> the DefaultTiddlers which isn't usually used for viewing lists?
>

I thought the title of each tiddler in the file needed to be on its own 
line?  eg:

[[tiddler1]]
[[tiddler2]]
[[tiddler3]]


Do your import tiddlers have anything in common? In particular, a tag? Then 
> you could just add this to the bottom of the DefaultTiddlers:
>
> [tag[MyImportedTiddlers]]
>
> and your imported tiddlers would be automatically opened when the TW is 
> opened.
>

That is a very good idea, and one that I hadn't considered at all...

But, no, they don't *ALL* share a common tag - MOST are tagged "Movie", 
some "Short Film" and then there's a handful of other tags...

Plus, if I did a match on some tag within the DefaultTiddlers file, ALL 
tiddlers with that tag would attempt to open, including others that were 
already in the users' TW...

If we were dealing with even moderately tech-savvy folks, it wouldn't be 
such a problem, but trust me, the majority of my users do well to know how 
to turn their computers on :-P - Even so, doing it the way I have 
envisioned, I will still have to write up detailed instructions for them on 
how to go into ControlPanel and delete the 'updated' tiddler titles after 
they've viewed and digested them.

--Zaphod

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/6655a07b-4a6c-426e-b7a1-2e5c5924b336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Appending (Rather than Overwriting) Text into a Tiddler

2016-07-29 Thread 'Mark S.' via TiddlyWiki
I don't follow your use case. Are both you and your users saving to the 
same TW? How are you overriding your users DefaultTiddlers?

Why do you need to put a carriage return after each item, since it's all in 
the DefaultTiddlers which isn't usually used for viewing lists?

Do your import tiddlers have anything in common? In particular, a tag? Then 
you could just add this to the bottom of the DefaultTiddlers:

[tag[MyImportedTiddlers]]

and your imported tiddlers would be automatically opened when the TW is 
opened.

Good luck!
Mark

On Friday, July 29, 2016 at 8:05:58 AM UTC-7, Zaphod Beeblebrox wrote:
>
> It's me again.
>
> Having much success with overriding my users' 
> *$:/ControlPanel/DefaultTiddlers* and *forcing* my 'update' tiddlers to 
> appear after import, but apparently I wasn't forward-thinking enough.  
> While discussing it with one such user a few days ago, he brought up the 
> point that he had several tiddlers that he liked to have appear every time 
> he loads his TW, and if I 'injected' my new updates it would overwrite what 
> he had there before.
>
> So, is there a way to *append* the updated tiddler titles to the 
> (beginning or end) of any titles that already exist in Defaulttiddlers ?
>
> After a two-day search of both the group and tiddlywiki.com for 
> 'append-like' information all I've found of relevance.is this bit of code 
> from *Jed Carty* (originally from someone else I believe, but I can't 
> find the original post, now...):
>
> \define thisAction()
> <$action-setfield $tiddler=HelloThere text=
> """$(HelloThereText)$$(LearningText)$"""/>
> \end
>
> <$set name=HelloThereText value={{HelloThere}}>
> <$set name=LearningText value={{Learning}}>
> <$button>Test
> <>
> 
> 
> 
>
> This seems to work, but what I really need is not to read from another 
> tiddler, but something in the form of a tiddler that the user could open, 
> and perhaps click a button, and have a predefined list of tiddler titles 
> (contained in this same tiddler) that would be appended to their 
> DefaultTiddlers file.
>
> Ideally, it would also have the capacity for multiple tiddler titles, at 
> least 10(?).
> Also, there would need to be a way of including carriage returns so that 
> each title creates a new line for itself (\n perhaps?)
>
> Any ideas?
>
> --Zaphod
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/f252fd17-76d6-4f16-99e0-aa9e4e1dc1c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.