Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread RichardWilliamSmith
Yes, but it's listing the tiddlers that match. In view mode, there should 
(can) only be one match, but in edit mode there are no matches.

On Wednesday, July 27, 2016 at 2:15:51 PM UTC+10, Mark S. wrote:
>
> You have to try the code to see what I mean. When I say that it doesn't 
> produce a link, I mean that it doesn't produce *any* text (linked or 
> otherwise). That's why it's a bit mysterious. I would have expected it to 
> produce a nowhere-link like "*Draft of *"
>
> Mark
>
> On Tuesday, July 26, 2016 at 6:24:28 PM UTC-7, RichardWilliamSmith wrote:
>>
>> Yes, it removes the suffix, leaving you with the title, minus " (info)" - 
>> only in edit mode, the title of the tiddler you're editing has "draft of" 
>> appended to the front, so it doesn't point to your original tiddler. I 
>> think, possibly, drafts are anyway excluded from filter results by default 
>> (?)
>>
>> If you want to, you can edit the text of tiddlers without putting them 
>> into draft mode, by creating your own editor - I think Mat made something 
>> called the "side editor" that does that (?).
>>
>> Regards,
>> Richard
>>
>> On Wednesday, July 27, 2016 at 7:57:54 AM UTC+10, Mark S. wrote:
>>>
>>> But, why should that make a difference to removing the *suffix* ? When 
>>> I say that it doesn't work, I mean that it shows *nothing*. I could 
>>> understand if I was removing a prefix, since the prefix would be displaced 
>>> by "Draft of".
>>>
>>> Thanks!
>>> Mark 
>>>
>>> On Tuesday, July 26, 2016 at 2:40:55 PM UTC-7, c pa wrote:

 It doesn't work in preview because during editing the title is "Draft 
 of" + title 

 Draft of + title isn't contained in any foreign fields

>>>

-- 
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/c88c2080-c779-4a12-95ed-36ebffc76773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread RichardWilliamSmith
try this file - 
https://dl.dropboxusercontent.com/u/83055414/tiddlywikiforrich.html

-- 
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/5a18d823-2a00-4b1c-a7dd-ce524ac6af5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread RichardWilliamSmith
Sorry - try this 
file https://dl.dropboxusercontent.com/u/83055414/tiddlywikitags.html

-- 
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/56294ace-2856-4fba-9ce0-6bcc4002a253%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread RichardWilliamSmith
HI Rich,

Yes, I meant the editor tag but you actually want "EditToolbar", not 
"EditorToolbar" - but confusing that (the editor toolbar is for the new 
editor - you can usually figure this stuff out by looking at what else has 
the tag.

It's working in this wiki

https://dl.dropboxusercontent.com/u/83055414/tiddlywiki.html\\

Regards,
Richard

-- 
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/5ffe2dbb-1bb8-4a23-9b15-6980b4b6dce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread Matabele
Hi

No need for a double macro -- this seems to work:

\define myTitle(title) $title$ info""

<>

-- not too sure what your desired string should be
-- the macrocall can be used as a variable for setting a parameter elsewhere

regards

On Tuesday, 26 July 2016 13:57:44 UTC+2, jonath...@wolke7.net wrote:
>
>  
>
> Hi there,
>
>  
>
> i want to transclude the title of the current tiddler within a macro.
>
>  
>
> Firstly, here ist he macro:
>
>  
>
> \define myMacro()
>
> ---
>
> look here for more informations: [[ {{!title}} (Info) ]]
>
> ---
>
>  
>
> \end
>
>  
>
>  
>
> Secondly, here ist the macro call:
>
>  
>
> <<>>
>
>  
>
> Thirdly, this should be seen:
>
>  
>
> A link to a tiddler with a title which consists of a) the current 
> tiddler   and b) the string  „ (Info“)
>
>  
>
>  
>
> Background: I’m developing a set of flash cards and on the top of each 
> page there should be a link to an „info-page“ for the current tiddler.
>
>  
>
> Thanks in advance
>
>  
>
> Jonathan
>
>  
>

-- 
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/bbc5bc22-b6a3-4eae-b2b8-ac505a31cafc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread 'Mark S.' via TiddlyWiki
You have to try the code to see what I mean. When I say that it doesn't 
produce a link, I mean that it doesn't produce *any* text (linked or 
otherwise). That's why it's a bit mysterious. I would have expected it to 
produce a nowhere-link like "*Draft of *"

Mark

On Tuesday, July 26, 2016 at 6:24:28 PM UTC-7, RichardWilliamSmith wrote:
>
> Yes, it removes the suffix, leaving you with the title, minus " (info)" - 
> only in edit mode, the title of the tiddler you're editing has "draft of" 
> appended to the front, so it doesn't point to your original tiddler. I 
> think, possibly, drafts are anyway excluded from filter results by default 
> (?)
>
> If you want to, you can edit the text of tiddlers without putting them 
> into draft mode, by creating your own editor - I think Mat made something 
> called the "side editor" that does that (?).
>
> Regards,
> Richard
>
> On Wednesday, July 27, 2016 at 7:57:54 AM UTC+10, Mark S. wrote:
>>
>> But, why should that make a difference to removing the *suffix* ? When I 
>> say that it doesn't work, I mean that it shows *nothing*. I could 
>> understand if I was removing a prefix, since the prefix would be displaced 
>> by "Draft of".
>>
>> Thanks!
>> Mark 
>>
>> On Tuesday, July 26, 2016 at 2:40:55 PM UTC-7, c pa wrote:
>>>
>>> It doesn't work in preview because during editing the title is "Draft 
>>> of" + title 
>>>
>>> Draft of + title isn't contained in any foreign fields
>>>
>>

-- 
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/b1535b3d-838c-4419-aed3-db49c67dcbd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread Rich
Cool.  That is workable.  thanks.  it puts the new tiddler button at the 
bottom of every page in view mode., and I figured out the multiple tag 
addition trick after a minute or two:  As long as the new tag tiddler is 
open for editing, clicking on the "new tagged tiddler" button just adds the 
tag to the presently open draft of the previous one.

Is there any way to get this to work from the edit toolbar, so I can open a 
new page with the same tags as the one I am currently editing?  I added the 
"$:/tags/EditorToolbar" tag, and it shows up in the editor toolbar, but it 
does not pick up the tags, it just opens a new tiddler with no tags.  

Thanks again for helping me on this.  It will be a huge time save if I can 
get it right!


