[tw5] Help! I lost my timestamps iin TW!

2021-05-12 Thread hexa...@gmail.com
Today is May 13th. But when I create tiddlers today(maybe yesterday), it 
doesn't appear in the "Recent" as below:
[image: GW2~QTKNI_JJO74]}~$FD$D.png]
My computer's time setting is correct.
I changed another computer, the problem is still there.
I used `<>` macro in TW, it shows the right time.
I used `{{!!created}}` or `{{!!modified}} in TW, it shows blank.

So, what shall I do to save my timeline? 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f0691a1-85e9-4849-98aa-3740a866b5e9n%40googlegroups.com.


Re: [tw5] Resources on creating themes

2021-05-12 Thread Mohammad Rahmani
+1

I am interested too! Especially in the page layout switcher!



Best wishes
Mohammad


On Thu, May 13, 2021 at 1:54 AM Odin  wrote:

> Hi!
>
> Are there any resources or tutorials on how to create a new theme for
> TiddlyWiki? I've looked around, but I couldn't really find any.
>
> Some themes are just stylesheets, but themes from JD or Nicolas go much
> further than that.
>
> I am also curious how the new page layout switcher would intersect with
> themes. As you could make the layout and theming separately.
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/02907353-2c68-42d0-84ca-220b07395f3en%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMD%3D5YD6KH_MS-bc8j2YeoA%3Dj5mJvJR2%2BqCAgxJDYi7APw%40mail.gmail.com.


Re: [tw5] A tour through my Zettelkasten

2021-05-12 Thread Mohammad Rahmani
Thank you for clarification! I myself use ideas/tasks and then extra tags
like reading!
But your suggested categories make things more clear!
I think it is very important to get used to this new methodology and
continuously do that!


On Thu, May 13, 2021 at 4:39 AM Soren Bjornstad 
wrote:

> I walked through them in the video, but here's a quick summary of what
> they're for:
>
>- Stubs – ideas that I haven't written about yet, usually with just a
>title, or a quote, or a sentence or two describing what it will be (items
>tagged Stub)
>- Missing – same as in stock TW
>- Needing attention – some unspecified work needs to be done on the
>tiddler, often I don't agree with the contents anymore, or it needs
>reorganization
>- Needing excision – the tiddler turned into a bunch of confused ideas
>put together and I need to think about what those are and split it up
>(items tagged NeedsExcision)
>- To-do items – anywhere I link to TODO, the tiddler is added to the
>list, along with  the phrase after the link, so I get a nice list of
>specific things that need to be fixed/added to
>- Open questions – things I don't know the answer to, but would like
>to review periodically in case I have new experiences that might provide
>answers (links to OpenQuestion)
>
> Side note: is anyone else experiencing a problem with the new Google
> Groups while editing a post, where sometimes most of the screen will go
> blank after pressing Page Down, leaving only a tiny sliver at the top of
> the screen to display the thread? Super annoying.
> On Monday, May 10, 2021 at 10:45:38 PM UTC-5 Mohammad wrote:
>
>> Hi Soren,
>>
>> On Tue, May 11, 2021 at 2:45 AM Soren Bjornstad 
>> wrote:
>>
>>> On Monday, May 10, 2021 at 2:43:34 PM UTC-5 Mohammad wrote:
>>>
 One question: How do you select the categories in the Write tab? I mean
 for Ztellkasten point of view?
 I watch the viedo but not quite understand your philosophy here!

>>>
>>> I'm not sure I understand the question – are you asking how,
>>> technically, the contents of each tab are aggregated, or why I chose that
>>> list of "looking for attention" conditions?
>>>
>>
>> No, I do not mean technical implementation! but I ask about names of
>> those categories like "open questions", "stubs"? Are those some recommended
>> categories or names?
>>
>>
>>
>>>
>>>
 Also the Explorer while we have the More Tab!

>>>
>>> The Explorer is intended to be a simplified version of the More tab for
>>> use in the public wiki. I just haven't bothered to hide it in the private
>>> one because it hasn't gotten in my way, but it would likely make sense to
>>> do so now that I've stopped making changes to it frequently.
>>>
>>
>> That makes sense: a simple more tab for the public, for those who visit
>> the page but do not know Tiddlywiki. Instead of hiding parts of More tab,
>> create a separate tab!
>> Good idea!
>>
>>
>>
>>>
>>>
 I like to adopt the tiddler reference explorer in minimal yet flexible
 form and sidebar extra tabs in a plugin (using a different taste).
 I cannot see any license in your wiki, so I want to get permission if I
 am allowed to use both these ideas in a new plugin!

>>>
>>> MIT license:
>>> https://zettelkasten.sorenbjornstad.com/#PublicHomepage/Copyright
>>>
>>
>> Ah, yes! I did not see that! System tiddlers under MIT license!
>> Zettelkasten and effective note taking is your area of expertise, so
>> please go ahead!
>> Looking forward to seeing more from you!
>>
>>> --
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/19af44e2-d653-4fb4-9c94-2d7e1f0b0267n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/26ec5e37-6f23-4dc7-95ae-278726c6afbbn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 

Re: [tw5] Re: Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-12 Thread Mohammad Rahmani
Charlie,

Why does this JSON need two steps for import?
- drag and drop you attached JSON to Tiddlywiki, imports *Tiddler Viewer
Package*
- clicking on *Tiddler Viewer Package *opens the $:/Import again for the
second time?
It asks for another import as below. Is this intentional?


[image: image.png]


Best wishes
Mohammad


On Wed, May 12, 2021 at 4:52 AM Charlie Veniot  wrote:

> Okay, inching closer to something.
>
> For anybody interested in tracking the evolution of this coding project,
> import the attached into TiddlyWiki.com for some safe experimenting:
>
>
>
> On Tuesday, May 11, 2021 at 12:31:59 AM UTC-3 Charlie Veniot wrote:
>
>> Just scratching a coding itch.
>>
>> Modify the code in the button, changing the "Some Tiddler" instances to
>> an existing tiddler in your TiddlyWiki.  (I've been playing with
>> TiddlyWiki.com for the giggles.)
>>
>> Put this code in some tiddler and save the tiddler.  Then, press the
>> button, and take a look at the new tiddler named the same as this one, but
>> with the added suffix " Data".
>>
>> <$button>
>> <$vars newLine="
>> " >
>> <$vars nCount={{{ [[Some Tiddler]get[text]splitcount[]] }}}
>> thisTiddler=<>>
>> <$list variable="line-num" filter="[range]">
>> <$action-setfield $tiddler={{{ [addsuffix[ Data]] }}}
>> $index={{{ [addprefix[line]] }}}, $value={{{ [[Some
>> Tiddler]get[text]splitnth] }}}/>
>> 
>> 
>> 
>> Click me!
>> 
>>
>> Why code that?  I'm just got this festering thought: how would I go about
>> creating an alternative tiddler editor with "code folding", using only
>> TiddlyWiki?
>>
>> Well, I think it starts with first finding a way to split a tiddler into
>> its individual lines.
>>
>> Just an exercise for the $hit$ and the giggle$, possibly coming to a
>> fiery end  when I hit the wall ...
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/ff637e22-050e-4787-9537-b0323ff604e9n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDdBH_96fn-XGkKcvUsYFawUN%2BgEdUwLDU7-dr7iT7z3Q%40mail.gmail.com.


Re: [tw5] What's the point of JSON tiddlers?

2021-05-12 Thread Mohammad Rahmani
On Wed, May 12, 2021 at 5:20 PM si  wrote:

> This question stems from a post I made here
> ,
> but I'm also curious about the more general question so I thought I'd make
> a separate post.
>
> *General question:*
>
> I can't think of anything that you can do with JSON tiddlers that you
> can't do with normal tiddlers, so I'm curious where it would make more
> sense to use JSON?
>

I think this is pretty correct! I even think the vice versa!



>
> Actually I can think of one thing: tiddler fields have character
> restrictions. But this doesn't seem like a big deal. It seems outweighed by
> the fact that we have much better tools for manipulating normal tiddlers.
>
> *Specific case:*
>
> My specific case that triggered this question was that I created a button
> to store "history" for particular tiddlers. The button essentially creates
> a clone of the current tiddler with the title
> /history/. Since I anticipate creating a lot
> of "history-tiddlers", it occurred to me that another approach would be to
> just store all the history data for a particular tiddler in a single JSON
> tiddler.
>
> This feels a little neater, but more specifically I wondered if there were
> any clear advantages to either approach? Will storing all history for a
> tiddler in a single JSON tiddler be less of a drain on performance than
> using lots of individual tiddlers?
>

I cannot judge about performance! but non-dataTiddler has many more
supports from the core while comparing with dataTiddler.
But as you said, sometimes I store data like a yes/no or definitions of
words or things one line  task/todo, in such cases I do not like to have
one tiddler per item and mess the Tiddlywiki!
Then when you do everything you see those tiddlers (I know you can use $:/
namespace...)
I use dataTiddler as a permanent object with many variables quite a lot and
they share the same namespace and this is quite handy and useful for
debugging...

So, in my opinion each has its own use case!




> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/5b2d5326-b0ef-4723-8a33-8597f92a8c99n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB%3DJyvN1PbFUtGJVFZwWnmwewyYumU75qN4YQ1NUOnd0A%40mail.gmail.com.


Re: [tw5] Using <> inside SVG icon definition

2021-05-12 Thread Mohammad Rahmani
Use this example in tiddlywiki.com

See the answer below, remove extra quotation marks!

On Thu, May 13, 2021 at 7:05 AM Frédéric Demers 
wrote:

> Hello everyone,
>
> probably an easy answer, but have been banging my head against this one
> for a while...
>
> I imported an SVG icon (
> https://morosanuae.github.io/tw-icons/#$:/images/icon-park/edit/list-checkbox-outline)
> and am trying to simply change the stroke/fill colour to the generic
> <> so it is most flexible when changing palette...
>
> Here's what I have so far, only one value to change really, and haven't
> managed to make it work; whenever I replace the string with the macro, the
> icon vanishes; tried a second define and tried using an external $(var)$
> inside the macro definition instead, and tried all types of quotes in three
> different places (main svg, around the variable and the macrocall
> parameter); alas no joy...
>
> \define drawIcon(foreground)
>  fill-opacity="0.01"/> stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> fill-rule="evenodd" clip-rule="evenodd" d="M20 38H44H20Z"
> fill="none"/> stroke-linecap="round" stroke-linejoin="round"/> clip-rule="evenodd" d="M20 10H44H20Z" fill="none"/> stroke=$foreground$ stroke-width="4" stroke-linecap="round"
> stroke-linejoin="round"/> fill="none" stroke=$foreground$ stroke-width="4"
> stroke-linejoin="round"/> fill="none" stroke=$foreground$ stroke-width="4"
> stroke-linejoin="round"/> stroke=$foreground$ stroke-width="4" stroke-linejoin="round"/>
> \end
>
> <$vars icon_color="#c8ced8">
> <$macrocall $name="drawIcon"  foreground="<>" />
>

<$macrocall $name="drawIcon"  foreground=<> />



> 
>
>




> *thanks in advance!!!*
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/dc54b674-9045-45ab-be25-c00359af0143n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDhRd%3DfcvgX_kJ0vrZZAGSyjBEBVk0D1FqcZcuUdeSi9A%40mail.gmail.com.


Re: [tw5] automatically update field

2021-05-12 Thread Mohammad Rahmani
   - YES

Example i
tiddler A has field fdx and fdy and you like fdy gets the value from fdx
dynamically
then put this in field fdy:  {{!!fdx}}

  Example i
tiddler A has field fdx and tiddler B has fdy and you like fdy gets the
value from fdx dynamically
then put this in field fdy of tiddler B:  {{A!!fdx}}



Best wishes
Mohammad


On Thu, May 13, 2021 at 6:17 AM 'mohamed maghrabi' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

>
> Hi,
>
> is it possible to have one field change value based on another value
> entered in another field
>
> so i am thinking similar to excell you can say if cell x = 1  then current
> cell =y
>
> sorry if i sound naive:)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/3ec88fc2-2c37-4516-a7da-cc6f08186afbn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMBb_37ZbGQ9RT1iCWqZj7Z5e6gzetpDgpFaKcnFbpfwEg%40mail.gmail.com.


[tw5] Using <> inside SVG icon definition

2021-05-12 Thread Frédéric Demers
Hello everyone, 

probably an easy answer, but have been banging my head against this one for 
a while...

I imported an SVG icon 
(https://morosanuae.github.io/tw-icons/#$:/images/icon-park/edit/list-checkbox-outline)
 
and am trying to simply change the stroke/fill colour to the generic 
<> so it is most flexible when changing palette...

Here's what I have so far, only one value to change really, and haven't 
managed to make it work; whenever I replace the string with the macro, the 
icon vanishes; tried a second define and tried using an external $(var)$ 
inside the macro definition instead, and tried all types of quotes in three 
different places (main svg, around the variable and the macrocall 
parameter); alas no joy...

\define drawIcon(foreground)

\end

<$vars icon_color="#c8ced8">
<$macrocall $name="drawIcon"  foreground="<>" />


*thanks in advance!!!*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dc54b674-9045-45ab-be25-c00359af0143n%40googlegroups.com.


[tw5] automatically update field

2021-05-12 Thread 'mohamed maghrabi' via TiddlyWiki

Hi,

is it possible to have one field change value based on another value 
entered in another field

so i am thinking similar to excell you can say if cell x = 1  then current 
cell =y

sorry if i sound naive:)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3ec88fc2-2c37-4516-a7da-cc6f08186afbn%40googlegroups.com.


Re: [tw5] Macros: A very (VERY!) basic introduction

2021-05-12 Thread Charlie Veniot
So many interests, so little time ...

I've been preoccupied with other projects lately.  Although next tutorial 
is still brewing in my sponge, I did want to give the related 
"Understanding Macros" tiddler a little bit of TLC.

First, I included A Prototype of UID's for stable permalinks 
 functionality into 
my "TiddlyWiki Programming" project, so that I can create a UID-based 
permalink for "Understanding Macros." 


As per my nature, I could not help but tweak the titles of related 
sub-tiddlers.  So I rejigged some titles with the words "Lesson" among 
other things.

Although a video would be overkill (I think), I did add the following 
because it at least needs to be mentioned:  Lesson 1+⅒: The One-Liner Macro.

Now, back to envisioning "Lesson 2: The Global Macro".

Cheers !
On Monday, May 3, 2021 at 12:59:45 PM UTC-3 Charlie Veniot wrote:

> Arg, spoiler alert ?
>
> Global macros are part of a future "odds and ends" tutorial, likely mixed 
> in with "single line" macros (i.e. just "define", no "end", no sandwich).
>
>
>
> On Monday, May 3, 2021 at 6:22:23 AM UTC-3 rayv...@gmail.com wrote:
>
>> GREAT!! Thanks!!! THIS is what we need! Please continue!! One tip: if 
>> you create a tiddler called Indent, put your macro in that tiddler and tag 
>> that tiddler as $:/tags/Macro then you can use the <> macro 
>> system wide :-)
>>
>>
>> Op ma 3 mei 2021 om 03:31 schreef Charlie Veniot :
>>
>>> Here it is a no-fuss-no-muss rough around the edges toe-dip into macros:
>>>
>>> TiddlyWiki Macros: A very (VERY!) basic introduction 
>>> 
>>>
>>> Multi-tasking doing and speaking does not to this kid naturally happen.
>>>
>>> Face for radio, yet short on skill for radio.
>>>
>>> Still a boatload of fun.
>>>
>>> Maybe good for putting any of your young kiddos to sleep ???
>>>
>>>
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/808ae4c6-c2b7-4959-b24e-b38cb05bf606n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eda30a00-252c-4499-b23e-24a14c3f81can%40googlegroups.com.


[tw5] Re: What's the point of JSON tiddlers?

2021-05-12 Thread TW Tones
Si,

First, a tiddler incode inside in a JSON tiddler does not have a searchable 
title, this can be helpful sometimes. 

On your first questions it all depends on the application/content or data, 
for example I expect you are saving modified fields as a whole, if you have 
large text fields and added a period the whole text field would be stored 
again.

On your general Question.

   - I can  think of many things that you can do with JSON tiddlers that 
   you can't do with normal tiddlers
   - Tiddler field names have character limitations, not much in the 
   content.
   
On closing I think in your propose history tiddlers it would make sense to 
move them to JSON. Note this is exactly what Monhamads trash plugin does.

   - Lest a search bring up historical tiddler when you done want them.
   - You can then easily export/reimport the history tiddlers as one JSON 
   file and more.

Tones


On Thursday, 13 May 2021 at 01:11:29 UTC+10 si wrote:

> This question stems from a post I made here 
> , 
> but I'm also curious about the more general question so I thought I'd make 
> a separate post.
>
> *Specific case:*
>
> My specific case that triggered this question was that I created a button 
> to store "history" for particular tiddlers. The button essentially creates 
> a clone of the current tiddler with the title 
> /history/. Since I anticipate creating a lot 
> of "history-tiddlers", it occurred to me that another approach would be to 
> just store all the history data for a particular tiddler in a single JSON 
> tiddler.
>
> This feels a little neater, but more specifically I wondered if there were 
> any clear advantages to either approach? Will storing all history for a 
> tiddler in a single JSON tiddler be less of a drain on performance than 
> using lots of individual tiddlers?
>
> *General question:*
>
> I can't think of anything that you can do with JSON tiddlers that you 
> can't do with normal tiddlers, so I'm curious where it would make more 
> sense to use JSON?
>
> Actually I can think of one thing: tiddler fields have character 
> restrictions. But this doesn't seem like a big deal. It seems outweighed by 
> the fact that we have much better tools for manipulating normal tiddlers.
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/491167fb-c448-4594-886c-2e24d885003dn%40googlegroups.com.


Re: [tw5] A tour through my Zettelkasten

2021-05-12 Thread Soren Bjornstad
I walked through them in the video, but here's a quick summary of what 
they're for:

   - Stubs – ideas that I haven't written about yet, usually with just a 
   title, or a quote, or a sentence or two describing what it will be (items 
   tagged Stub)
   - Missing – same as in stock TW
   - Needing attention – some unspecified work needs to be done on the 
   tiddler, often I don't agree with the contents anymore, or it needs 
   reorganization
   - Needing excision – the tiddler turned into a bunch of confused ideas 
   put together and I need to think about what those are and split it up 
   (items tagged NeedsExcision)
   - To-do items – anywhere I link to TODO, the tiddler is added to the 
   list, along with  the phrase after the link, so I get a nice list of 
   specific things that need to be fixed/added to
   - Open questions – things I don't know the answer to, but would like to 
   review periodically in case I have new experiences that might provide 
   answers (links to OpenQuestion)

Side note: is anyone else experiencing a problem with the new Google Groups 
while editing a post, where sometimes most of the screen will go blank 
after pressing Page Down, leaving only a tiny sliver at the top of the 
screen to display the thread? Super annoying.
On Monday, May 10, 2021 at 10:45:38 PM UTC-5 Mohammad wrote:

> Hi Soren,
>
> On Tue, May 11, 2021 at 2:45 AM Soren Bjornstad  
> wrote:
>
>> On Monday, May 10, 2021 at 2:43:34 PM UTC-5 Mohammad wrote:
>>
>>> One question: How do you select the categories in the Write tab? I mean 
>>> for Ztellkasten point of view?
>>> I watch the viedo but not quite understand your philosophy here!
>>>
>>
>> I'm not sure I understand the question – are you asking how, technically, 
>> the contents of each tab are aggregated, or why I chose that list of 
>> "looking for attention" conditions?
>>
>
> No, I do not mean technical implementation! but I ask about names of those 
> categories like "open questions", "stubs"? Are those some recommended 
> categories or names?
>
>  
>
>>  
>>
>>> Also the Explorer while we have the More Tab!
>>>
>>
>> The Explorer is intended to be a simplified version of the More tab for 
>> use in the public wiki. I just haven't bothered to hide it in the private 
>> one because it hasn't gotten in my way, but it would likely make sense to 
>> do so now that I've stopped making changes to it frequently.
>>
>
> That makes sense: a simple more tab for the public, for those who visit 
> the page but do not know Tiddlywiki. Instead of hiding parts of More tab, 
> create a separate tab!
> Good idea!
>
>  
>
>>  
>>
>>> I like to adopt the tiddler reference explorer in minimal yet flexible 
>>> form and sidebar extra tabs in a plugin (using a different taste).
>>> I cannot see any license in your wiki, so I want to get permission if I 
>>> am allowed to use both these ideas in a new plugin!
>>>
>>
>> MIT license: 
>> https://zettelkasten.sorenbjornstad.com/#PublicHomepage/Copyright
>>
>
> Ah, yes! I did not see that! System tiddlers under MIT license! 
> Zettelkasten and effective note taking is your area of expertise, so 
> please go ahead!
> Looking forward to seeing more from you!
>
>> -- 
>> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/19af44e2-d653-4fb4-9c94-2d7e1f0b0267n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/26ec5e37-6f23-4dc7-95ae-278726c6afbbn%40googlegroups.com.


[tw5] Re: Import question

2021-05-12 Thread TW Tones
Running a wiki inside tiddlydesktop will give you more local rights.

I am confident others have solved this problem previously.

Regards
Tones

On Thursday, 13 May 2021 at 06:56:30 UTC+10 mwik...@gmail.com wrote:

> There must be a way but I'm not sure how to get the path information when 
> you drag and drop a file from a file manager. It doesn't seem to end up in 
> <> like a URL/link drag from a browser does.
>
> You also might have to fight with the normal import handler. Being able to 
> import just the URI of the file rather than the file itself with a checkbox 
> would be a useful RFE to the normal import mechanism but extending that is 
> beyond me at the moment.
>
> /Mike
>
> On Wednesday, May 12, 2021 at 5:40:27 PM UTC-3 History Buff wrote:
>
>> Thanks Mike,
>>
>> I'll take a look at what you've done and will see if it can be adapted to 
>> my needs. One question I have right off the bat is can I change the macro 
>> so that I can drag from a Windows Explorer window and not a browser window? 
>> It's not a huge inconvenience, but am curious as to whether that could be 
>> done.
>>
>>
>> On Wednesday, May 12, 2021 at 12:00:59 PM UTC-7 mwik...@gmail.com wrote:
>>
>>> There is some complications with a tiddlywiki on an http:// site and 
>>> displaying file:// type URLs but so long as the tiddlywiki is on your 
>>> filesystem, it can display both http:// and file:// URIs.
>>>
>>> I put together a convenience tool 
>>>  for making canonical_uri 
>>> tiddlers and tagging them for future sorting. So just open up the local 
>>> directory of images in a browser window (file:///>> pictures>) and then you can drag and drop the links one at a time into the 
>>> zone that DropCanonicalURI sets up. It will assign the mime-type that you 
>>> set and tag the resulting tiddler with the name of the tidder that contains 
>>> the macro. Browsers are not picky about the specific image type so long as 
>>> you select one with the "image/" prefix ... so with a mix of jpgs and pngs, 
>>> you should be able to just pick one and go with it. If I had the time, I 
>>> could likely make it more clever and pick a good guess at a mime-type based 
>>> on file extension ... but for now it is manual.
>>>
>>> The ListHere  macro and DropHere 
>>>  functionality might be useful to use 
>>> in conjunction with this for further sorting/tagging/displaying. The 
>>> DropHere isn't a macro unto itself since you would want to wrap it around 
>>> some element that you want to make into a dropzone. But the example inside 
>>> should get to going.
>>>
>>> Hope you can put these to some use.
>>>
>>> /Mike
>>>
>>> On Wednesday, May 12, 2021 at 2:33:51 PM UTC-3 History Buff wrote:
>>>
 Hello all,

 I am building a TW to organize all of our family photos. So far, I've 
 been doing everything by hand which is a tad tedious. I'm wondering if 
 there might be a way to use the import mechanism a little differently than 
 what I think is currently available (at least as far as I have found).

 What I would like to do is to click an import button which would pull 
 up a file picker. I would then pick my image that I wanted to use, but 
 instead of importing the image as an external image tiddler, I would like 
 to basically only import a path to the image such that I can use that path 
 in creating my own external links and formatting them any way that I 
 choose. I don't know enough about the import mechanism yet to understand 
 if 
 this is even possible or how to go about it.

 Any thoughts or ideas?

 Many thanks in advance.

>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b821c631-a877-4b69-84fc-f50b8463c25fn%40googlegroups.com.


[tw5] Re: fields inheritance

2021-05-12 Thread TW Tones
Folks,

My thoughts without working through all your comments (yet)

Inheritance is a concept, there are many ways to implement it, you do not 
need core changes, Inheritance can just be at creation, a smart new hear 
button will create a child from values in the parent, templates for new 
tiddler is also in effect one level of inheritance. Solutions where a set 
of values defines a "context" eg; work, project-name, client; allows new 
tiddlers to inherit a prior value. With this approach the relink plugin can 
be configured to support renames.

Now in these cases inheritance takes place in each node at creation or 
update. Using the KIN operator gives you access to the whole inheritance 
tree. 

Now if you wanted to determine inheritance without actual values in each 
tiddler you need to use a search/kin filter to find the value for each 
tiddler, every time you want that value. I am sure it can be done but I 
question the value. There may be some rare cases where it is a good 
approach, but more effectively if limited to particular fields and 
tiddlers, rather than weighing the wiki down with more calculations. The 
exception may be if you only need to inherit from a parent not deeper.

Another way to represent inheritance is rather than provide a field with a 
value, provide it with the code or filter necessary to find the value. If 
it contains a filter or macro use that to find the value otherwise use the 
actual value in a field. for example a field could contain a filter using 
the kin operator to find the value.

If you do not need to explore multiple levels to find the inherited values, 
and can quickly identify from where to inherit the value performance would 
be greatly improved.

Regards
Tones

On Thursday, 13 May 2021 at 09:25:39 UTC+10 Soren Bjornstad wrote:

> I'm with PMario – I'm just not sure that this makes much sense in the 
> TiddlyWiki idiom. It's like you're used to driving a car, and TiddlyWiki is 
> a train, and looking at the train, you go, “But where are the rubber 
> tires?” It just doesn't have rubber tires...but it still rolls just as 
> well, it just works a different way. TiddlyWiki is almost completely 
> non-hierarchical, so inheritance seems like a particularly bad fit.
>
> > I also found Trilium's attributes extra functionalities very useful, esp 
> the ability to use them to define custom relations between different Notes, 
> which is similar to what tiddlymap does but has several advantages, e.g. to 
> query Notes based on their relations.
>
> If I'm understanding the ability to "query Notes based on their relations" 
> correctly, this works exactly the same way in TW...just put the name of 
> another tiddler or tiddlers in a field, and then use a filter. E.g., for a 
> parent/child relationship where the child stores its parent in a 'parent' 
> field:
>
> [parent[MyTiddler]] – finds all children of MyTiddler
> [parent[MyTiddler]related[MyOtherTiddler]tag[Source]] – finds all sources 
> that are children of MyTiddler and related to MyOtherTiddler
> [tag[Source]parent[MyTiddler]links[]] – finds all notes linked to by 
> sources that are children of MyTiddler
>
> (If you want to allow more than one tiddler to be in the field for 
> relations, you would make the field contain a title list 
>  and use 'contains:parent` instead 
> of just 'parent'.)
>
> For standard inheritance, in TW you would normally just compose your 
> filter to look for the parent tiddlers when determining what value a field 
> has. I would probably need an example of how you use this to avoid giving 
> you something really convoluted, so I'll pass on trying to provide one up 
> front, but if there's something you're looking for let me know.
>
> For copy inheritance, as PMario mentioned, you would create a custom 
> button on the parent tiddler (or anywhere else you like) that prepopulates 
> the fields. In fact this is more flexible because you can set the fields to 
> whatever you like. For example, here's a button that would copy the tags 
> and description of the current tiddler to the newly created tiddler, set 
> the `year` field to the current year, and set the `url` field to the 
> contents of some configured tiddler containing a base URL plus the title of 
> the current tiddler.
>
> <$button>
>   <$action-sendmessage
> $message="tm-new-tiddler"
> title="New Child"
> tags={{!!tags}}
> description={{!!description}}
> url={{{ [{MyBaseUrl}addsuffix] }}}
> year=<> />
>   New Child
> 
> On Wednesday, May 12, 2021 at 2:59:45 PM UTC-5 damscal wrote:
>
>> Hi Mario, thank you for your reply-
>> I haven't thoroughly thought about the possible implementations in TW, 
>> but I've found Trilium's approach very intuitive and efficient to work 
>> with. I guess a similar approach, being able to dynamically inherit tags 
>> and other fields using template tiddlers, would make TW quicker and easier 
>> to manage, esp if the user hasn't a well 

