Hi Alex,

Le lundi 9 mars 2015 15:20:32 UTC+1, AlexHough a écrit :
>
> say I search for "Variety" and the search returns a list of tiddlers, but 
> not one with the title "Variety" I would be great to hit "+" and the 
> tiddler created to be automatically given the title "Variety"
>

Substitute the contents of $:/core/ui/Buttons/new-tiddler with these:
\define old()
<$button message="tm-new-tiddler" 
tooltip={{$:/language/Buttons/NewTiddler/Hint}} 
aria-label={{$:/language/Buttons/NewTiddler/Caption}} 
class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text 
text={{$:/language/Buttons/NewTiddler/Caption}}/></span>
</$list>
</$button>
\end
\define new()
<$button tooltip={{$:/language/Buttons/NewTiddler/Hint}} 
aria-label={{$:/language/Buttons/NewTiddler/Caption}} 
class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/search}}/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text 
text={{$:/language/Buttons/NewTiddler/Caption}}/></span>
</$list>
</$button>
\end

<$reveal state="$:/temp/search" type="match" text="">
<<old>>
</$reveal>
<$reveal state="$:/temp/search" type="nomatch" text="">
<$list filter="[all[tiddlers+shadows]title{$:/temp/search}is[tiddler]] 
[all[tiddlers+shadows]title{$:/temp/search}is[shadow]]">
<<old>>
</$list>
<$list filter="[title{$:/temp/search}!is[tiddler]!is[shadow]]">
<<new>>
</$list>
</$reveal>

Best regards,
Alberto

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to