On Tuesday, July 26, 2016 at 4:05:19 PM UTC-10, RichardWilliamSmith wrote:
>
> Hi Rich,
>
> Bit tricky, but I think this works - I looked at how similar things were 
> handled in the other tiddlers that make up the editor, it needs the new 
> tags to be set in a macro.
>
> (again, it's called $:/rs/ui/Buttons/new-here-with-tags and now needs the 
> view template tag)
>
> \define newTagsButton()
> <$button tooltip={{$:/rs/ui/Buttons/new-here-with-tags!!description}} 
> aria-label={{$:/rs/ui/Buttons/new-here-with-tags!!caption}} 
> class=<>>
> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
> tags=$(newTiddlerTags)$ />
> ''T''
> 
> \end
> \define getNewTags()
> {{$(currentTiddlerName)$!!tags}}
> \end
>
> <$set name="newTiddlerTags" value=<>>
> <>
> 
>
> An interesting side effect of this is that, if you click the button on 
> multiple existing tiddlers, before editing the default title of the new 
> tiddler, it will add the tags from each in turn.
>
> Regards,
> Richard
>
> On Wednesday, July 27, 2016 at 10:29:03 AM UTC+10, Rich wrote:
>>
>> Thank you Mario and RIchard.  
>>
>> I got this partially working.  It produces a new tiddler from the 
>> "new-here-with tags" tiddler when it is in view mode, but the toolbar 
>> version is not picking up the tags, so it pops up with no tags when I try 
>> to use it to pick up the tags of the currently focused tiddler when in view 
>> mode.  I would almost always be using this while editing rather than 
>> viewing, so I tried to hack together a frankenstein combo with my limited 
>> skills that looks like this:
>>
>> <$button tooltip={{$:/rr/ui/Buttons/new-here-with tags!!description}} 
>> aria-label={{$:/rr/ui/Buttons/new-here-with tags!!caption}} 
>> class=<>>
>> <$action-sendmessage $message="tm-new-tiddler" title="New+tags" 
>> tags={{!!tags}} />+t
>> 
>> <$action-sendmessage
>> $message="tm-edit-text-operation"
>> $param="wrap-selection"
>> prefix="''"
>> suffix="''"
>> />
>>
>> That successfully made it into the toolbar after I copied some of the the 
>> fields from another toolbar entry, but instead of picking up the current 
>> tiddlers tags, it grabbed the system tags from "new-here-with tags".  
>>
>> I tried replacing  
>>
>> tags={{!!tags}}
>>
>> with 
>>
>> tags={{||!!tags}}
>>
>> as per this help page on templating 
>> , 
>> but that just removed all the tags.
>>
>>
>> ANy ideas what I'm doing wrong (probably a lot!)
>>
>> RIch
>>
>>
>> On Monday, July 25, 2016 at 11:38:20 PM UTC-10, RichardWilliamSmith wrote:
>>>
>>> Hi Rich,
>>>
>>> If you combine Mario's suggestions, you can do this - clone and edit the 
>>> new journal button, or otherwise create a tiddler with the same tag, call 
>>> it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need 
>>> to change the two references to it below - I always add my initials to the 
>>> name of this kind of tiddler, to distinguish them from the core) give it 
>>> the following text;
>>>
>>> <$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}} 
>>> aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}} 
>>> class=<>>
>>> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
>>> tags={{!!tags}} />
>>> ''T''
>>> 
>>>
>>> and the fields
>>>
>>> caption: ''T'' New Tiddler With Tags
>>> description: Create a new tiddler with the same tags as this one
>>>
>>> This will appear in the view toolbar and can be toggled from the control 
>>> panel. If you want to put it in a particular place in the toolbar, give it 
>>> a list-after or list-before field too.
>>>
>>> Regards,
>>> Richard
>>>
>>

-- 
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/735454d1-7823-46bb-8b8b-36da9f1ee6d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread RichardWilliamSmith
Hi Rich,

Bit tricky, but I think this works - I looked at how similar things were 
handled in the other tiddlers that make up the editor, it needs the new 
tags to be set in a macro.

(again, it's called $:/rs/ui/Buttons/new-here-with-tags and now needs the 
view template tag)

\define newTagsButton()
<$button tooltip={{$:/rs/ui/Buttons/new-here-with-tags!!description}} 
aria-label={{$:/rs/ui/Buttons/new-here-with-tags!!caption}} 
class=<>>
<$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
tags=$(newTiddlerTags)$ />
''T''

\end
\define getNewTags()
{{$(currentTiddlerName)$!!tags}}
\end

<$set name="newTiddlerTags" value=<>>
<>


An interesting side effect of this is that, if you click the button on 
multiple existing tiddlers, before editing the default title of the new 
tiddler, it will add the tags from each in turn.

Regards,
Richard

On Wednesday, July 27, 2016 at 10:29:03 AM UTC+10, Rich wrote:
>
> Thank you Mario and RIchard.  
>
> I got this partially working.  It produces a new tiddler from the 
> "new-here-with tags" tiddler when it is in view mode, but the toolbar 
> version is not picking up the tags, so it pops up with no tags when I try 
> to use it to pick up the tags of the currently focused tiddler when in view 
> mode.  I would almost always be using this while editing rather than 
> viewing, so I tried to hack together a frankenstein combo with my limited 
> skills that looks like this:
>
> <$button tooltip={{$:/rr/ui/Buttons/new-here-with tags!!description}} 
> aria-label={{$:/rr/ui/Buttons/new-here-with tags!!caption}} 
> class=<>>
> <$action-sendmessage $message="tm-new-tiddler" title="New+tags" 
> tags={{!!tags}} />+t
> 
> <$action-sendmessage
> $message="tm-edit-text-operation"
> $param="wrap-selection"
> prefix="''"
> suffix="''"
> />
>
> That successfully made it into the toolbar after I copied some of the the 
> fields from another toolbar entry, but instead of picking up the current 
> tiddlers tags, it grabbed the system tags from "new-here-with tags".  
>
> I tried replacing  
>
> tags={{!!tags}}
>
> with 
>
> tags={{||!!tags}}
>
> as per this help page on templating 
> , 
> but that just removed all the tags.
>
>
> ANy ideas what I'm doing wrong (probably a lot!)
>
> RIch
>
>
> On Monday, July 25, 2016 at 11:38:20 PM UTC-10, RichardWilliamSmith wrote:
>>
>> Hi Rich,
>>
>> If you combine Mario's suggestions, you can do this - clone and edit the 
>> new journal button, or otherwise create a tiddler with the same tag, call 
>> it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need 
>> to change the two references to it below - I always add my initials to the 
>> name of this kind of tiddler, to distinguish them from the core) give it 
>> the following text;
>>
>> <$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}} 
>> aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}} 
>> class=<>>
>> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
>> tags={{!!tags}} />
>> ''T''
>> 
>>
>> and the fields
>>
>> caption: ''T'' New Tiddler With Tags
>> description: Create a new tiddler with the same tags as this one
>>
>> This will appear in the view toolbar and can be toggled from the control 
>> panel. If you want to put it in a particular place in the toolbar, give it 
>> a list-after or list-before field too.
>>
>> Regards,
>> Richard
>>
>