[tw5] Re: [Comment] Data Dictionaries are GOOD for some things ...

2021-05-12 Thread TW Tones
I agree TT

It is a way to pump a list into a tiddler and reference it by key going 
forward and much more. Same can be done with a JSON but editing directly is 
easier.

Tones

On Thursday, 13 May 2021 at 03:11:58 UTC+10 TiddlyTweeter wrote:

> In basic mode data dictionaries are just an INDEX and a VALUE, but a LOT 
> of things that we play with in life are that simple binary ...
>
> [image: Screenshot 2021-05-12 190453.jpg]
> In TW I think we could use them a bit more easily?
>
> They are NOT difficult to edit once you know how to reference the 
> index/value.
>
> Just a comment
> TT
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cda51df9-08fb-49ec-9467-a85f1e049bb9n%40googlegroups.com.


[tw5] Re: Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-12 Thread TW Tones
I have some faded memories of seeing some code folding. However the code 
highlighting features get you part of the way functionally.

My guess it beyond building a code folding viewer (which may be moderately 
easy), an extension to the CodeMirror plugin may be the quickest route to 
this feature in an edit mode. CodeMirror has a life of its own outside 
tiddlywiki, it may have a folding feature that could be incorporated. 

Tones


On Wednesday, 12 May 2021 at 22:53:37 UTC+10 cj.v...@gmail.com wrote:

