Hi, this is exactly what I want to do. 
Could you please give some instructions of where to put the snippet and how 
to execute it?

Thanks
Jon

On Wednesday, 22 October 2014 12:29:48 UTC+1, HowardM wrote:
>
> Hi Jeremy
>
> That was great - your snippet allowed me to split my large file into seven 
> separate files in 20 minutes.
>
> Thanks for your help
>
> Howard
>
> On 22 Oct 2014, at 11:20, Jeremy Ruston <jeremy...@gmail.com <javascript:>> 
> wrote:
>
> Hi Howard
>
> Here's a JavaScript snippet to delete all tiddlers matching a filter. It 
> uses the filter string currently loaded in the advanced search tiddler so 
> you can preview which tiddlers will be deleted:
>
> var 
> tiddlers=$tw.wiki.filterTiddlers($tw.wiki.getTiddlerText("$:/temp/advancedsearch"));for(var
>  
> t=0;t<tiddlers.length;t++) {console.log("Deleting " + 
> tiddlers[t]);$tw.wiki.deleteTiddler(tiddlers[t])};console.log(tiddlers.length 
> + " tiddlers deleted");
>
> Best wishes
>
> Jeremy
>
>
> On Tue, Oct 21, 2014 at 10:47 PM, HowardM <ma...@howardmorrison.plus.com 
> <javascript:>> wrote:
>
>> I have a large file which is very slow to save individual tiddler edits 
>> on my iPad - I gather this is a recognised issue with the current version 
>> of the app which will be addressed in a future version of it.  In the 
>> meantime, I would like to split the file based on tags, but cannot find a 
>> way of doing so without individually dragging and dropping a very large 
>> number of tiddlers.  Has anyone found a simple way of doing this ?
>>
>> I have previously applied a method using the Chrome Javascript console to 
>> delete tiddlers defined in a filter - I cannot remember who posted this 
>> advice - but this does not seem to work on TW5.1.2 - I just get 'invalid - 
>> unexpected token' messages.
>>
>> Grateful for any help.
>>
>> Howard
>>
>>
>>
>> -- 
>> 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 totiddlywiki+...@googlegroups.com <javascript:>.
>> To post to this group, send email to tiddl...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com <javascript:>
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/E-pfgJHf0A0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddlywiki+...@googlegroups.com <javascript:>.
> To post to this group, send email to tiddl...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to