-- 
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/249ac9ed-9b49-48b7-9290-84c5f1e5a47a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread RichardWilliamSmith
Yes, it removes the suffix, leaving you with the title, minus " (info)" - 
only in edit mode, the title of the tiddler you're editing has "draft of" 
appended to the front, so it doesn't point to your original tiddler. I 
think, possibly, drafts are anyway excluded from filter results by default 
(?)

If you want to, you can edit the text of tiddlers without putting them into 
draft mode, by creating your own editor - I think Mat made something called 
the "side editor" that does that (?).

Regards,
Richard

On Wednesday, July 27, 2016 at 7:57:54 AM UTC+10, Mark S. wrote:
>
> But, why should that make a difference to removing the *suffix* ? When I 
> say that it doesn't work, I mean that it shows *nothing*. I could 
> understand if I was removing a prefix, since the prefix would be displaced 
> by "Draft of".
>
> Thanks!
> Mark 
>
> On Tuesday, July 26, 2016 at 2:40:55 PM UTC-7, c pa wrote:
>>
>> It doesn't work in preview because during editing the title is "Draft of" 
>> + title 
>>
>> Draft of + title isn't contained in any foreign fields
>>
>

-- 
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/752d54c2-e4a3-4434-88bb-76d1d730c07c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread Rich
Thank you Mario and RIchard.  

I got this partially working.  It produces a new tiddler from the 
"new-here-with tags" tiddler when it is in view mode, but the toolbar 
version is not picking up the tags, so it pops up with no tags when I try 
to use it to pick up the tags of the currently focused tiddler.  I would 
almost always be using this while editing rather than viewing, so I tried 
to hack together a frankenstein combo with my limited skills that looks 
like this:
<$button tooltip={{$:/rr/ui/Buttons/new-here-with tags!!description}} 
aria-label={{$:/rr/ui/Buttons/new-here-with tags!!caption}} 
class=<>>
<$action-sendmessage $message="tm-new-tiddler" title="New+tags" 
tags={{!!tags}} />+t

<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix="''"
suffix="''"
/>

That successfully made it into the toolbar after I copied some of the the 
fields from another toolbar entry, but instead of picking up the current 
tiddlers tags, it grabbed the system tags from "new-here-with tags".  

I tried replacing 

tags={{!!tags}}







I tried replacing  

tags={{!!tags}}

with 

tags={{||!!tags}}

as per this help page on templating 
, 
but that just removed all the tags.


ANy ideas what I'm doing wrong (probably a lot!)

RIch


On Monday, July 25, 2016 at 11:38:20 PM UTC-10, RichardWilliamSmith wrote:
>
> Hi Rich,
>
> If you combine Mario's suggestions, you can do this - clone and edit the 
> new journal button, or otherwise create a tiddler with the same tag, call 
> it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need 
> to change the two references to it below - I always add my initials to the 
> name of this kind of tiddler, to distinguish them from the core) give it 
> the following text;
>
> <$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}} 
> aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}} 
> class=<>>
> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
> tags={{!!tags}} />
> ''T''
> 
>
> and the fields
>
> caption: ''T'' New Tiddler With Tags
> description: Create a new tiddler with the same tags as this one
>
> This will appear in the view toolbar and can be toggled from the control 
> panel. If you want to put it in a particular place in the toolbar, give it 
> a list-after or list-before field too.
>
> Regards,
> Richard
>

-- 
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/e2109810-b066-47f7-8019-404df03481f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread 'Mark S.' via TiddlyWiki
But, why should that make a difference to removing the *suffix* ? When I 
say that it doesn't work, I mean that it shows *nothing*. I could 
understand if I was removing a prefix, since the prefix would be displaced 
by "Draft of".

Thanks!
Mark 

On Tuesday, July 26, 2016 at 2:40:55 PM UTC-7, c pa wrote:
>
> It doesn't work in preview because during editing the title is "Draft of" 
> + title 
>
> Draft of + title isn't contained in any foreign fields
>

-- 
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/8fe20814-de91-4962-aaa6-d66a0a0b66d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread 'c pa' via TiddlyWiki
It doesn't work in preview because during editing the title is "Draft of" + 
title 

Draft of + title isn't contained in any foreign fields

-- 
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/0b51403c-0d5d-4765-9a58-ee9add67893f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread 'Mark S.' via TiddlyWiki
This seems to work:

\define mac2(ttl)
<$list filter=" [[$ttl$]]  +[removesuffix[ (Info)]]" />
\end
\define mac1()
---
The following contains details relating to <$macrocall $name=mac2 ttl={{!!
title}}/>

---
\end

<>


However, it doesn't work in preview, which threw me off for awhile. Perhaps 
one of the gurus here can explain why it works in implementation but not in 
preview. I could also make a version that worked in preview but not in the 
real tiddler. The difference between the two versions was the square 
brackets around the variable [[$ttl$]] in the macro. 

Good luck!
Mark

On Tuesday, July 26, 2016 at 11:32:41 AM UTC-7, jonath...@wolke7.net wrote:
>
> Thanks, your solution is working – great!
>
>  
>
> One more question:
>
> How would I do it the other way round:
>
>  
>
> Linking from „myTiddler (info)“ to „myTiddler“  ?
>
>  
>
> I would have to shorten the title oft the current tiddler, i.e. cut off 
> the last 6 or 7 characters.
>
>  
>
> How would I do this?
>

-- 
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/818f4ecf-760d-4a81-9740-e646e8627c28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Transcluding(?)/Injecting Background Image Declaration into Stylesheet

2016-07-26 Thread 'Birthe C' via TiddlyWiki
Create a tiddler for the image. Give the type and create the field 
_canonical_uri, put your external link in this field. Save the tiddler. Now 
you are able to select your image in $:/ControlPanel/Theme Tweaks - Page 
background image:


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/1f185b47-35fe-4efd-851f-ead090c92ed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 for the historical process