> Folding the lines is usually based on keywords, whatever between the 
> starting keyword and ending keyword getting folded.
>
> I don't know of any other way to have code folding.
>
> So yes, things like widget tags, macro defs, html tags, comment tags.
>
> Although the philosophy of tiddlers is to keep the small, they can get 
> easily get pretty big when delving into more than wikitext (i.e. 
> programming with widgets and macros, and formatting with html elements.)
>
> On Wednesday, May 12, 2021 at 7:19:55 AM UTC-3 Mat wrote:
>
>> I would also like a native solution for code folding in the editor.
>>
>> It may be too complicated but rather than line folding, it would make 
>> more sense with "widget folding" by using the opening and closing tags of 
>> widgets, macro defs and html tags.
>>
>> Second best would be to use indentation level.
>>
>> <:-)
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe7c1af1-b5b2-4120-8e47-ef3cea6edcf8n%40googlegroups.com.


[tw5] Re: fields inheritance

2021-05-12 Thread Soren Bjornstad
I'm with PMario – I'm just not sure that this makes much sense in the 
TiddlyWiki idiom. It's like you're used to driving a car, and TiddlyWiki is 
a train, and looking at the train, you go, “But where are the rubber 
tires?” It just doesn't have rubber tires...but it still rolls just as 
well, it just works a different way. TiddlyWiki is almost completely 
non-hierarchical, so inheritance seems like a particularly bad fit.

> I also found Trilium's attributes extra functionalities very useful, esp 
the ability to use them to define custom relations between different Notes, 
which is similar to what tiddlymap does but has several advantages, e.g. to 
query Notes based on their relations.

If I'm understanding the ability to "query Notes based on their relations" 
correctly, this works exactly the same way in TW...just put the name of 
another tiddler or tiddlers in a field, and then use a filter. E.g., for a 
parent/child relationship where the child stores its parent in a 'parent' 
field:

[parent[MyTiddler]] – finds all children of MyTiddler
[parent[MyTiddler]related[MyOtherTiddler]tag[Source]] – finds all sources 
that are children of MyTiddler and related to MyOtherTiddler
[tag[Source]parent[MyTiddler]links[]] – finds all notes linked to by 
sources that are children of MyTiddler

(If you want to allow more than one tiddler to be in the field for 
relations, you would make the field contain a title list 
 and use 'contains:parent` instead of 
just 'parent'.)

For standard inheritance, in TW you would normally just compose your filter 
to look for the parent tiddlers when determining what value a field has. I 
would probably need an example of how you use this to avoid giving you 
something really convoluted, so I'll pass on trying to provide one up 
front, but if there's something you're looking for let me know.

For copy inheritance, as PMario mentioned, you would create a custom button 
on the parent tiddler (or anywhere else you like) that prepopulates the 
fields. In fact this is more flexible because you can set the fields to 
whatever you like. For example, here's a button that would copy the tags 
and description of the current tiddler to the newly created tiddler, set 
the `year` field to the current year, and set the `url` field to the 
contents of some configured tiddler containing a base URL plus the title of 
the current tiddler.

<$button>
  <$action-sendmessage
$message="tm-new-tiddler"
title="New Child"
tags={{!!tags}}
description={{!!description}}
url={{{ [{MyBaseUrl}addsuffix] }}}
year=<> />
  New Child

On Wednesday, May 12, 2021 at 2:59:45 PM UTC-5 damscal wrote:

