Hallo,
I just have build an Exporttool for the Sidebar which is able to export by user-name and to export the current story. And because it may also be helpful to export a certain tag, I implemented a function to open tiddlers by tag in the story.

The only issue is that the inputfields are a little slow to react. I do not know yet how to change this, help and comments are appreciated.

Cheers 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+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/578D5A87.1090707%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
[
    {
        "created": "20160718192223477",
        "creator": "JR",
        "text": "\\define openalltagged()\n<$button 
class=\"openalltagged\">\nopen <<tagexport>>\n<$list filter=<<tagexport>> 
variable=\"tid\">\n<$action-navigate 
$to=<<tid>>/>\n</$list>\n</$button>\n\\end\n\\define tagexport() 
\n[tag[$(tagone)$]search[$(tagtwo)$]]\n\\end\n<$set name=\"tagone\" 
value={{$:/macros/Exporter/Tags!!tagone}}>\n<$set name=\"var-user-filter\" 
value=<<tagexport>> >\n</$set>\nTag:<span title=\"Eins\"><$edit-text 
tag=\"input\" tiddler=\"$:/macros/Exporter/Tags\" field=\"tagone\" default=\"\" 
placeholder=\"Tag\"/></span>\nContains the string:<span 
title=\"Zwei\"><$edit-text tag=\"input\" tiddler=\"$:/macros/Exporter/Tags\" 
field=\"tagtwo\" default=\"\" placeholder=\"may be left 
empty...\"/></span>\n\n<$set name=\"tagtwo\" 
value={{$:/macros/Exporter/Tags!!tagtwo}}><br>\n<$set name=\"tagone\" 
value={{$:/macros/Exporter/Tags!!tagone}}><br>\n<<openalltagged>><br>\n<$list 
filter=<<tagexport>> ><$link><<currentTiddler>></$link><br></$list>\n</$set>",
        "modified": "20160718223526559",
        "modifier": "JR",
        "tagone": "",
        "tags": "task Inventar done",
        "tagtwo": "",
        "title": "$:/macros/Exporter/Tags"
    },
    {
        "created": "20160712233059161",
        "creator": "JR",
        "text": "Export all Tiddlers in the Story <$macrocall 
$name=\"exportButton\" exportFilter=\"[list[$:/StoryList]]\" 
lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n<hr>\n{{$:/core/ui/SideBar/Open}}\n<hr>\n{{$:/macros/Exporter/Tags}}",
        "caption": "Export  the story",
        "modified": "20160718220638282",
        "modifier": "JR",
        "storytag": "Inventar",
        "tags": "task Inventar $:/tags/Macro $:/macros/Exporter urgent",
        "title": "$:/macros/Exporter/Story"
    },
    {
        "created": "20160702002458026",
        "creator": "JR",
        "text": "<<tabs \"[tag[$:/macros/Exporter]]\" 
\"$:/temp/macros/Exporter\">>\n\n",
        "caption": "{{$:/core/images/export-button}}",
        "limit": "10",
        "modified": "20160718223034342",
        "modifier": "JR",
        "tags": "task Inventar $:/tags/SideBar exporter done",
        "title": "$:/macros/Exporter"
    },
    {
        "created": "20160712183816193",
        "creator": "JR",
        "text": "\\define userexport() 
\n[modifier[$(exportuser)$]!is[system]!sort[modified]limit[$(exportnum)$]]\n\\end\n<$set
 name=\"exportnum\" value={{$:/macros/Exporter/User!!limit}}>\n<$set 
name=\"exportuser\" value={{$:/status/UserName}}><br>\n<$set 
name=\"var-user-filter\" value=<<userexport>> >\n</$set>\nExport the newest 
{{$:/macros/Exporter/User!!limit}} Tiddlers by {{$:/status/UserName}}  
<$macrocall $name=\"exportButton\" exportFilter=<<userexport>> 
lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n<hr>\n<span 
title=\"Wieviele\"><$edit-text tag=\"input\" 
tiddler=\"$:/macros/Exporter/User\" field=\"limit\" 
default=\"Wieviele?\"/></span>\n<$set name=\"exportnum\" 
value={{$:/macros/Exporter/User!!limit}}>\n<span title=\"Wer\"><$edit-text 
tiddler=\"$:/status/UserName\" tag=\"input\" type=\"text\"/></span>\n<$set 
name=\"exportnum\" value={{$:/macros/Exporter/User!!limit}}>\n<$set 
name=\"exportuser\" value={{$:/status/UserName}}><br>\n<$list 
filter=<<userexport>> ><$link><<currentTiddler>></$link><br></$list>\n</$set>",
        "caption": "Export by Username",
        "limit": "13",
        "modified": "20160718221504786",
        "modifier": "JR",
        "tags": "task Inventar $:/tags/Macro $:/macros/Exporter done",
        "title": "$:/macros/Exporter/User"
    }
]

Reply via email to