2016-07-26 Thread 'Sergey Shishkin' via TiddlyWiki
Hi Birthe

Brilliant! It is a pity that we can not in Russian. We will do a color tag! 
"notEvent"

Can I ask for such a thing? If you do everything right with examples and 
efficiently. That is called the journal I called the chronology. And 
tiddlers - dates have this tag. How to make a tiddler - Chronology, where 
the table with dates and tiddlers that have that date?

Thousands of thanks in advance!

P.S. I decided to use the solution by Richard and my template I have is as 
follows:

<$reveal type="nomatch" state=<> text="hide" tag="div" 
retain="yes" animate="yes">

Historic date:<$link to={{!!historic}}>
<$view field="historic" format="date MMDD" 
template={{$:/language/Tiddler/DateFormat}}/>
 
<$list filter="[is[current]!has[info]]">
Place:<$link to={{!!place}}>
<$view field="place"/>

 
<$list filter="[is[current]has[info]]">
Place: {{!!info}}
 
Type of event:<$link to={{!!eventtype}}>
<$view field="eventtype"/>
 



понедельник, 25 июля 2016 г., 20:52:00 UTC+2 пользователь Birthe C написал:
>
> If you would not mind using a tag in tiddlers that you do not want to show 
> subtitle you could create a tiddler tagged $:/tags/Stylesheet and content
>
> .tc-tagged-nondates .tc-subtitle { visibility: hidden;}
>
> nondates is just an example, use what you like.
>
> Subtitles are not removed just not visible.
>
>
> 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/f0dbb221-6472-4cce-b276-ded30fdf11d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 for the historical process

2016-07-26 Thread 'Sergey Shishkin' via TiddlyWiki
Hi Richard

Many thanks for a solution!

Combine the two possibilities that would be wonderful. I did so:

<$reveal type="nomatch" state=<> text="hide" tag="div" 
retain="yes" animate="yes">

Historic date:<$link to={{!!historic}}>
<$view field="historic" format="date MMDD" 
template={{$:/language/Tiddler/DateFormat}}/>
 
<$list filter="[is[current]!has[info]]">
Place:<$link to={{!!place}}>
<$view field="place"/>

 
<$list filter="[is[current]has[info]]">
Place: {{!!info}}
 
Type of event:<$link to={{!!eventtype}}>
<$view field="eventtype"/>
 



eventtype: Test
historic: 20160726
info: Wuppertal
url: https://de.wikipedia.org/wiki/Wuppertal

Historic date: 20160726  
Place: Wuppertal 
<https://de.wikipedia.org/wiki/Wuppertal> Type of event: Testing 


Everything worked out! Only tiddler subtitle template now looks like.

$:/core/ui/ViewTemplate/subtitle
Historic date:  Place:  
Type of event: 

$:/tags/ViewTemplate

Historic date:  Place:  
Type of event:


It's not scary? Twice repeated subtitle. And everything is fine in other 
tiddlers.

Regards,
Sergey