> Hi Mario, thank you for your reply-
> I haven't thoroughly thought about the possible implementations in TW, but 
> I've found Trilium's approach very intuitive and efficient to work with. I 
> guess a similar approach, being able to dynamically inherit tags and other 
> fields using template tiddlers, would make TW quicker and easier to manage, 
> esp if the user hasn't a well defined mindset yet and need to change things 
> all the time. Arguably I would guess it could actually be coherent to the 
> philosophy of tiddlers ( 
> https://tiddlywiki.com/#Philosophy%20of%20Tiddlers ), and perhaps a new 
> exporting option could be added that would let the user choose whether to 
> export tiddlers as they are, or to copy the inherited referenced 
> information into the tiddlers that are being exported in order to make them 
> self-consistent (kind of the analogue of copying symlinks targets or the 
> symlink themselves when working with filesystems)
>
> it could be off-topic, but incidentally I also found Trilium's attributes 
> extra functionalities very useful, esp the ability to use them to define 
> custom relations between different Notes, which is similar to what 
> tiddlymap does but has several advantages, e.g. to query Notes based on 
> their relations.
> On Wednesday, May 12, 2021 at 8:12:03 PM UTC+2 PMario wrote:
>
>> On Wednesday, May 12, 2021 at 6:42:35 PM UTC+2 damscal wrote:
>>
>>> Trilium  provides quite intuitive 
>>> built-in ways to have Notes (the analogues to Tiddlywiki's tiddlers) 
>>> dynamically and selectively inherit their Attributes from other Notes, as 
>>> described here 
>>>  and here 
>>> . In Trilium, Attributes 
>>>  are similar to 
>>> Tiddlywiki's fields with extra built-in features.
>>> Inheritance is convenient as it saves a lot of time when creating and 
>>> organizing notes, plus it makes maintenance very straightforward.
>>>
>>> Can/could Tiddlywiki achieve something similar?
>>>
>>
>> Sure, if someone would program it. ... BUT there is absolutely no support 
>> in the core atm. So nothing will work. Especially filtering would have a 

Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread TW Tones
I understood the TT issue correctly, or I can imagine another;

 a link from one wiki https://tiddlywiki.com/#Community could result in a 
link [[Community]] in a destination drop zone, this makes me think of 
absolute and relative links encountered in Excel or other spreadsheets. 
This is useful if you want to drag a tiddler "reference" in one wiki to 
another mostly to point to system tiddlers. Perhaps alt-drag could drop 
tiddlers with the url component removed. This is also helpful when writing 
and dropping titles into content and especially documenting tiddlywiki 
customisations and hacks.

Tones

On Thursday, 13 May 2021 at 05:46:28 UTC+10 Mohammad wrote:

> On Wed, May 12, 2021 at 11:54 PM TiddlyTweeter  
> wrote:
>
>> TiddlyTweeter  wrote:
>>>
 NO. NOT for those internal links. I simply d-n-d from  within the wiki 
 itself. 
>>>
>>> Mohammad wrote: 
>>
>>> Okay! As I assumed Bookmarker is used to bookmark external links! For me 
>>> external links work fine!
>>> You can check the type of item (dragged and dropped item) to see if it 
>>> is a tiddler and then you can take better / separate action.
>>>
>>
>> Right. BUT. Both External AND Internal links are needed for optimal use! 
>> The issue is OFTEN I have a LOCAL tiddler I want to associate with an 
>> EXTERNAL link.
>>
>> I think, practically, using ONE method for BOTH is the best way??? :-)
>>
>
> Agree! I mean you can check the action macro in your code! It can check if 
> the dropped item is a tiddler (internal) or it is an external link!
> Then take the proper actions
>
>>
>> Just a comment, TT 
>>
> -- 
>> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/37914e56-09a1-4cd6-9c32-351dfe4f586bn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ee37d1e3-ec86-498f-86a2-bd8c7419899fn%40googlegroups.com.


[tw5] Re: How to build a transclusion from fields in other tiddlers?

2021-05-12 Thread Soren Bjornstad
If I'm understanding what you want correctly, the easiest way is a filtered 
transclusion  with 
the getindex operator:

{{{ [{ApplicationChoice}getindex{!!idnumber}] }}}

If you don't want the result to show up as a link, you can use the $text 
widget:

<$text text={{{ [{ApplicationChoice}getindex{!!idnumber}] }}}/>

As you noted, {{ApplicationChoice##{{!!idnumber doesn't work. 
TiddlyWiki doesn't parse wikitext inside double braces, so once you get 
into the first {{, it's not going to know what to do with {{!!idnumber}}.
On Wednesday, May 12, 2021 at 9:49:48 AM UTC-5 markh...@gmail.com wrote:

>
> I want to build a transclusion from the text of one tiddler and the 
> returned lookup value from a data tiddler. For example. I want to build and 
> evaluate ``{{drill##101}}`` and get ``P01.02.03`` from the following 
> pieces:
>
> * ``{{AplicationChoice}}`` evaluates to or contains ``drill``, and
> * Data tiddler ``drill`` has an entry ``101:P01.02.03``, and
> * ``{{ID101!!idnumber}}`` is ``101``, and
> * I want to do this transclusion from the ``ID101`` tiddler (or from 
> other ID tiddlers with different ID numbers).
>
> Conceptually, from tiddler ID101 I'd like to evaluate ``
> {{ApplicationChoice##{{!!idnumber`` and get ``P01.02.03`` ... but 
> that isn't working. I'll admit to not well understanding use of braces, 
> square brackets, angle brackets and spacing to control evaluation of text.
>
> ***Background
>
> There are tiddlers for each of the multiple IDs (e.g., ID101, ID102, 
> ID103, ...), and data tiddlers for each of the multiple applications (e.g., 
> drill, saw, hammer, ...). There are multiple Ps (e.g., P01.01.01, P03.01, 
> P03.01.04, ...) but no tiddlers are defined for each P number. I select the 
> current application by using a selection list to put the selected 
> application into tiddler ``ApplicationChoice``. I want the ID number 
> tiddlers to display their associated P number based on the selected 
> application.
>
> Note that the ID number and the P number are different, separate from each 
> other, and have a many-to-many relationship. The particular relationship to 
> use is based on the application chosen (e.g., drill, or saw, or hammer), so 
> I can't put a constant ID number field in P tiddlers, and I can't put a 
> constant P number field in the ID number tiddlers. This relationship has 
> been provided to me and I can't change it. P numbers are used to navigate 
> an interface (they are the screen name), and ID numbers contain the actual 
> nuggets of information.
>
> Thanks ahead of time for any suggestions!
>
> ~Mark Hylton
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d9d9a7f-2404-4e9b-8bfb-f929239dffc9n%40googlegroups.com.


[tw5] Resources on creating themes

2021-05-12 Thread Odin
Hi!

Are there any resources or tutorials on how to create a new theme for 
TiddlyWiki? I've looked around, but I couldn't really find any.

Some themes are just stylesheets, but themes from JD or Nicolas go much 
further than that.

I am also curious how the new page layout switcher would intersect with 
themes. As you could make the layout and theming separately.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/02907353-2c68-42d0-84ca-220b07395f3en%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread Charlie Veniot


On Wednesday, May 12, 2021 at 6:37:57 AM UTC-3 TiddlyTweeter wrote:

> Atronoush wrote:
>
>> I think most of you have the same opinion as me that the TW standard 
>> search loses its efficiency as soon as your Tiddlywiki gets large. 
>>
>
> Right, *sort of ...*
>
> The TYPE of search you need actually is related, really, to the *nature 
> of the content* of the wiki so I don't think, on developed apps, *with 
> larger content,* you could ever have a totally *generic standard* method 
> that would work optimally in all wiki. 
> WHY? Because different wikis place more importance on "text" or "title" or 
> other fields.
>

 That's exactly what I was thinking, without consciously knowing I was 
thinking it, and expressed way more coherently than I ever could hope to 
express.  Damn it, that was really good.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/777bf8b9-5cae-485a-b8d6-dca2084c8bb1n%40googlegroups.com.


[tw5] Re: Import question

2021-05-12 Thread Michael Wiktowy
There must be a way but I'm not sure how to get the path information when 
you drag and drop a file from a file manager. It doesn't seem to end up in 
<> like a URL/link drag from a browser does.

You also might have to fight with the normal import handler. Being able to 
import just the URI of the file rather than the file itself with a checkbox 
would be a useful RFE to the normal import mechanism but extending that is 
beyond me at the moment.

/Mike

On Wednesday, May 12, 2021 at 5:40:27 PM UTC-3 History Buff wrote:

> Thanks Mike,
>
> I'll take a look at what you've done and will see if it can be adapted to 
> my needs. One question I have right off the bat is can I change the macro 
> so that I can drag from a Windows Explorer window and not a browser window? 
> It's not a huge inconvenience, but am curious as to whether that could be 
> done.
>
>
> On Wednesday, May 12, 2021 at 12:00:59 PM UTC-7 mwik...@gmail.com wrote:
>
>> There is some complications with a tiddlywiki on an http:// site and 
>> displaying file:// type URLs but so long as the tiddlywiki is on your 
>> filesystem, it can display both http:// and file:// URIs.
>>
>> I put together a convenience tool 
>>  for making canonical_uri 
>> tiddlers and tagging them for future sorting. So just open up the local 
>> directory of images in a browser window (file:///> pictures>) and then you can drag and drop the links one at a time into the 
>> zone that DropCanonicalURI sets up. It will assign the mime-type that you 
>> set and tag the resulting tiddler with the name of the tidder that contains 
>> the macro. Browsers are not picky about the specific image type so long as 
>> you select one with the "image/" prefix ... so with a mix of jpgs and pngs, 
>> you should be able to just pick one and go with it. If I had the time, I 
>> could likely make it more clever and pick a good guess at a mime-type based 
>> on file extension ... but for now it is manual.
>>
>> The ListHere  macro and DropHere 
>>  functionality might be useful to use 
>> in conjunction with this for further sorting/tagging/displaying. The 
>> DropHere isn't a macro unto itself since you would want to wrap it around 
>> some element that you want to make into a dropzone. But the example inside 
>> should get to going.
>>
>> Hope you can put these to some use.
>>
>> /Mike
>>
>> On Wednesday, May 12, 2021 at 2:33:51 PM UTC-3 History Buff wrote:
>>
>>> Hello all,
>>>
>>> I am building a TW to organize all of our family photos. So far, I've 
>>> been doing everything by hand which is a tad tedious. I'm wondering if 
>>> there might be a way to use the import mechanism a little differently than 
>>> what I think is currently available (at least as far as I have found).
>>>
>>> What I would like to do is to click an import button which would pull up 
>>> a file picker. I would then pick my image that I wanted to use, but instead 
>>> of importing the image as an external image tiddler, I would like to 
>>> basically only import a path to the image such that I can use that path in 
>>> creating my own external links and formatting them any way that I choose. I 
>>> don't know enough about the import mechanism yet to understand if this is 
>>> even possible or how to go about it.
>>>
>>> Any thoughts or ideas?
>>>
>>> Many thanks in advance.
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f152f76-117a-45df-8416-c29825120a6bn%40googlegroups.com.


[tw5] Re: Import question

2021-05-12 Thread History Buff
Thanks Mike,

I'll take a look at what you've done and will see if it can be adapted to 
my needs. One question I have right off the bat is can I change the macro 
so that I can drag from a Windows Explorer window and not a browser window? 
It's not a huge inconvenience, but am curious as to whether that could be 
done.


On Wednesday, May 12, 2021 at 12:00:59 PM UTC-7 mwik...@gmail.com wrote:

> There is some complications with a tiddlywiki on an http:// site and 
> displaying file:// type URLs but so long as the tiddlywiki is on your 
> filesystem, it can display both http:// and file:// URIs.
>
> I put together a convenience tool 
>  for making canonical_uri 
> tiddlers and tagging them for future sorting. So just open up the local 
> directory of images in a browser window (file:/// pictures>) and then you can drag and drop the links one at a time into the 
> zone that DropCanonicalURI sets up. It will assign the mime-type that you 
> set and tag the resulting tiddler with the name of the tidder that contains 
> the macro. Browsers are not picky about the specific image type so long as 
> you select one with the "image/" prefix ... so with a mix of jpgs and pngs, 
> you should be able to just pick one and go with it. If I had the time, I 
> could likely make it more clever and pick a good guess at a mime-type based 
> on file extension ... but for now it is manual.
>
> The ListHere  macro and DropHere 
>  functionality might be useful to use in 
> conjunction with this for further sorting/tagging/displaying. The DropHere 
> isn't a macro unto itself since you would want to wrap it around some 
> element that you want to make into a dropzone. But the example inside 
> should get to going.
>
> Hope you can put these to some use.
>
> /Mike
>
> On Wednesday, May 12, 2021 at 2:33:51 PM UTC-3 History Buff wrote:
>
>> Hello all,
>>
>> I am building a TW to organize all of our family photos. So far, I've 
>> been doing everything by hand which is a tad tedious. I'm wondering if 
>> there might be a way to use the import mechanism a little differently than 
>> what I think is currently available (at least as far as I have found).
>>
>> What I would like to do is to click an import button which would pull up 
>> a file picker. I would then pick my image that I wanted to use, but instead 
>> of importing the image as an external image tiddler, I would like to 
>> basically only import a path to the image such that I can use that path in 
>> creating my own external links and formatting them any way that I choose. I 
>> don't know enough about the import mechanism yet to understand if this is 
>> even possible or how to go about it.
>>
>> Any thoughts or ideas?
>>
>> Many thanks in advance.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8ea1d7b5-31ee-4b31-8297-88de78fcd553n%40googlegroups.com.


[tw5] Re: fields inheritance

2021-05-12 Thread damscal
Hi Mario, thank you for your reply-
I haven't thoroughly thought about the possible implementations in TW, but 
I've found Trilium's approach very intuitive and efficient to work with. I 
guess a similar approach, being able to dynamically inherit tags and other 
fields using template tiddlers, would make TW quicker and easier to manage, 
esp if the user hasn't a well defined mindset yet and need to change things 
all the time. Arguably I would guess it could actually be coherent to the 
philosophy of tiddlers ( https://tiddlywiki.com/#Philosophy%20of%20Tiddlers 
), and perhaps a new exporting option could be added that would let the 
user choose whether to export tiddlers as they are, or to copy the 
inherited referenced information into the tiddlers that are being exported 
in order to make them self-consistent (kind of the analogue of copying 
symlinks targets or the symlink themselves when working with filesystems)

it could be off-topic, but incidentally I also found Trilium's attributes 
extra functionalities very useful, esp the ability to use them to define 
custom relations between different Notes, which is similar to what 
tiddlymap does but has several advantages, e.g. to query Notes based on 
their relations.
On Wednesday, May 12, 2021 at 8:12:03 PM UTC+2 PMario wrote:

> On Wednesday, May 12, 2021 at 6:42:35 PM UTC+2 damscal wrote:
>
>> Trilium  provides quite intuitive 
>> built-in ways to have Notes (the analogues to Tiddlywiki's tiddlers) 
>> dynamically and selectively inherit their Attributes from other Notes, as 
>> described here 
>>  and here 
>> . In Trilium, Attributes 
>>  are similar to 
>> Tiddlywiki's fields with extra built-in features.
>> Inheritance is convenient as it saves a lot of time when creating and 
>> organizing notes, plus it makes maintenance very straightforward.
>>
>> Can/could Tiddlywiki achieve something similar?
>>
>
> Sure, if someone would program it. ... BUT there is absolutely no support 
> in the core atm. So nothing will work. Especially filtering would have a 
> big problem.
>
> TLDR;
> IMO you should probably tell us, what exactly you want to inherit, so we 
> can tell you how to implement it in "the TW way", which will be more 
> efficient in the long run.
>
> 
>
> From your links, it seems some "attributes" are "indirectly" inherited. 
> eg: 
>
> parent has (key-a: value-a)
>|
>+-- child 1 .. will inherit (key-a: value-a) from parent
>+-- child 2 .. will inherit (key-a: value-a) from parent
>
> If child 2 is moved to 
> test has (key-b: value-b)
>|
>+-- child 2 .. will inherit (key-b: value-b) from test
>
> This behaviour can have some "nice" effects, if you know, that they exist. 
> ... BUT it also "connects" 2 elements in a way, that they only can exist 
> together without loosing information. ... That's not how TW is designed. 
>
> In TiddlyWiki, "a tiddler is a tiddler is a tiddler". ... So they should 
> be usable, even if used or moved as a single unit. 
>
> We do have other mechanisms, that let us "connect" 2 tiddlers. .. Tags, 
> New Here, New Journal here, links and transclusions ... 
>
> Tags are like "groups"
>
> New xxx ... Some fields from a "template" tiddler are copied over to the 
> new tiddler. ... This can be changed, if you create your own buttons. 
>
> [[links]] ... Are handled by the core in a special way, so showing 
> "backlinks" can be fast. 
>
> {{transclusions}} ... connect 2 tiddlers in an "indirect" way. ... So they 
> can live alone, but they are not "complete" if they are alone. 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bd240bcf-8afe-4170-a313-2611a2ea6fc5n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread Mohammad Rahmani
On Wed, May 12, 2021 at 11:54 PM TiddlyTweeter 
wrote:

> TiddlyTweeter  wrote:
>>
>>> NO. NOT for those internal links. I simply d-n-d from  within the wiki
>>> itself.
>>
>> Mohammad wrote:
>
>> Okay! As I assumed Bookmarker is used to bookmark external links! For me
>> external links work fine!
>> You can check the type of item (dragged and dropped item) to see if it is
>> a tiddler and then you can take better / separate action.
>>
>
> Right. BUT. Both External AND Internal links are needed for optimal use!
> The issue is OFTEN I have a LOCAL tiddler I want to associate with an
> EXTERNAL link.
>
> I think, practically, using ONE method for BOTH is the best way??? :-)
>

Agree! I mean you can check the action macro in your code! It can check if
the dropped item is a tiddler (internal) or it is an external link!
Then take the proper actions

>
> Just a comment, TT
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/37914e56-09a1-4cd6-9c32-351dfe4f586bn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMC-dCP8UpkYNVRN1sKvQqeASLiMOk%3D65VFHEAqrfUmQTQ%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread TiddlyTweeter

>
> TiddlyTweeter  wrote:
>
>> NO. NOT for those internal links. I simply d-n-d from  within the wiki 
>> itself. 
>
> Mohammad wrote: 

> Okay! As I assumed Bookmarker is used to bookmark external links! For me 
> external links work fine!
> You can check the type of item (dragged and dropped item) to see if it is 
> a tiddler and then you can take better / separate action.
>

Right. BUT. Both External AND Internal links are needed for optimal use! 
The issue is OFTEN I have a LOCAL tiddler I want to associate with an 
EXTERNAL link.

I think, practically, using ONE method for BOTH is the best way??? :-)

Just a comment, TT 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/37914e56-09a1-4cd6-9c32-351dfe4f586bn%40googlegroups.com.


[tw5] Re: Import question

2021-05-12 Thread Michael Wiktowy
There is some complications with a tiddlywiki on an http:// site and 
displaying file:// type URLs but so long as the tiddlywiki is on your 
filesystem, it can display both http:// and file:// URIs.

I put together a convenience tool  
for making canonical_uri tiddlers and tagging them for future sorting. So 
just open up the local directory of images in a browser window 
(file:///) and then you can drag and drop the 
links one at a time into the zone that DropCanonicalURI sets up. It will 
assign the mime-type that you set and tag the resulting tiddler with the 
name of the tidder that contains the macro. Browsers are not picky about 
the specific image type so long as you select one with the "image/" prefix 
... so with a mix of jpgs and pngs, you should be able to just pick one and 
go with it. If I had the time, I could likely make it more clever and pick 
a good guess at a mime-type based on file extension ... but for now it is 
manual.

The ListHere  macro and DropHere 
 functionality might be useful to use in 
conjunction with this for further sorting/tagging/displaying. The DropHere 
isn't a macro unto itself since you would want to wrap it around some 
element that you want to make into a dropzone. But the example inside 
should get to going.

Hope you can put these to some use.

/Mike

On Wednesday, May 12, 2021 at 2:33:51 PM UTC-3 History Buff wrote:

> Hello all,
>
> I am building a TW to organize all of our family photos. So far, I've been 
> doing everything by hand which is a tad tedious. I'm wondering if there 
> might be a way to use the import mechanism a little differently than what I 
> think is currently available (at least as far as I have found).
>
> What I would like to do is to click an import button which would pull up a 
> file picker. I would then pick my image that I wanted to use, but instead 
> of importing the image as an external image tiddler, I would like to 
> basically only import a path to the image such that I can use that path in 
> creating my own external links and formatting them any way that I choose. I 
> don't know enough about the import mechanism yet to understand if this is 
> even possible or how to go about it.
>
> Any thoughts or ideas?
>
> Many thanks in advance.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bc255ae4-d151-44e0-9c70-dcda2aa1f9b8n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread Mohammad Rahmani
On Wed, May 12, 2021 at 11:07 PM TiddlyTweeter 
wrote:

> NO. NOT for those internal links. I simply d-n-d from  within the wiki
> itself.



Okay! As I assumed Bookmarker is used to bookmark external links! For me
external links work fine!
You can check the type of item (dragged and dropped item) to see if it is a
tiddler and then you can take better / separate action.



>
> Mohammad asked:
>
>> Do you drag the link from browser address bar?
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/7bd5269c-6503-41aa-a8cf-fbe593f38eecn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAux%3DMbNQ_HcPHUwD5f4C2etdKSHNaRbM7yffLkguxfxQ%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread TiddlyTweeter
NO. NOT for those internal links. I simply d-n-d from  within the wiki 
itself. 

Mohammad asked:

> Do you drag the link from browser address bar?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7bd5269c-6503-41aa-a8cf-fbe593f38eecn%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread Mohammad
Do you drag the link from browser address bar?

On Wednesday, May 12, 2021 at 10:26:33 PM UTC+4:30 TiddlyTweeter wrote:

> TiddlyTweeter  wrote:
>>
> I added to the Pattern so the local system wiki could be included too ...
>>>
>>>  pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"
>>>
>>  
> Mohammad wrote: 
>
>> This is your area of expertise! I tested your proposed pattern and it 
>> works fine for me!
>>
>>>
>>> It is NOT a solution as the trim [] makes $: unusable.
>>>
>>
>> The trim[] can be replaced with a remove prefix or split[], but it is the 
>> simplest!
>> I did not get what the issue is with $!
>>
>
> The problem is, at the moment, the link gets truncated to ONLY the first 
> part of the address ... here is an example ...
>
> [image: Screenshot 2021-05-12 194748.jpg]  
>
> *For LOCAL wiki I think that is a problem?*
>
> Best wishes
> TT
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/68b14dff-640d-4fcd-995e-a8a18646e467n%40googlegroups.com.


[tw5] Re: fields inheritance

2021-05-12 Thread PMario
On Wednesday, May 12, 2021 at 6:42:35 PM UTC+2 damscal wrote:

> Trilium  provides quite intuitive 
> built-in ways to have Notes (the analogues to Tiddlywiki's tiddlers) 
> dynamically and selectively inherit their Attributes from other Notes, as 
> described here 
>  and here 
> . In Trilium, Attributes 
>  are similar to 
> Tiddlywiki's fields with extra built-in features.
> Inheritance is convenient as it saves a lot of time when creating and 
> organizing notes, plus it makes maintenance very straightforward.
>
> Can/could Tiddlywiki achieve something similar?
>

Sure, if someone would program it. ... BUT there is absolutely no support 
in the core atm. So nothing will work. Especially filtering would have a 
big problem.

TLDR;
IMO you should probably tell us, what exactly you want to inherit, so we 
can tell you how to implement it in "the TW way", which will be more 
efficient in the long run.



>From your links, it seems some "attributes" are "indirectly" inherited. eg: 

parent has (key-a: value-a)
   |
   +-- child 1 .. will inherit (key-a: value-a) from parent
   +-- child 2 .. will inherit (key-a: value-a) from parent

If child 2 is moved to 
test has (key-b: value-b)
   |
   +-- child 2 .. will inherit (key-b: value-b) from test

This behaviour can have some "nice" effects, if you know, that they exist. 
... BUT it also "connects" 2 elements in a way, that they only can exist 
together without loosing information. ... That's not how TW is designed. 

In TiddlyWiki, "a tiddler is a tiddler is a tiddler". ... So they should be 
usable, even if used or moved as a single unit. 

We do have other mechanisms, that let us "connect" 2 tiddlers. .. Tags, New 
Here, New Journal here, links and transclusions ... 

Tags are like "groups"

New xxx ... Some fields from a "template" tiddler are copied over to the 
new tiddler. ... This can be changed, if you create your own buttons. 

[[links]] ... Are handled by the core in a special way, so showing 
"backlinks" can be fast. 

{{transclusions}} ... connect 2 tiddlers in an "indirect" way. ... So they 
can live alone, but they are not "complete" if they are alone. 

-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/87a0869d-4aee-4171-bf9f-f02cd1dcb006n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread TiddlyTweeter

>
> TiddlyTweeter  wrote:
>
>> I added to the Pattern so the local system wiki could be included too ...
>>
>>  pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"
>>
>  
Mohammad wrote: 

> This is your area of expertise! I tested your proposed pattern and it 
> works fine for me!
>
>>
>> It is NOT a solution as the trim [] makes $: unusable.
>>
>
> The trim[] can be replaced with a remove prefix or split[], but it is the 
> simplest!
> I did not get what the issue is with $!
>

The problem is, at the moment, the link gets truncated to ONLY the first 
part of the address ... here is an example ...

[image: Screenshot 2021-05-12 194748.jpg]  

*For LOCAL wiki I think that is a problem?*

Best wishes
TT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/380abdc4-19e5-4867-b54b-5566017a9e93n%40googlegroups.com.


Re: [tw5] Tiddlywiki right sidebar: How do you use it?

2021-05-12 Thread TiddlyTweeter
jeremy...@gmail.com wrote:

> Just to explain the original rationale, the reason that in TW5 I put the 
> sidebar on the right was because I felt the story river should be the 
> primary content.  Given the way that eye tracking studies show that we read 
> web pages from the top left, that meant making sure that the story river 
> occupied the top left corner of the page.
>

RIGHT! 

The Only I comment I have is it has become (on default) more a developers 
sidebar than an end users?
It is VERY complex with multiple items an end user may not actually need at 
all. 
This is NOT a criticism, but an observation.

My guess is the complex evolution of TW is actually quite reflected in the 
(over-complex?) default right sidebar?

JUST a comment
TT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c3b11071-3540-4b6f-8638-f4b8ce63560an%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread Mohammad Rahmani
On Wed, May 12, 2021 at 8:45 PM TiddlyTweeter 
wrote:

> Ciao Mohammad


Hi TT,

>
> I got VERY interested in what you doing on this  ...
>

Thank you!

>
> I added to the Pattern so the local system wiki could be included too ...
>
>  pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"
>


This is your area of expertise! I tested your proposed pattern and it works
fine for me!

>
> It is NOT a solution as the trim [] makes $: unusable.
>

The trim[] can be replaced with a remove prefix or split[], but it is the
simplest!
I did not get what the issue is with $!



> BUT my key point is that your concept behind this tool idea is
> right-on-the-ball.
>
> It is a very elegant, simple, idea that I hope will develop into a
> full-scale utility!
>



>
> Best wishes
> TT
>

Thank you TT



>
> On Tuesday, 11 May 2021 at 05:53:23 UTC+2 Mohammad wrote:
>
>> On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter 
>> wrote:
>>
>>>  Mohammad wrote:
>>>
 Hi TT,

>>>
>>>
 In my own testing so far this more minimal regex seems to work ... !!
>
>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>
> Lovely! one minor comment:

 1. I like to check the validity of links! So if one drops something
 like this (http.yahoo.com) or this (yahoo.come.) it wont detect this
 and will add the wrong link!
 So, I prefer a URL validator for pattern. What I sent catches all
 these and only passed the validated URL.

>>>
>>> RIGHT!
>>>
>>> I differ in ASSUMING the link IN is VALID. I don't want to deal with
>>> naughty boys.
>>>
>>> That is part of the value of showing the TITLE & LINK for edit though,
>>> so you can DISCARD errant boys.
>>>
>>
>> Yes, this is very handy!
>>
>>
>>
>>>
>>> Personally I am NOT inclined to parse links for  perfection.
>>> What if they are in Chinese?
>>>
>>
>> Yep, that is a problem! The solution does work most of the time as you
>> use English URL much more!
>>
>>
>>
>>> The issue with your extra parsing is it I do not think it is entirely
>>> fair?
>>>
>>> Just a question!!!
>>>
>>> TT, x
>>>
>>> --
>>>
>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0ed7f98d-0890-465e-91af-04c577b8c4d9n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMBLwu9po%3DBGn%2B3q_EDzOMA0w%2BV1FAwtc9Y46RLCSWzohQ%40mail.gmail.com.


[tw5] Import question

2021-05-12 Thread History Buff
Hello all,

I am building a TW to organize all of our family photos. So far, I've been 
doing everything by hand which is a tad tedious. I'm wondering if there 
might be a way to use the import mechanism a little differently than what I 
think is currently available (at least as far as I have found).

What I would like to do is to click an import button which would pull up a 
file picker. I would then pick my image that I wanted to use, but instead 
of importing the image as an external image tiddler, I would like to 
basically only import a path to the image such that I can use that path in 
creating my own external links and formatting them any way that I choose. I 
don't know enough about the import mechanism yet to understand if this is 
even possible or how to go about it.

Any thoughts or ideas?

Many thanks in advance.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c6303b6b-3707-4c1e-b61c-38332442c3b9n%40googlegroups.com.


[tw5] Re: Tiddlywiki right sidebar: How do you use it?

2021-05-12 Thread Mohammad Rahmani
*Example of using Tiddlywiki sidebar effectively*

This example shows a very cute solution form BTC, our very talented friend
Simon (*BTC)*, we miss him here!

This is Simon post on forum

Hi dear Tiddly Community,
> I'm currently shamelessly stealing the styles from TiddlyDesktop to create
> a NoteBooks plugin, a plugin for sub-notebooks within a single tiddlywiki
> ...
> ... and I'm hoping for some ideas
> There's a link for who's interested: http://tw5notebooks.tiddlyspot.com/
>
> Basically, the tab in the sidebar is for switching / editing notebooks.
> Once a notebook is selected, new tiddlers are automatically tagged with its
> title
> I hope someone's interested to play around with it and can provide me some
> inspiration :P
>


[image: img_148_explorer.png]



Best wishes
Mohammad


On Tue, Apr 27, 2021 at 11:23 AM Mohammad Rahmani <
mohammad.rahm...@gmail.com> wrote:

> The sidebar is oen the most powerful designs of Tiddlywiki, always
> underestimated and people look for a left sidebar (like other common web
> pages where they are mostly used for menus or ads) or hiding it?
>
> So lets share your experiences,
>
>
>- how do you use the right sidebar (do you see it at all?)
>- what do you like to see on the sight sidebar?
>- can you give some online examples of TW right sidebar?
>
>
>
> Best wishes
> Mohammad
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMD5X66S3tSvanCOe1j%2BOOLDU3T0quSfO__gCP3LoqRZ_Q%40mail.gmail.com.


[tw5] fields inheritance

2021-05-12 Thread damscal
Trilium  provides quite intuitive 
built-in ways to have Notes (the analogues to Tiddlywiki's tiddlers) 
dynamically and selectively inherit their Attributes from other Notes, as 
described here  
and here . In Trilium, 
Attributes  are similar 
to Tiddlywiki's fields with extra built-in features.
Inheritance is convenient as it saves a lot of time when creating and 
organizing notes, plus it makes maintenance very straightforward.

Can/could Tiddlywiki achieve something similar?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ff944f3a-1b86-41cd-8073-2a18824ed428n%40googlegroups.com.


[tw5] Staring and Rating: KISS methods

2021-05-12 Thread Mohammad Rahmani
I forgot about YAZD: a KISS collection of Tiddlywiki macros. It was
announced in March 2019 more than two years ago!

I just watched the local copy and tried to update it to TW 5.1.24p and I
found two interesting solutions for  rating staring tiddlers you may be
interested in!

[image: img_141_chrome.png]


This is a *static rating/staring* in only 16 lines with a simple code
[Updated to 5.1.24 with new filter operators]

And the below is a *dynamic rating/staring* macro with very simple code 28
line one macro and with CSS and everything else [Using the 5.1.24 new
filter operators]

[image: img_145_%pn.gif]


   - I should acknowledge the idea by Tobias Beer! So all Kudos goes to him!
   - And a million thanks to *Jeremy *and *Saq *for introducing such
   amazing filter operators, let's develop such a tool (like rating) with a
   few lines of code!
   - I hope I could find free time to update
   https://github.com/tw-scripts/Yazd


Best wishes
Mohammad

[1] KISS: keep it simple stupid

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAEstkN923%2Bh-AvB2K--hvWRQsTaWPUDzs5%3D-6XGAMPUA%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-12 Thread TiddlyTweeter
Ciao Mohammad

I got VERY interested in what you doing on this  ...

I added to the Pattern so the local system wiki could be included too ...

 pattern="^\ *(\$|https?|ftp|file|news|data|mailto):.+$"

It is NOT a solution as the trim [] makes $: unusable.

BUT my key point is that your concept behind this tool idea is 
right-on-the-ball.

It is a very elegant, simple, idea that I hope will develop into a 
full-scale utility!

Best wishes
TT

On Tuesday, 11 May 2021 at 05:53:23 UTC+2 Mohammad wrote:

> On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter  wrote:
>
>>  Mohammad wrote:
>>
>>> Hi TT,
>>>
>>  
>>
>>> In my own testing so far this more minimal regex seems to work ... !!

-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$

 Lovely! one minor comment:
>>>
>>> 1. I like to check the validity of links! So if one drops something 
>>> like this (http.yahoo.com) or this (yahoo.come.) it wont detect this 
>>> and will add the wrong link!
>>> So, I prefer a URL validator for pattern. What I sent catches all 
>>> these and only passed the validated URL.
>>>
>>
>> RIGHT!
>>
>> I differ in ASSUMING the link IN is VALID. I don't want to deal with 
>> naughty boys.
>>
>> That is part of the value of showing the TITLE & LINK for edit though, so 
>> you can DISCARD errant boys.
>>
>
> Yes, this is very handy!
>
>  
>
>>
>> Personally I am NOT inclined to parse links for  perfection. 
>> What if they are in Chinese? 
>>
>
> Yep, that is a problem! The solution does work most of the time as you use 
> English URL much more!
>
>  
>
>> The issue with your extra parsing is it I do not think it is entirely 
>> fair? 
>>
>> Just a question!!!
>>
>> TT, x
>>
>> -- 
>>
> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ed7f98d-0890-465e-91af-04c577b8c4d9n%40googlegroups.com.


[tw5] What's the point of JSON tiddlers?

2021-05-12 Thread si
 This question stems from a post I made here 
, but 
I'm also curious about the more general question so I thought I'd make a 
separate post.

*Specific case:*

My specific case that triggered this question was that I created a button 
to store "history" for particular tiddlers. The button essentially creates 
a clone of the current tiddler with the title 
/history/. Since I anticipate creating a lot of 
"history-tiddlers", it occurred to me that another approach would be to 
just store all the history data for a particular tiddler in a single JSON 
tiddler.

This feels a little neater, but more specifically I wondered if there were 
any clear advantages to either approach? Will storing all history for a 
tiddler in a single JSON tiddler be less of a drain on performance than 
using lots of individual tiddlers?

*General question:*

I can't think of anything that you can do with JSON tiddlers that you can't 
do with normal tiddlers, so I'm curious where it would make more sense to 
use JSON?

Actually I can think of one thing: tiddler fields have character 
restrictions. But this doesn't seem like a big deal. It seems outweighed by 
the fact that we have much better tools for manipulating normal tiddlers.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c1d4fa93-8e82-42d3-b3ec-dcbcd0e89634n%40googlegroups.com.


[tw5] How to build a transclusion from fields in other tiddlers?

2021-05-12 Thread Mark Hylton

I want to build a transclusion from the text of one tiddler and the 
returned lookup value from a data tiddler. For example. I want to build and 
evaluate ``{{drill##101}}`` and get ``P01.02.03`` from the following pieces:

* ``{{AplicationChoice}}`` evaluates to or contains ``drill``, and
* Data tiddler ``drill`` has an entry ``101:P01.02.03``, and
* ``{{ID101!!idnumber}}`` is ``101``, and
* I want to do this transclusion from the ``ID101`` tiddler (or from other 
ID tiddlers with different ID numbers).

Conceptually, from tiddler ID101 I'd like to evaluate ``
{{ApplicationChoice##{{!!idnumber`` and get ``P01.02.03`` ... but that 
isn't working. I'll admit to not well understanding use of braces, square 
brackets, angle brackets and spacing to control evaluation of text.

***Background

There are tiddlers for each of the multiple IDs (e.g., ID101, ID102, ID103, 
...), and data tiddlers for each of the multiple applications (e.g., drill, 
saw, hammer, ...). There are multiple Ps (e.g., P01.01.01, P03.01, 
P03.01.04, ...) but no tiddlers are defined for each P number. I select the 
current application by using a selection list to put the selected 
application into tiddler ``ApplicationChoice``. I want the ID number 
tiddlers to display their associated P number based on the selected 
application.

Note that the ID number and the P number are different, separate from each 
other, and have a many-to-many relationship. The particular relationship to 
use is based on the application chosen (e.g., drill, or saw, or hammer), so 
I can't put a constant ID number field in P tiddlers, and I can't put a 
constant P number field in the ID number tiddlers. This relationship has 
been provided to me and I can't change it. P numbers are used to navigate 
an interface (they are the screen name), and ID numbers contain the actual 
nuggets of information.

Thanks ahead of time for any suggestions!

~Mark Hylton

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9604f6b4-f1a5-41b4-b956-6521e1e1fb83n%40googlegroups.com.


Re: [tw5] Strange usage of refnotes

2021-05-12 Thread Mohammad Rahmani
On Wed, May 12, 2021 at 7:08 PM Ken  wrote:

>
> This works exactly as I want! Thank you!
>
> You mention that this usage is fragile. Is it because the footnote
> information is actually being accessed twice - once while being transcluded
> in the data values, and again, for showfnotes, in the data tiddlers
> themselves?
>

That's true! For example if you table does not display the key:value with
fnote, still showfnotes will show it!

>
> Pardon if my questions are mislead. I'm at the point of understanding
> where I can't easily tell the difference between dangerous or fragile usage
> and standard expected behavior. Waiting anxiously for the Grok Tiddlywiki
> book!
>
> Thanks again for the solution. Since it's only being used in a private,
> personal wiki, I'm willing to take a chance with the fragility until I
> figure out another way to provide the functionality..
>

Go ahead!

>
> Take care,
>
> Ken
> On Tuesday, May 11, 2021 at 9:21:09 PM UTC-7 Mohammad wrote:
>
>> See the attached example!
>> Drag and drop into https://kookma.github.io/TW-Refnotes/#
>> and see the result!
>>
>> I am not sure if this is what you want!
>>
>> Sidenote: I do not recommend this kind of use! It will break simply!
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Wed, May 12, 2021 at 12:55 AM Ken  wrote:
>>
>>> I'm using refnotes version 1.6.4.
>>>
>>> I have a tiddler which lists data values from data tiddlers identified
>>> by a tag:
>>>
>>> -
>>> 
>>> F1F2F3
>>> <$list filter="[tag[Data Tiddlers]]">
>>> {{##F1}}{{##F2}}{{##F3}}
>>> 
>>> 
>>>
>>> This sentence is footnoted. <>
>>>
>>> <>
>>> -
>>>
>>> A data dictionary tiddler tagged as "Data Tiddlers" has the following
>>> names and values:
>>>
>>> -
>>> F1: V1
>>> F2: V2 <>
>>> F3: V3
>>> -
>>>
>>> When the listing tiddler is shown, a footnote number appears after V2.
>>> If you hover over it, the text of the footnote is correctly displayed.
>>> However, the footnote doesn't appear in the <>, although the
>>> one "hard coded" in the listing tittler 's body does (although it has the
>>> wrong number).
>>>
>>> Does anyone know how I can make this work? Maybe a special filter in the
>>> <> macro? Or is this a result of the very complicated syntax
>>> needed in TW to get things to work?
>>>
>>> Any help is appreciated. Thanks!
>>>
>>> Ken
>>>
>>> --
>>>
>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/2c5811e9-477f-4c28-a5f5-caae4ac67762n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/d368bb8b-3dbe-4e6e-8cff-1b5632f6c069n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDvFY%2BXDzniwq7Det-nJXYa3du9H%3DXb8CK8_Y07Y9cW_Q%40mail.gmail.com.


Re: [tw5] Strange usage of refnotes

2021-05-12 Thread Ken

This works exactly as I want! Thank you!

You mention that this usage is fragile. Is it because the footnote 
information is actually being accessed twice - once while being transcluded 
in the data values, and again, for showfnotes, in the data tiddlers 
themselves? 

Pardon if my questions are mislead. I'm at the point of understanding where 
I can't easily tell the difference between dangerous or fragile usage and 
standard expected behavior. Waiting anxiously for the Grok Tiddlywiki book!

Thanks again for the solution. Since it's only being used in a private, 
personal wiki, I'm willing to take a chance with the fragility until I 
figure out another way to provide the functionality..

Take care,

Ken
On Tuesday, May 11, 2021 at 9:21:09 PM UTC-7 Mohammad wrote:

> See the attached example!
> Drag and drop into https://kookma.github.io/TW-Refnotes/#
> and see the result!
>
> I am not sure if this is what you want!
>
> Sidenote: I do not recommend this kind of use! It will break simply!
>
>
> Best wishes
> Mohammad
>
>
> On Wed, May 12, 2021 at 12:55 AM Ken  wrote:
>
>> I'm using refnotes version 1.6.4.
>>
>> I have a tiddler which lists data values from data tiddlers identified by 
>> a tag:
>>
>> -
>> 
>> F1F2F3
>> <$list filter="[tag[Data Tiddlers]]">
>> {{##F1}}{{##F2}}{{##F3}}
>> 
>> 
>>
>> This sentence is footnoted. <>
>>
>> <>
>> -
>>
>> A data dictionary tiddler tagged as "Data Tiddlers" has the following 
>> names and values:
>>
>> -
>> F1: V1 
>> F2: V2 <> 
>> F3: V3
>> -
>>
>> When the listing tiddler is shown, a footnote number appears after V2. If 
>> you hover over it, the text of the footnote is correctly displayed. 
>> However, the footnote doesn't appear in the <>, although the 
>> one "hard coded" in the listing tittler 's body does (although it has the 
>> wrong number).
>>
>> Does anyone know how I can make this work? Maybe a special filter in the 
>> <> macro? Or is this a result of the very complicated syntax 
>> needed in TW to get things to work?
>>
>> Any help is appreciated. Thanks!
>>
>> Ken
>>
>> -- 
>>
> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/2c5811e9-477f-4c28-a5f5-caae4ac67762n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d368bb8b-3dbe-4e6e-8cff-1b5632f6c069n%40googlegroups.com.


[tw5] Re: Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-12 Thread Charlie Veniot
Folding the lines is usually based on keywords, whatever between the 
starting keyword and ending keyword getting folded.

I don't know of any other way to have code folding.

So yes, things like widget tags, macro defs, html tags, comment tags.

Although the philosophy of tiddlers is to keep the small, they can get 
easily get pretty big when delving into more than wikitext (i.e. 
programming with widgets and macros, and formatting with html elements.)

On Wednesday, May 12, 2021 at 7:19:55 AM UTC-3 Mat wrote:

> I would also like a native solution for code folding in the editor.
>
> It may be too complicated but rather than line folding, it would make more 
> sense with "widget folding" by using the opening and closing tags of 
> widgets, macro defs and html tags.
>
> Second best would be to use indentation level.
>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c8bc8df1-544f-49f5-ab14-b8eb551a21b2n%40googlegroups.com.


[tw5] What's the point of JSON tiddlers?

2021-05-12 Thread si
This question stems from a post I made here 
, but 
I'm also curious about the more general question so I thought I'd make a 
separate post.

*General question:*

I can't think of anything that you can do with JSON tiddlers that you can't 
do with normal tiddlers, so I'm curious where it would make more sense to 
use JSON?

Actually I can think of one thing: tiddler fields have character 
restrictions. But this doesn't seem like a big deal. It seems outweighed by 
the fact that we have much better tools for manipulating normal tiddlers.

*Specific case:*

My specific case that triggered this question was that I created a button 
to store "history" for particular tiddlers. The button essentially creates 
a clone of the current tiddler with the title 
/history/. Since I anticipate creating a lot of 
"history-tiddlers", it occurred to me that another approach would be to 
just store all the history data for a particular tiddler in a single JSON 
tiddler.

This feels a little neater, but more specifically I wondered if there were 
any clear advantages to either approach? Will storing all history for a 
tiddler in a single JSON tiddler be less of a drain on performance than 
using lots of individual tiddlers?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5b2d5326-b0ef-4723-8a33-8597f92a8c99n%40googlegroups.com.


[tw5] Re: Any Command Palette users know how to change the default filter for search results?

2021-05-12 Thread si
>>> 
[!is[system]search:titlesort[title]get-stream-root:matchtitles[]limit[250]]
 


Yeah this is way better thank you.

>>> This might be what you are looking for: 
https://github.com/Souk21/TW-commandpalette/blob/master/plugins/souk21/commandpalette/CommandPaletteSearchSteps.json
 

That's it! Thanks a lot for your help.



On Wednesday, 12 May 2021 at 07:41:42 UTC+1 saq.i...@gmail.com wrote:

> I have no idea about Command Palette, but you may want to use a filter 
> like the following for the sidebar search:
>
>
> [!is[system]search:titlesort[title]get-stream-root:matchtitles[]limit[250]]
>
> This will allow the individual nodes to be searchable but only show their 
> root tiddlers in the search, as long as the node titles have the format 
> root-tiddler/*
>
> On Tuesday, May 11, 2021 at 8:24:36 PM UTC+2 si wrote:
>
>> Not sure if this plugin is being updated, but its still alive here:
>> https://souk21.github.io/TW-commandpalette/
>> https://groups.google.com/g/tiddlywiki/c/09Ful62YG1g
>>
>> I'm trying to use a custom filter for the search results of this plugin. 
>> Specifically I am using Streams and want to exclude all non-root tiddlers 
>> from the normal search.
>>
>> For example TiddlyWiki's sidebar search uses the following filter by 
>> default: [!is[system]search:titlesort[title]limit[250]], 
>> which I have changed to this: 
>> [!is[system]search:titlesort[title]limit[250]!regexp[^.*/\d{17}$]]
>> .
>>
>> I would like to do something similar with Command Palette but I'm 
>> struggling to figure it out. Any users of this plugin out there who know 
>> how to 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bd1acc72-4f39-4d40-9342-5925566a52e3n%40googlegroups.com.


[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Eric Shulman
On Wednesday, May 12, 2021 at 3:41:23 AM UTC-7 lamn...@gmail.com wrote:

> I've made some progress with this, here's where I'm currently stuck.
>
> I'm pasting the text (##header and body) in an *<$edit-text>* widget. 
> This is linked to a different, dedicated Tiddler called *NewEntryData*. 
> Then I'm bringing back only the month bit from the header by using the 
> following. The button text appears as it should (*Set to: "05"* for 
> example), so this tells me that the *testmonth *variable is properly 
> filled.
>

The testmonth variable contains $list widget source code.  When you display 
this variable in the button label by using <> you are, in 
effect, using the variable as a macro, which causes the value of the 
variable to be inserted into the output AND also evaluated, which processes 
the $list widget filter, producing the "05" that you see displayed.  
However, when you use the variable as a parameter in the $action-setfield 
widget, the value is NOT evaluated and is simply passed along to the 
$action-setfield, thus storing the unprocessed $list widget filter syntax 
into the field.

Any idea how should I reference the variable in the widget's parameters for 
> it to get the actual content instead of some literal text?
>

Instead of using $vars to set the value of "testmonth", using $wikify, like 
this:

<$wikify name=testmonth text='<$list 
filter="[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]"/>'>
<$button>
<$action-setfield input-month=<> />
Set to: "<>"



This will cause the $list widget filter to be evaluated regardless of 
whether <> is used as an $action-setfield parameter or directly 
rendered and displayed as button text.

Note that Saq's solution, using "filtered transclusion" syntax (tripled 
curly braces) will also cause the filter to be evaluated and assigned as 
the value of <>, producing the desired result as well.

enjoy,
-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a528e233-c5ae-4d38-8d75-306772530aa9n%40googlegroups.com.


[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Saq Imtiaz
Try this:

<$vars 
testmonth={{{[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]}}}>
<$button>
<$action-setfield input-month=<> />
Set to: "<>"



On Wednesday, May 12, 2021 at 12:41:23 PM UTC+2 lamn...@gmail.com wrote:

> I've made some progress with this, here's where I'm currently stuck.
>
> I'm pasting the text (##header and body) in an *<$edit-text>* widget. 
> This is linked to a different, dedicated Tiddler called *NewEntryData*. 
> Then I'm bringing back only the month bit from the header by using the 
> following. The button text appears as it should (*Set to: "05"* for 
> example), so this tells me that the *testmonth *variable is properly 
> filled.
>
> Unfortunatelly though, the same variable in the *<$action-setfield>* part 
> is always set either to the literal value of the filter right above (i.e. 
> *<$list 
> filter... *etc ), or is set to the literal text *<>*. It 
> depends on what combination of variable reference I use (I've tried 
> everything descibed in Tobias' Variables vs. Parameters 
>  reference 
> list).
>
> Any idea how should I reference the variable in the widget's parameters 
> for it to get the actual content instead of some literal text?
>
> <$vars testmonth='<$list 
> filter="[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]"/>'>
> <$button>
> <$action-setfield input-month=<> />
> Set to: "<>"
> 
> 
>
>
>
> On Tuesday, May 11, 2021 at 3:20:21 AM UTC+3 TW Tones wrote:
>
>> Quick tips
>>
>>
>>- Text areas have lines delimited by \n
>>- if you have the text in a filter you can use splitregexp[\n]] to 
>>split it into each line, then split again on split[:]] to get the first[] 
>>item or the fieldname:value
>>   - text must be handled differently as its multiline.
>>   - you can then join[] back as needed.
>>- Note the fieldname:values resembles a datatiddler format, and may 
>>present an opportunity.
>>
>> Tones
>> On Monday, 10 May 2021 at 21:27:19 UTC+10 lamn...@gmail.com wrote:
>>
>>> Ah yes, thanks for reminding me. Although it was purely for showing how 
>>> I want to split the date per field. I haven't yet reached the point where 
>>> I'm trying to reference actual fields.
>>>
>>> I'm trying to see if some or even most of what I've described can be 
>>> achieved with <$list filter>-ing through the text area input. Maybe 
>>> combining splits, regexes and splitregexes. 
>>>
>>> The other approach would be to code a JavaScript macro but that gets 
>>> quite more complicated and is not as easy to play with until I get it right.
>>>
>>> On Monday, May 10, 2021 at 12:33:35 PM UTC+3 PMario wrote:
>>>
 Hi,
 *Field names *have to be *lowercase *only.
 -m

 On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote:

> I'm moving my personal journal written in markdown files into 
> Tiddlywiki. I'm looking for a way to perform string/text manipulation on 
> the input of an <$edit-text>.
>
> Currently, each entry starts with a ##header which was the date the 
> entry was written. A blank line follows and then one or more paragraphs 
> of 
> the main entry body:
>
> ## MMDD
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit...
>
> I've created a Journal Entry tiddler page which would have an <$edit-text 
> tag=textarea> widget. I'll manually paste in the textarea each 
> journal entry and by pressing a button it will be split into the 
> following 
> elements/fields, which would then be added as a new tiddler with the 
> following fields:
>
> Title: MMDD
> Text: Lorem ipsum (etc)
> Year: 
> Month: MM
>
> I'm looking for a way way to perform all the little subtring() 
> manipulations and isolating the header line and the main body. I've 
> already 
> figured how to create a new tiddler from a series of existing 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/297eff97-c812-439e-83f2-0b20b9f2d07cn%40googlegroups.com.


[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Antonis Lamnatos
I've made some progress with this, here's where I'm currently stuck.

I'm pasting the text (##header and body) in an *<$edit-text>* widget. This 
is linked to a different, dedicated Tiddler called *NewEntryData*. Then I'm 
bringing back only the month bit from the header by using the following. 
The button text appears as it should (*Set to: "05"* for example), so this 
tells me that the *testmonth *variable is properly filled.

Unfortunatelly though, the same variable in the *<$action-setfield>* part 
is always set either to the literal value of the filter right above (i.e. 
*<$list 
filter... *etc ), or is set to the literal text *<>*. It depends 
on what combination of variable reference I use (I've tried everything 
descibed in Tobias' Variables vs. Parameters 
 reference 
list).

Any idea how should I reference the variable in the widget's parameters for 
it to get the actual content instead of some literal text?

<$vars testmonth='<$list 
filter="[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]"/>'>
<$button>
<$action-setfield input-month=<> />
Set to: "<>"





On Tuesday, May 11, 2021 at 3:20:21 AM UTC+3 TW Tones wrote:

> Quick tips
>
>
>- Text areas have lines delimited by \n
>- if you have the text in a filter you can use splitregexp[\n]] to 
>split it into each line, then split again on split[:]] to get the first[] 
>item or the fieldname:value
>   - text must be handled differently as its multiline.
>   - you can then join[] back as needed.
>- Note the fieldname:values resembles a datatiddler format, and may 
>present an opportunity.
>
> Tones
> On Monday, 10 May 2021 at 21:27:19 UTC+10 lamn...@gmail.com wrote:
>
>> Ah yes, thanks for reminding me. Although it was purely for showing how I 
>> want to split the date per field. I haven't yet reached the point where I'm 
>> trying to reference actual fields.
>>
>> I'm trying to see if some or even most of what I've described can be 
>> achieved with <$list filter>-ing through the text area input. Maybe 
>> combining splits, regexes and splitregexes. 
>>
>> The other approach would be to code a JavaScript macro but that gets 
>> quite more complicated and is not as easy to play with until I get it right.
>>
>> On Monday, May 10, 2021 at 12:33:35 PM UTC+3 PMario wrote:
>>
>>> Hi,
>>> *Field names *have to be *lowercase *only.
>>> -m
>>>
>>> On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote:
>>>
 I'm moving my personal journal written in markdown files into 
 Tiddlywiki. I'm looking for a way to perform string/text manipulation on 
 the input of an <$edit-text>.

 Currently, each entry starts with a ##header which was the date the 
 entry was written. A blank line follows and then one or more paragraphs of 
 the main entry body:

 ## MMDD

 Lorem ipsum dolor sit amet, consectetur adipiscing elit...

 I've created a Journal Entry tiddler page which would have an <$edit-text 
 tag=textarea> widget. I'll manually paste in the textarea each journal 
 entry and by pressing a button it will be split into the following 
 elements/fields, which would then be added as a new tiddler with the 
 following fields:

 Title: MMDD
 Text: Lorem ipsum (etc)
 Year: 
 Month: MM

 I'm looking for a way way to perform all the little subtring() 
 manipulations and isolating the header line and the main body. I've 
 already 
 figured how to create a new tiddler from a series of existing 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4a615d9b-73d1-4735-95f4-b85ebe83240bn%40googlegroups.com.


[tw5] TW5 on node creates empty PDF/JPG/PNG... PLUS meta-File when using _canonical_uri?

2021-05-12 Thread compa...@gmail.com

Hi,

when creating a "_canonical_uri" Tiddler i'm also forced to provide the 
correct mime-type (e.g. "application/pdf" ). However this seems to lead to 
the creation of an empty .PDF-File PLUS a META-File - which is unnecessary 
(a simple .tid file would do).

Is this behaviour somehow changeable/configurable?

Tnaks,
Mirko

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/73967769-844b-44e4-979f-ecc9250b9ffen%40googlegroups.com.


[tw5] Re: Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-12 Thread Mat
I would also like a native solution for code folding in the editor.

It may be too complicated but rather than line folding, it would make more 
sense with "widget folding" by using the opening and closing tags of 
widgets, macro defs and html tags.

Second best would be to use indentation level.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eced204c-bac9-432b-80b1-191ff7e028fbn%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread TiddlyTweeter
Atronoush wrote:

> I think most of you have the same opinion as me that the TW standard 
> search loses its efficiency as soon as your Tiddlywiki gets large. 
>

Right, *sort of ...*

The TYPE of search you need actually is related, really, to the *nature of 
the content* of the wiki so I don't think, on developed apps, *with larger 
content,* you could ever have a totally *generic standard* method that 
would work optimally in all wiki. 
WHY? Because different wikis place more importance on "text" or "title" or 
other fields.

In my own case, as a liker of Regular Expressions, I tend to use hacks that 
utilise it for searching. But optimal use of regex requires understanding 
of its obscure syntax.

JUST a comment!
TT 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e09bcddb-8ba3-4efe-9a96-07ab9260ebcbn%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread TiddlyTweeter
Ciao Eric

*That is a really neat tool for complex searches!*

TT, x

Eric Shulman wrote:
You might like my "PowerSearch", which generates complex search filter 
syntax using a set of drop-down lists.
Just copy these two tiddlers to your TW and it automatically adds a 
"PowerSearch" tab to the $:/AdvancedSearch

http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FFilterGenerators%2FPowerSearch
http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FMacros%2Fedit-list

Eric Shulman wrote:

>
> To make default PowerSearch layout better fit the sidebar, I have updated 
> the options panel (the "gear" icon) and display of the generated filter 
> syntax:
>
> 1) added "input width" setting - was previously hard-coded to "25em"... 
> now defaults to "100%"
> 2) changed default "maxheight" from "auto" to "20em"
> 3) changed default "columns" from "3" to "1"
> 4) generated filter syntax uses a smaller font, aligned left, with 
> "word-break: break-all"
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5ec87271-d77f-46aa-91c5-fd72b0f57daen%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread Eric Shulman
On Tuesday, May 11, 2021 at 10:14:13 PM UTC-7 barro...@gmail.com wrote:

> As for an improved main search bar, couldn't one modify a copy of the 
> original search bar (I've done it for caption search)-- or in this case 
> with a more refined search filter-- and use it instead of the original 
> search bar by simple swapping of the sidebar segment tag?
>

Yes.  You can add $:/tags/SideBarSegment to the PowerSearch tiddler to add 
it to the sidebar.

To make default PowerSearch layout better fit the sidebar, I have updated 
the options panel (the "gear" icon) and display of the generated filter 
syntax:

1) added "input width" setting - was previously hard-coded to "25em"... now 
defaults to "100%"
2) changed default "maxheight" from "auto" to "20em"
3) changed default "columns" from "3" to "1"
4) generated filter syntax uses a smaller font, aligned left, with 
"word-break: break-all"

enjoy,
-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c0feb949-6d08-43e2-9ea9-da4817beb904n%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread Eric Shulman
On Tuesday, May 11, 2021 at 10:14:13 PM UTC-7 barro...@gmail.com wrote:

> @Eric,
> While studying your search tools, I noticed a possible bug with your tag 
> cloud and wanted to leave a note before I forget and in case no one else 
> has caught it.  The order by count (but not title) breaks tags with 
> multiple words into separate entries.
>

Excellent catch!

FIXED.  tagcloud_sort() now encloses tag text within doubled 
squarebrackets, like this:
\define tagcloud_sort()
<$list filter="[enlist!nsort[]]">
   <$list filter="[split[;]last[]]">*<$text text="[["/>*
<>*<$text text="]]"/>*

\end

enjoy,
-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a1cfcece-78b9-4734-aa40-077bedf27f39n%40googlegroups.com.


[tw5] Re: Any Command Palette users know how to change the default filter for search results?

2021-05-12 Thread Saq Imtiaz
This might be what you are looking 
for: 
https://github.com/Souk21/TW-commandpalette/blob/master/plugins/souk21/commandpalette/CommandPaletteSearchSteps.json

On Wednesday, May 12, 2021 at 8:41:42 AM UTC+2 Saq Imtiaz wrote:

> I have no idea about Command Palette, but you may want to use a filter 
> like the following for the sidebar search:
>
>
> [!is[system]search:titlesort[title]get-stream-root:matchtitles[]limit[250]]
>
> This will allow the individual nodes to be searchable but only show their 
> root tiddlers in the search, as long as the node titles have the format 
> root-tiddler/*
>
> On Tuesday, May 11, 2021 at 8:24:36 PM UTC+2 si wrote:
>
>> Not sure if this plugin is being updated, but its still alive here:
>> https://souk21.github.io/TW-commandpalette/
>> https://groups.google.com/g/tiddlywiki/c/09Ful62YG1g
>>
>> I'm trying to use a custom filter for the search results of this plugin. 
>> Specifically I am using Streams and want to exclude all non-root tiddlers 
>> from the normal search.
>>
>> For example TiddlyWiki's sidebar search uses the following filter by 
>> default: [!is[system]search:titlesort[title]limit[250]], 
>> which I have changed to this: 
>> [!is[system]search:titlesort[title]limit[250]!regexp[^.*/\d{17}$]]
>> .
>>
>> I would like to do something similar with Command Palette but I'm 
>> struggling to figure it out. Any users of this plugin out there who know 
>> how to 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fefcf24d-6b07-4c1d-b94b-11e0784a2e03n%40googlegroups.com.


[tw5] Re: Any Command Palette users know how to change the default filter for search results?

2021-05-12 Thread Saq Imtiaz
I have no idea about Command Palette, but you may want to use a filter like 
the following for the sidebar search:

[!is[system]search:titlesort[title]get-stream-root:matchtitles[]limit[250]]

This will allow the individual nodes to be searchable but only show their 
root tiddlers in the search, as long as the node titles have the format 
root-tiddler/*

On Tuesday, May 11, 2021 at 8:24:36 PM UTC+2 si wrote:

> Not sure if this plugin is being updated, but its still alive here:
> https://souk21.github.io/TW-commandpalette/
> https://groups.google.com/g/tiddlywiki/c/09Ful62YG1g
>
> I'm trying to use a custom filter for the search results of this plugin. 
> Specifically I am using Streams and want to exclude all non-root tiddlers 
> from the normal search.
>
> For example TiddlyWiki's sidebar search uses the following filter by 
> default: [!is[system]search:titlesort[title]limit[250]], which 
> I have changed to this: 
> [!is[system]search:titlesort[title]limit[250]!regexp[^.*/\d{17}$]]
> .
>
> I would like to do something similar with Command Palette but I'm 
> struggling to figure it out. Any users of this plugin out there who know 
> how to 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/71cd8aae-fab2-4ac6-8749-f85cc46e1588n%40googlegroups.com.