[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread Birthe C
Thank you so much, Mark S,
You just saved me a lot of time.

Birthe

-- 
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/806fe614-b8c2-4410-b4da-adeed77bcafd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread 'Mark S.' via TiddlyWiki
Here's a solution that doesn't depend on 3rd party javascript. I munged the 
existing TOC code so it could export a list.

Put the following code in a tiddler:

\define exportlist(tag) 
<$button>Create List for ''$tag$''
<$action-listops $tiddler="exports" $filter="[[]]"/>
<>

\end
\define toc-body2(tag,sort:"",itemClassFilter,exclude,path)
  <$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] 
-[[$tag$]] $exclude$""">
<$vars item=<> path="""$path$/$tag$""" 
excluded="""$exclude$ 
-[[$tag$]]""">
  <$set name="toc-item-class" filter="""$itemClassFilter$""" 
emptyValue="toc-item" value="toc-item-selected">
  <$list filter="[all[current]toc-link[no]]" 
emptyMessage="<$action-listops 
$tiddler='exports'  $subfilter='[{!!title}]'/>">
 <$view field="title"/>
  
  <$macrocall $name="toc-body2" tag=<> sort="""$sort$""" 
itemClassFilter="""$itemClassFilter$""" exclude=<> path=<>/>

  

  
\end

\define toc2(tag,sort:"",itemClassFilter:" ")
<>
\end



Then, either make the tiddler a global macro, or inside the tiddler invoke:


<>

Where you replace "HelloThere" with your root tag. This will create a 
button. Click on the button and it will create your list in the list field 
of the "exports" tiddler.

Then, go to the filter tab of the advanced search dialog and enter:

[list[exports]]

This will list the items to be exported. Use the export button to export 
your tiddlers.

I haven't tested this with tags that have spaces, so that's still a 
question mark. Be sure to make backups!

-- Mark



On Thursday, May 17, 2018 at 4:18:41 AM UTC-7, Shay Shaked wrote:
>
> I want a section of my TW to be exported into another wiki. The section is 
> defined by a tag, and then there are tags under that tag. Is there a way to 
> export ALL of them to .tid format, and then import them as a bunch to the 
> new wiki, or do I have to drag, one by one?
>

-- 
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/8295cdce-7b0c-41fa-99ff-557ee2f8f41e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread TonyM
Sounds like matthew in this thred provided the final clue.

Tony

-- 
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/92b7c579-3174-4673-9891-777f72b9dab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread 'Mark S.' via TiddlyWiki
Does the bundler-plugin do nested tags (i.e. TOC-style cascading tags) ?

Thanks!
-- Mark

On Thursday, May 17, 2018 at 7:11:21 AM UTC-7, PMario wrote:
>
> Hi, 
>
> My bundler-plugin 
> 
>  
> may be of interest. 
>
> have fun!
> 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/d8f9edea-de21-4c96-9997-a68472c6cf57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread PMario
Hi, 

My bundler-plugin 

 
may be of interest. 

have fun!
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/66708b1e-64fa-44c1-808b-1d32577ac4c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread Matthew Lauber
If you add Tobias' toc filter 
operator http://tobibeer.github.io/tb5/#filter%3A%20toc you should be able 
to use the advanced search to find all your tiddlers via 
`[toc[TopLevelTag]]` and then under the dropdown to the right, you should 
be able to export as json.  You should be able to import from the exported 
json file.  You can't export as tid, because a tid file can only contain 
one tiddler.

On Thursday, May 17, 2018 at 7:18:41 AM UTC-4, Shay Shaked wrote:
>
> I want a section of my TW to be exported into another wiki. The section is 
> defined by a tag, and then there are tags under that tag. Is there a way to 
> export ALL of them to .tid format, and then import them as a bunch to the 
> new wiki, or do I have to drag, one by one?
>

-- 
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/2282f517-6c46-4442-9ec7-93fe53809753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Export/Import all nested tags?

2018-05-17 Thread @TiddlyTweeter
Export guidance here ... 
https://tiddlywiki.com/#How%20to%20export%20tiddlers . See the section on 
"Exporting tiddlers matching a criteria (filter)". If all (and only) are 
covered by the tag then the needed filtered search will be easy. FWIW, JSON 
export format may be the most appropriate.

In addition there is an excellent "Bundler" plugin by PMario at 
https://wikilabs.github.io/editions/bundler/#%24%3A%2Fplugins%2Fwikilabs%2Fbundler
 
excellent if you want to do this kind of this regularly and largely 
automate the process.

On Thursday, 17 May 2018 13:18:41 UTC+2, Shay Shaked wrote:
>
> I want a section of my TW to be exported into another wiki. The section is 
> defined by a tag, and then there are tags under that tag. Is there a way to 
> export ALL of them to .tid format, and then import them as a bunch to the 
> new wiki, or do I have to drag, one by one?
>

-- 
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/55a8e2e9-b538-4509-9c2d-558ed34af554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.