вторник, 26 июля 2016 г., 3:36:53 UTC+2 пользователь RichardWilliamSmith 
написал:
>
> Hi Sergey,
>
> The way a tiddler is displayed is determined by $:/core/ui/ViewTemplate . 
> It loads the template in pieces, each of them has the tag  
> $:/tags/ViewTemplate 
> (you can see the list using the filter [tag[$:/tags/ViewTemplate]].
>
> The subtitle template, $:/core/ui/ViewTemplate/subtitle, is just one of 
> them.
>
> If you don't like the information that is currently in the subtitle, you 
> can over-write the tiddler with an empty tiddler of the same name, or you 
> can remove its tag. 
>
> If you want additional information to be displayed instead, you can edit 
> the subtitle tiddler with different wikitext, or you can add a new tiddler 
> that also has the tag $:/tags/ViewTemplate, which will then also become 
> part of the view template.
>
> For example, if you make a tiddler called "Sergey's View Template 
> component" and give it the tag $:/tags/ViewTemplate and the content 
>
> {{!!info}}
>
> then every tiddler that has the necessary fields will display some "info" 
> that links to a "url".
>
> To make this piece of the view template appear where we want it to, we can 
> give it the fields "list-before" or "list-after", for example, you can give 
> this tiddler the field list-after, with a value 
> of $:/core/ui/ViewTemplate/subtitle and it will appear below the subtitle.
>
> If you want to combine these two approaches, you could re-write the 
> subtitle template to look like this:
>
>
> <$reveal type="nomatch" state=<> text="hide" tag="div" 
> retain="yes" animate="yes">
>
> 
> <$list filter="[is[current]!has[info]]">
> <$link to={{!!modifier}}>
> <$view field="modifier"/>
>  <$view field="modified" format="date" 
> template={{$:/language/Tiddler/DateFormat}}/>
> 
>
> <$list filter="[is[current]has[info]]">
> {{!!info}}
> 
>
> 
> 
>
>
> And it will display the link for tiddlers that have an "info" field and 
> revert to default behaviour for those that don't.
>
> If anything is unclear, please ask.
>
> Regards,
> Richard
>

-- 
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/4ba3da4d-46d6-42c2-86d0-043d6a4cd891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread jonathanhaug
Thanks, your solution is working – great!

 

One more question:

How would I do it the other way round:

 

Linking from „myTiddler (info)“ to „myTiddler“  ?

 

I would have to shorten the title oft the current tiddler, i.e. cut off the 
last 6 or 7 characters.

 

How would I do this?

-- 
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/008a01d1e76b%24c8d84a70%245a88df50%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Transcluding(?)/Injecting Background Image Declaration into Stylesheet

2016-07-26 Thread Zaphod Beeblebrox
So, after three days of searching the group, using every conceivable search 
term I could think of, pouring over numerous system and shadow tiddlers and 
even a few of the *.js files within TiddlyWiki until my eyes (literally) 
were hurting, I am no closer to finding a solution to my question.

I'm *almost* to the point of giving up on the notion of having the page 
background switch upon opening a tiddler.

Not to beat a dead horse (but I'm going to... :-P ), but it seems to me 
that it should be so simple: when the tiddler is opened, a call is made, 
either through the use of a macro or simply by calling or transcluding 
another tiddler with the URL in it (or even a field within the current 
tiddler whose value is the URL of the image), and passing that value to a 
background: url(blahblahblah); statement which would be injected into 
whatever section/tiddler/whatever that the *$:/ControlPanel/Theme Tweaks* - 
*Page 
background image* references.

I also thought about refreshing of the TW - I know I've seen where *Duarte 
Farrajota Ramos* and *Jed Carty* were hashing out the details of a method 
of having a Random Page Background 

 
on loading (which seems to work very nicely on Mr. Ramos' page, but which I 
cannot figure out how to incorporate myself), but for my purposes I really 
need it to happen on-the-fly and without having to refresh.

What happens when we switch from one *Theme* to another?  Isn't there the 
facility within that process to also change the background image of the 
page?

In This Thread 
,
 
I found:

I have an arbitrary field on several tiddlers, called bgimage. It 
> references a background image.
>
> In ViewTemplate, I have defined a macro (immediately after where 
> frame-classes is defined):
>
> \define bgstyle()
> background-image:url(<$
> transclude field='bgimage'/>);
> \end
>
> If I call <> (again, in ViewTemplate) as content of my tiddler, 
> it works like I'd expect. It pulls the value from the bgimage field and 
> writes it in.
>
Two problems with the above:

   1. I believe Mr. Maxwell is attempting to set the background of the 
   *tiddler* in this case, and not the *page*, but surely the process would 
   be similar?
   2. I cannot understand the exact layout and workings of the ViewTemplate 
   tiddler to figure out where to place his macro code in order to try this 
   for myself.


And trying to follow up on Jeremy's suggestion that I re-use the code from 
*$:/ControlPanel/Theme 
Tweaks - Page background image*: Apparently there simply is no way of 
inputting an external Internet address into this field - It will *only* 
accept the title of an *image tiddler*...

My head hurts...

--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/7091c43e-aa87-4b07-9aa2-33dc6f371746%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Need another filter

2016-07-26 Thread RichardWilliamSmith
Hi Dave,

I *think* you can fix it by changing the filter in the view template 
to [is[current]listed[article]] 

(selects the current tiddler title and then looks for that title listed in 
the article field of other tiddlers)

I had to fiddle for a bit to get it to work and it's bed time now, but I 
think it works. 

Good Luck!

Regards,
Richard



On Tuesday, July 26, 2016 at 11:55:00 PM UTC+10, David Gifford wrote:
>
> Yes, I will have multiple items in the article field. Hmmm
>
> Dave
>
> On Tue, Jul 26, 2016 at 8:53 AM, RichardWilliamSmith <
> richardwi...@gmail.com > wrote:
>
>> Hi Dave,
>>
>> It seems to be because of the [[ ]] brackets around the entry in the 
>> article field on the tiddler 2016-07-22 17:31:50 - if I remove them, the 
>> transclusion works, but the tags break up into separate words.
>>
>> I guess this is to do with the way that you have re-used the tag 
>> mechanism. The fix probably depends on whether you need each tiddler to 
>> have multiple "article tags" (fix the template) or only one (fix the 
>> tag-like interface).
>>
>> Regards,
>> Richard
>>
>> On Tuesday, July 26, 2016 at 9:55:54 PM UTC+10, David Gifford wrote:
>>>
>>> okay, this is working for others but not for me.
>>>
>>> Here is the file it is not working in. 
>>> http://giffmex.org/experiments/7-22.html
>>>
>>> Conpare the tiddler "Words", which shows the two tiddlers with that 
>>> title in their articles field, and the tiddler "Reading, notes on 
>>> ", 
>>> which does not show the tiddler that should be there.
>>>
>>> The viewtemplate tiddler being used is $:/.ChildrenArticles 
>>> 
>>>
>>> What am I doing wrong??? Any ideas?
>>>
>>> Dave
>>>
>>> On Sunday, July 24, 2016 at 12:57:29 AM UTC-5, c pa wrote:

 \define List_Articles(article)
 
 <$list filter="[field:article[$article$]]" 
 variable="article_tiddler">
 
 <$transclude tiddler=<> field="text" 
 mode="block"/>
 
 
  
  <$link to=<> >
 
 <$view tiddler=<> field="source"/> 
 - 
 
 <$view tiddler=<> field="modified" 
 format="date" template=" MMM"/>
   
  
  
 
 \end

 <$macrocall $name="List_Articles" article={{!!title}} />


 -- 
>> 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/AY6P-tro51o/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com .
>> To post to this group, send email to tiddl...@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/912e5bd5-70b5-4a52-8440-fa645a67e18f%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> David Gifford
> Christian Reformed World Missions, Mexico City
>
>

-- 
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/23502c3c-64fa-48e6-bc03-f82913d7ba7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread 'Mark S.' via TiddlyWiki
Try:

\define myMacro()
---
<$set name=ttl value={{!!title}}>
<>


---
\end
\define myMacro2()
look here for more informations: [[ $(ttl)$ (Info) ]]
\end


<>



On Tuesday, July 26, 2016 at 4:57:44 AM UTC-7, jonath...@wolke7.net wrote:
>
>  
>
> Hi there,
>
>  
>
> i want to transclude the title of the current tiddler within a macro.
>
>  
>
> Firstly, here ist he macro:
>
>  
>
> \define myMacro()
>
> ---
>
> look here for more informations: [[ {{!title}} (Info) ]]
>
> ---
>
>  
>
> \end
>
>  
>
>  
>
> Secondly, here ist the macro call:
>
>  
>
> <<>>
>
>  
>
> Thirdly, this should be seen:
>
>  
>
> A link to a tiddler with a title which consists of a) the current 
> tiddler   and b) the string  „ (Info“)
>
>  
>
>  
>
> Background: I’m developing a set of flash cards and on the top of each 
> page there should be a link to an „info-page“ for the current tiddler.
>
>  
>
> Thanks in advance
>
>  
>
> Jonathan
>
>  
>

-- 
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/e0b5859e-29d2-483f-b801-fe63053e9272%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Need another filter

2016-07-26 Thread David Gifford
Yes, I will have multiple items in the article field. Hmmm

Dave

On Tue, Jul 26, 2016 at 8:53 AM, RichardWilliamSmith <
richardwilliamsm...@gmail.com> wrote:

> Hi Dave,
>
> It seems to be because of the [[ ]] brackets around the entry in the
> article field on the tiddler 2016-07-22 17:31:50 - if I remove them, the
> transclusion works, but the tags break up into separate words.
>
> I guess this is to do with the way that you have re-used the tag
> mechanism. The fix probably depends on whether you need each tiddler to
> have multiple "article tags" (fix the template) or only one (fix the
> tag-like interface).
>
> Regards,
> Richard
>
> On Tuesday, July 26, 2016 at 9:55:54 PM UTC+10, David Gifford wrote:
>>
>> okay, this is working for others but not for me.
>>
>> Here is the file it is not working in.
>> http://giffmex.org/experiments/7-22.html
>>
>> Conpare the tiddler "Words", which shows the two tiddlers with that title
>> in their articles field, and the tiddler "Reading, notes on
>> ",
>> which does not show the tiddler that should be there.
>>
>> The viewtemplate tiddler being used is $:/.ChildrenArticles
>> 
>>
>> What am I doing wrong??? Any ideas?
>>
>> Dave
>>
>> On Sunday, July 24, 2016 at 12:57:29 AM UTC-5, c pa wrote:
>>>
>>> \define List_Articles(article)
>>> 
>>> <$list filter="[field:article[$article$]]"
>>> variable="article_tiddler">
>>> 
>>> <$transclude tiddler=<> field="text"
>>> mode="block"/>
>>> 
>>> 
>>>  
>>>  <$link to=<> >
>>> 
>>> <$view tiddler=<> field="source"/>
>>> -
>>> 
>>> <$view tiddler=<> field="modified"
>>> format="date" template=" MMM"/>
>>>   
>>>  
>>>  
>>> 
>>> \end
>>>
>>> <$macrocall $name="List_Articles" article={{!!title}} />
>>>
>>>
>>> --
> 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/AY6P-tro51o/unsubscribe.
> To unsubscribe from this group and all its topics, 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/912e5bd5-70b5-4a52-8440-fa645a67e18f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Gifford
Christian Reformed World Missions, Mexico City

-- 
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/CANE%3DBFKcwx_vgD3KG%2B6Qu1iBni2B-WpNWstGCu_H%2BQVnkJCGiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Need another filter

2016-07-26 Thread RichardWilliamSmith
Hi Dave,

It seems to be because of the [[ ]] brackets around the entry in the 
article field on the tiddler 2016-07-22 17:31:50 - if I remove them, the 
transclusion works, but the tags break up into separate words.

I guess this is to do with the way that you have re-used the tag mechanism. 
The fix probably depends on whether you need each tiddler to have multiple 
"article tags" (fix the template) or only one (fix the tag-like interface).

Regards,
Richard

On Tuesday, July 26, 2016 at 9:55:54 PM UTC+10, David Gifford wrote:
>
> okay, this is working for others but not for me.
>
> Here is the file it is not working in. 
> http://giffmex.org/experiments/7-22.html
>
> Conpare the tiddler "Words", which shows the two tiddlers with that title 
> in their articles field, and the tiddler "Reading, notes on 
> ", 
> which does not show the tiddler that should be there.
>
> The viewtemplate tiddler being used is $:/.ChildrenArticles 
> 
>
> What am I doing wrong??? Any ideas?
>
> Dave
>
> On Sunday, July 24, 2016 at 12:57:29 AM UTC-5, c pa wrote:
>>
>> \define List_Articles(article)
>> 
>> <$list filter="[field:article[$article$]]" variable="article_tiddler">
>> 
>> <$transclude tiddler=<> field="text" 
>> mode="block"/>
>> 
>> 
>>  
>>  <$link to=<> >
>> 
>> <$view tiddler=<> field="source"/> - 
>> 
>> <$view tiddler=<> field="modified" 
>> format="date" template=" MMM"/>
>>   
>>  
>>  
>> 
>> \end
>>
>> <$macrocall $name="List_Articles" article={{!!title}} />
>>
>>
>>

-- 
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/912e5bd5-70b5-4a52-8440-fa645a67e18f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Keyboard shortcuts for Tagging and moving from Tag to Body text?

2016-07-26 Thread Marcus Baw
@eric - thanks! - that is very helpful. Perhaps not the most intuitive
shortcuts, but they get the job done and will definitely save me time.
M

On 26 July 2016 at 14:21, 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> There's also the problem of navigating from the tags down into the text.
> If you have hundreds of tags, you have to tab hundreds of times. And, once
> you're in the text box, the tab list is still open, blocking your view!
>
> Thanks!
> Mark
>
>
> On Tuesday, July 26, 2016 at 2:16:53 AM UTC-7, Eric Shulman wrote:
>>
>> On Tuesday, July 26, 2016 at 1:16:25 AM UTC-7, Marcus Baw wrote:
>>>
>>> Just re-asking the question: Is there any way to select tags using the
>>> keyboard? I've tried various things and don't seem to be able to find a way
>>> to select them via keyboard.
>>>
>>> After typing the title of the tiddler, I can `tab` into the next input
>>> (to enter a tag name). If I start typing here I can narrow the list of
>>> tags, but I can't select from the list using `up-arrow / down-arrow` or any
>>> other key combination I can find. Creating a new tag is also not possible
>>> via keyboard.
>>>
>>
>> The steps for entering or selecting a tag using only the keyboard are not
>> obvious, and is regrettably awkward.
>>
>> To create a new tag:
>>
>> 1) Move the focus to the tag input field
>> 2) Enter the desired tag text
>> 3) Press TAB 2 times... the 1st tab moves to the downarrow button, the
>> 2nd tab moves to the "add" button
>> 4) Press ENTER to push the button... the tag is added to the tiddler.
>> 5) To return to the tag input field, use SHIFT-TAB 2 times.
>>
>> To select an existing tag:
>>
>> 1) Move the focus to the tag input field... the list of tags (if any)
>> appears.
>> 2) Press TAB 3 times... the 1st tab moves to the downarrow button, the
>> 2nd tab moves to the "add" button, the 3rd tab moves to the top of the list
>> of tags.)
>> 3) Continue to press TAB to move down the list until the desired tag is
>> highlighted.
>> 4) Press ENTER to add the tag.
>> 5) To return to the tag input field, use SHIFT-TAB 3 times.
>>
>> Of course, this process would be MUCH smoother if you could use ENTER
>> directly from the tag input field to add the tag, and DOWN/UP ARROWS to
>> move focus from the input field to the list, as well as moving through the
>> list.
>>
>> For the first part, perhaps the core <$edit-text> widget handling could
>> be extended so that the *contents* of the widget (which are currently
>> ignored) could be used to specify *action-widgets* that would be triggered
>> when the ENTER key is pressed.  In this particular use-case, the action
>> would be the same as when the "add" button is pressed (i.e., the tag is
>> added to the tiddler).  As an extra bonus, this functionality (triggering
>> actions when ENTER is pressed in an input field) might also be useful for
>> other edit fields, not just the tab input.
>>
>> For the second part (DOWN/UP ARROWS), it might be possible to extend the
>> tag 'pill' keyboard event handling so that DOWN/UP arrow is treated as if
>> TAB/SHIFT-TAB was pressed, so that the existing navigation handling would
>> be triggered (i.e., moving the focus/selection between items in the tab
>> list).
>>
>> Jeremy: what do you think?  Is this do-able?
>>
>> enjoy,
>> -e
>> Eric Shulman
>> TiddlyTools / ELS Design Studios
>> InsideTiddlyWiki: The Missing Manuals
>>
>> --
> 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/pExEbkc6e6c/unsubscribe.
> To unsubscribe from this group and all its topics, 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/9a2bec9d-7c4a-493a-846a-035228424cb6%40googlegroups.com
> 
> .
>
> 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAGoUAhqWFG1XX2DrBRwna97td_La9MCMdZno%2B8aCKoKBCBac0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Keyboard shortcuts for Tagging and moving from Tag to Body text?

2016-07-26 Thread 'Mark S.' via TiddlyWiki
There's also the problem of navigating from the tags down into the text. If 
you have hundreds of tags, you have to tab hundreds of times. And, once 
you're in the text box, the tab list is still open, blocking your view!

Thanks!
Mark

On Tuesday, July 26, 2016 at 2:16:53 AM UTC-7, Eric Shulman wrote:
>
> On Tuesday, July 26, 2016 at 1:16:25 AM UTC-7, Marcus Baw wrote:
>>
>> Just re-asking the question: Is there any way to select tags using the 
>> keyboard? I've tried various things and don't seem to be able to find a way 
>> to select them via keyboard.
>>
>> After typing the title of the tiddler, I can `tab` into the next input 
>> (to enter a tag name). If I start typing here I can narrow the list of 
>> tags, but I can't select from the list using `up-arrow / down-arrow` or any 
>> other key combination I can find. Creating a new tag is also not possible 
>> via keyboard.
>>
>
> The steps for entering or selecting a tag using only the keyboard are not 
> obvious, and is regrettably awkward.
>
> To create a new tag:
>
> 1) Move the focus to the tag input field
> 2) Enter the desired tag text
> 3) Press TAB 2 times... the 1st tab moves to the downarrow button, the 2nd 
> tab moves to the "add" button
> 4) Press ENTER to push the button... the tag is added to the tiddler.
> 5) To return to the tag input field, use SHIFT-TAB 2 times.
>
> To select an existing tag:
>
> 1) Move the focus to the tag input field... the list of tags (if any) 
> appears.
> 2) Press TAB 3 times... the 1st tab moves to the downarrow button, the 2nd 
> tab moves to the "add" button, the 3rd tab moves to the top of the list of 
> tags.)
> 3) Continue to press TAB to move down the list until the desired tag is 
> highlighted.
> 4) Press ENTER to add the tag.
> 5) To return to the tag input field, use SHIFT-TAB 3 times.
>
> Of course, this process would be MUCH smoother if you could use ENTER 
> directly from the tag input field to add the tag, and DOWN/UP ARROWS to 
> move focus from the input field to the list, as well as moving through the 
> list.
>
> For the first part, perhaps the core <$edit-text> widget handling could be 
> extended so that the *contents* of the widget (which are currently ignored) 
> could be used to specify *action-widgets* that would be triggered when the 
> ENTER key is pressed.  In this particular use-case, the action would be the 
> same as when the "add" button is pressed (i.e., the tag is added to the 
> tiddler).  As an extra bonus, this functionality (triggering actions when 
> ENTER is pressed in an input field) might also be useful for other edit 
> fields, not just the tab input.
>
> For the second part (DOWN/UP ARROWS), it might be possible to extend the 
> tag 'pill' keyboard event handling so that DOWN/UP arrow is treated as if 
> TAB/SHIFT-TAB was pressed, so that the existing navigation handling would 
> be triggered (i.e., moving the focus/selection between items in the tab 
> list).
>
> Jeremy: what do you think?  Is this do-able?
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
> InsideTiddlyWiki: The Missing Manuals
>
>

-- 
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/9a2bec9d-7c4a-493a-846a-035228424cb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Transcluding the title of the current tiddler

2016-07-26 Thread jonathanhaug
 

Hi there,

 

i want to transclude the title of the current tiddler within a macro.

 

Firstly, here ist he macro:

 

\define myMacro()

---

look here for more informations: [[ {{!title}} (Info) ]]

---

 

\end

 

 

Secondly, here ist the macro call:

 

<<>>

 

Thirdly, this should be seen:

 

A link to a tiddler with a title which consists of a) the current tiddler   and 
b) the string  „ (Info“)

 

 

Background: I’m developing a set of flash cards and on the top of each page 
there should be a link to an „info-page“ for the current tiddler.

 

Thanks in advance

 

Jonathan

 

-- 
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/005601d1e734%2499abe4f0%24cd03aed0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Need another filter

2016-07-26 Thread David Gifford
okay, this is working for others but not for me.

Here is the file it is not working in. 
http://giffmex.org/experiments/7-22.html

Conpare the tiddler "Words", which shows the two tiddlers with that title 
in their articles field, and the tiddler "Reading, notes on 
", which 
does not show the tiddler that should be there.

The viewtemplate tiddler being used is $:/.ChildrenArticles 


What am I doing wrong??? Any ideas?

Dave

On Sunday, July 24, 2016 at 12:57:29 AM UTC-5, c pa wrote:
>
> \define List_Articles(article)
> 
> <$list filter="[field:article[$article$]]" variable="article_tiddler">
> 
> <$transclude tiddler=<> field="text" 
> mode="block"/>
> 
> 
>  
>  <$link to=<> >
> 
> <$view tiddler=<> field="source"/> - 
> 
> <$view tiddler=<> field="modified" 
> format="date" template=" MMM"/>
>   
>  
>  
> 
> \end
>
> <$macrocall $name="List_Articles" article={{!!title}} />
>
>
>

-- 
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/92b94d72-a96c-4b83-923f-88b2a39bf4ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread RichardWilliamSmith
Hi Rich,

If you combine Mario's suggestions, you can do this - clone and edit the 
new journal button, or otherwise create a tiddler with the same tag, call 
it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need 
to change the two references to it below - I always add my initials to the 
name of this kind of tiddler, to distinguish them from the core) give it 
the following text;

<$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}} 
aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}} 
class=<>>
<$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler" 
tags={{!!tags}} />
''T''


and the fields

caption: ''T'' New Tiddler With Tags
description: Create a new tiddler with the same tags as this one

This will appear in the view toolbar and can be toggled from the control 
panel. If you want to put it in a particular place in the toolbar, give it 
a list-after or list-before field too.

Regards,
Richard

-- 
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/09b51fdf-0079-40b1-ba45-4e8882018ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Keyboard shortcuts for Tagging and moving from Tag to Body text?

2016-07-26 Thread Eric Shulman
On Tuesday, July 26, 2016 at 1:16:25 AM UTC-7, Marcus Baw wrote:
>
> Just re-asking the question: Is there any way to select tags using the 
> keyboard? I've tried various things and don't seem to be able to find a way 
> to select them via keyboard.
>
> After typing the title of the tiddler, I can `tab` into the next input (to 
> enter a tag name). If I start typing here I can narrow the list of tags, 
> but I can't select from the list using `up-arrow / down-arrow` or any other 
> key combination I can find. Creating a new tag is also not possible via 
> keyboard.
>

The steps for entering or selecting a tag using only the keyboard are not 
obvious, and is regrettably awkward.

To create a new tag:

1) Move the focus to the tag input field
2) Enter the desired tag text
3) Press TAB 2 times... the 1st tab moves to the downarrow button, the 2nd 
tab moves to the "add" button
4) Press ENTER to push the button... the tag is added to the tiddler.
5) To return to the tag input field, use SHIFT-TAB 2 times.

To select an existing tag:

1) Move the focus to the tag input field... the list of tags (if any) 
appears.
2) Press TAB 3 times... the 1st tab moves to the downarrow button, the 2nd 
tab moves to the "add" button, the 3rd tab moves to the top of the list of 
tags.)
3) Continue to press TAB to move down the list until the desired tag is 
highlighted.
4) Press ENTER to add the tag.
5) To return to the tag input field, use SHIFT-TAB 3 times.

Of course, this process would be MUCH smoother if you could use ENTER 
directly from the tag input field to add the tag, and DOWN/UP ARROWS to 
move focus from the input field to the list, as well as moving through the 
list.

For the first part, perhaps the core <$edit-text> widget handling could be 
extended so that the *contents* of the widget (which are currently ignored) 
could be used to specify *action-widgets* that would be triggered when the 
ENTER key is pressed.  In this particular use-case, the action would be the 
same as when the "add" button is pressed (i.e., the tag is added to the 
tiddler).  As an extra bonus, this functionality (triggering actions when 
ENTER is pressed in an input field) might also be useful for other edit 
fields, not just the tab input.

For the second part (DOWN/UP ARROWS), it might be possible to extend the 
tag 'pill' keyboard event handling so that DOWN/UP arrow is treated as if 
TAB/SHIFT-TAB was pressed, so that the existing navigation handling would 
be triggered (i.e., moving the focus/selection between items in the tab 
list).

Jeremy: what do you think?  Is this do-able?

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

-- 
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/4b02a716-8d95-4910-b5cd-c3a45dfdf464%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] new tiddler / excised tiddler that inherits tags of current tiddler

2016-07-26 Thread PMario
Hi Rich,

There is an example at tiddlywiki.com: 
http://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler, which shows the 
basics.

So if you modify it a little bit, like so: 

<$button>
<$action-sendmessage $message="tm-new-tiddler" title="This is newly created 
tiddler" tags={{!!tags}} text=<>/>
New Tiddler 
  ^^^

get the tags from the current tiddler. 



You get the basic functionality, but it's not convenient, because it's not 
in the toolbar. _and_ You need to remove my description text :)

A similar thing can be done with: 
http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here

If you overwrite it (as a workaround) with this: 

\define journalButtonTags()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:
/language/Buttons/NewJournalHere/Caption}} class=<>>
<$action-sendmessage $message="tm-new-tiddler" title=<> tags=<>/>
<$list filter="[prefix[yes]]">
{{$:/core/images/new-journal-button}}

<$list filter="[prefix[yes]]">
<$text text={{$:/language/Buttons/NewJournalHere/
Caption}}/>


\end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{!!tags}}> 
 <-- see {{!tags}}  remove this text!
<$set name="currentTiddlerTag" value=<>>   
 <-- if you don't want the current tiddler tag, just set value to 
"" . remove this text 
<>




This will replace the "new journal here" button, with your custom version. 
 If you want to create your own toolbar, the setup will be a bit 
trickier ... but this should be a starting workaround. 
!! Be sure, to remove my comments from the above code snippet !!

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/e75d82c6-0e99-4be9-835f-1ba58f5aa43f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Keyboard shortcuts for Tagging and moving from Tag to Body text?

2016-07-26 Thread Marcus Baw
Just re-asking the question: Is there any way to select tags using the 
keyboard? I've tried various things and don't seem to be able to find a way 
to select them via keyboard.

After typing the title of the tiddler, I can `tab` into the next input (to 
enter a tag name). If I start typing here I can narrow the list of tags, 
but I can't select from the list using `up-arrow / down-arrow` or any other 
key combination I can find. Creating a new tag is also not possible via 
keyboard.

Is there a way to implement this, either via plugin or a tweak? I'm not 
great at JavaScript but happy to have a go.

M

On Wednesday, 20 July 2016 10:39:57 UTC+1, Marcus Baw wrote:
>
> Hi, I'm a recent returner to TiddlyWiki having used it for an 
> organisational Wiki (in a place where a 'server' based Wiki would have been 
> impossible due to poor IT management) some years ago.
>
> May I first say how impressed I am with the New TiddlyWiki, which has 
> managed to keep everything I thought was awesome about TiddlyWiki, and add 
> even more flexibility and features, as well as a really nice look and feel.
>
> I use keyboard shortcuts extensively and don't like to have to transition 
> from keyboard to mouse when I don't need to. Mostly TiddlyWiki supports 
> keyboarding, but one area I'm struggling with is adding/selecting tags 
> (either via free text new tags, or from the tag menu) and also moving from 
> the tag input to the body text input with keyboard shortcuts.
>
> I couldn't find anything in the Keyboard documentation or in my Settings 
> Tiddler, and Tab (the seemingly most 'intuitive' key to move from input box 
> to input box down the page) doesn't work for me.
>
> Any suggestions?
>
> Marcus
>

-- 
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/82becd96-195e-40c7-b81e-c10189986d32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.