Three remaining conundrums

245 views
Skip to first unread message

David Gifford

unread,
May 3, 2021, 8:38:54 AM5/3/21
to TiddlyWiki

Hi everyone

Yesterday I worked on a project, and Saq, Soren, Charlie and Mohammad helped me. Thank you!

Now I only have three remaining problems, and I was hoping you all might help me.

1. The comptext plugin does not autocomplete links in custom fields, only in the text field. Is there a way to configure it to autocomplete in a specific custom field? I only need it to autocomplete in one...

2. Adding a link to a missing tiddler in a custom field does not add the missing link to the missing tab. Is there a way to see all the missing links in custom field x from all tiddlers?

3. Yesterday Charlie showed me how to grab the text of a specific tiddler and insert it into the new tiddler button so it would get added to a custom field of the new tiddler. The key component was customfieldname={{{ [[Current chapter]get[text]] }}}. I tried to use that in an editortoolbar button with no success. How could I grab the text of [[Current chapter]] and have the prefix of the following snippet paste it into tiddlers? (as text, not as {{Current chapter}}, because I don't want what is pasted to change when I change the text of Current chapter later on)

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

Thanks to any help on any of these. World domination is imminent. Blessings, Dave

PMario

unread,
May 3, 2021, 8:54:24 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 2:38:54 PM UTC+2 David Gifford wrote:

2. Adding a link to a missing tiddler in a custom field does not add the missing link to the missing tab. Is there a way to see all the missing links in custom field x from all tiddlers?

Hi, That's a cool question:

[get[x]enlist-input[]!is[tiddler]]

But you need to make sure, that [[tiddlers with spaces]] also have the brackets!

have fun!
mario

PMario

unread,
May 3, 2021, 9:00:17 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 2:38:54 PM UTC+2 David Gifford wrote:

3. Yesterday Charlie showed me how to grab the text of a specific tiddler and insert it into the new tiddler button so it would get added to a custom field of the new tiddler. The key component was customfieldname={{{ [[Current chapter]get[text]] }}}. I tried to use that in an editortoolbar button with no success. How could I grab the text of [[Current chapter]] and have the prefix of the following snippet paste it into tiddlers? (as text, not as {{Current chapter}}, because I don't want what is pasted to change when I change the text of Current chapter later on)

Since I don't know, what you discussed yesterday ... link is missing ... I don't understand this question.
 
<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="wrap-selection"
    prefix=""""""
    suffix=""""""
/>

I'm not sure, why you need 6 double quotes as a prefix and a suffix. .. The above code comes from a toolbar button. ... I'm not sure how it is related to: " customfieldname={{{ [[Current chapter]get[text]] }}}"    from the text above.

-m

David Gifford

unread,
May 3, 2021, 9:09:32 AM5/3/21
to tiddl...@googlegroups.com
Hi PMario

Thanks for the answer to #2. Works great!

Yes, for #3, maybe the reference to Charlie's snippet was confusing. Basically the question is: If the current text of [[Tiddler A]] is "I am so happy", I want an editortoolbar button that grabs "I am so happy" from the text field of [[Tiddler A]] and pastes it into the text of the tiddler I am editing.

But:
1) There will be text before and after "I am so happy"
2) If I change the text of [[Tiddler A]], I don't want "I am so happy" to change wherever I used the editortoolbar button.




--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ddfe4VzgOr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7adb45b4-8d19-4962-b2d1-49cb4f5931fen%40googlegroups.com.

PMario

unread,
May 3, 2021, 9:26:42 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 3:09:32 PM UTC+2 David Gifford wrote:
...
Yes, for #3, maybe the reference to Charlie's snippet was confusing. Basically the question is: If the current text of [[Tiddler A]] is "I am so happy", I want an editortoolbar button that grabs "I am so happy" from the text field of [[Tiddler A]] and pastes it into the text of the tiddler I am editing.

I'm confused. ...

 - If you edit "Tiddler A" and select "I am so happy", you can click a toolbar button. That's OK. 
 - The selection will be preserved.
 - But where is the other tiddler that you want to edit at the same time?
 - As soon as you click a different tiddler, the selection goes away.

You are editing "Tiddler A". The editor has to have the "focus". Which means the cursor needs to be in Tiddler A ...

Who do you want to define Tiddler B ... The one that should receive the new text.

-mario

PMario

unread,
May 3, 2021, 9:27:56 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 3:26:42 PM UTC+2 PMario wrote:
On Monday, May 3, 2021 at 3:09:32 PM UTC+2 David Gifford wrote:
...
Yes, for #3, maybe the reference to Charlie's snippet was confusing. Basically the question is: If the current text of [[Tiddler A]] is "I am so happy", I want an editortoolbar button that grabs "I am so happy" from the text field of [[Tiddler A]] and pastes it into the text of the tiddler I am editing.

We may copy the selection to the clipboard. Then you can CTRL-V it to a different tiddler.

-mario

PMario

unread,
May 3, 2021, 9:28:24 AM5/3/21
to TiddlyWiki
Would that work?
-m

David Gifford

unread,
May 3, 2021, 9:48:38 AM5/3/21
to TiddlyWiki
see in bold below

On Monday, May 3, 2021 at 8:26:42 AM UTC-5 PMario wrote:
On Monday, May 3, 2021 at 3:09:32 PM UTC+2 David Gifford wrote:
...
Yes, for #3, maybe the reference to Charlie's snippet was confusing. Basically the question is: If the current text of [[Tiddler A]] is "I am so happy", I want an editortoolbar button that grabs "I am so happy" from the text field of [[Tiddler A]] and pastes it into the text of the tiddler I am editing.

I'm confused. ...

 - If you edit "Tiddler A" and select "I am so happy", you can click a toolbar button. That's OK. 
 - The selection will be preserved.
 - But where is the other tiddler that you want to edit at the same time?
 - As soon as you click a different tiddler, the selection goes away.

You are editing "Tiddler A". The editor has to have the "focus". Which means the cursor needs to be in Tiddler A ...

No, I am editing another tiddler, and I want to use the editortoolbar to paste a snippet that contains the current text of Tiddler A

Mark S.

unread,
May 3, 2021, 9:59:48 AM5/3/21
to TiddlyWiki
As soon as you edit Tiddler B you lose the selection of Tiddler A.

A tool that may help with comparing or copying from a second tiddler:

David Gifford

unread,
May 3, 2021, 10:08:58 AM5/3/21
to TiddlyWiki
@Mark S

Thanks but your comment is off track from the original request.

My point in the original post is that if Charlie's solution can grab the text of Tiddler A, and add it to a new tiddler button as the content of a field, then there must be a way to grab the same text from Tiddler A and use it in a similar way in an editortoolbutton in Tiddler B. But in a way that if Tiddler A is changed, what is pasted in Tiddler B will not change.

PMario

unread,
May 3, 2021, 10:14:23 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 3:48:38 PM UTC+2 David Gifford wrote:

No, I am editing another tiddler, and I want to use the editortoolbar to paste a snippet that contains the current text of Tiddler A

IMO that's what the "stamp" toolbar button should be used for.

-mario

David Gifford

unread,
May 3, 2021, 10:19:20 AM5/3/21
to tiddl...@googlegroups.com
Yes, precisely, a stamp button! Now I see how I confused you guys. Sorry.

It's just that I use "wrap" buttons as workaround hacks to do stamping, because stamp buttons are hidden in a menu, but wrap buttons can be displayed directly on the toolbar, and they 'stamp' what's in the prefix if you just insert your cursor rather than wrapping text.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ddfe4VzgOr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

PMario

unread,
May 3, 2021, 10:33:59 AM5/3/21
to TiddlyWiki
On Monday, May 3, 2021 at 4:19:20 PM UTC+2 David Gifford wrote:

It's just that I use "wrap" buttons as workaround hacks to do stamping, because stamp buttons are hidden in a menu, but wrap buttons can be displayed directly on the toolbar, and they 'stamp' what's in the prefix if you just insert your cursor rather than wrapping text.

But then you said. You don't want to change what's pasted, if Tiddler A changes. ... So you will end up with a lot of toolbar buttons that have "fixed" text in it. ... IMO there isn't enough space in the toolbar.

From your first post you had code similar to

<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="replace-selection"
    text={{Tiddler A}}
/>

So if you change Tiddler A ... The next time you'll copy something different. .. If you don't want this you'll need eg:

<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="replace-selection"
    text="I am so happy"
/>

Right?

But that doesn't make sense for me. ... You may end up with 100+ different buttons.

-mario

David Gifford

unread,
May 3, 2021, 10:40:02 AM5/3/21
to tiddl...@googlegroups.com
Ahhh...You are totally right to get confused by what I wrote. It's so hard for me to explain what I mean. Here is another go:

In terms of the editor toolbar button, yes, I want only one button, that stamps the current content of the text field of Tiddler A at the time, and when Tiddler A changes, the button will now paste the new content of Tiddler A.

But in terms of the tiddler that gets stamped, I need it not to change, so the button can't stamp {{Tiddler A}}, because that would change as Tiddler A gets updated. I need it to stamp it as text.

Hopefully that is now clearer!


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ddfe4VzgOr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Charlie Veniot

unread,
May 3, 2021, 10:45:48 AM5/3/21
to TiddlyWiki
G'day David,

RE: #3:  I'm going to throw a curve-ball at you and hope I don't bean you in the process ...

By the time I hit the submit button, I'm thinking there will already be a few replies.

Please let me know if I've got this right:  for any tiddler you might be editing, you'd like a button that copies and pastes the actual content of that moment of the tiddler "Current chapter" into the tiddler you are editing.  i.e. a historical snapshot of "Current chapter" at that very moment in time.  (adorning that content with prefix, suffix, and however else, that's secondary problem/solution to this primary problem/solution need.)

When we first talked about this stuff, you wanted the content of "Current chapter" in a field for new tiddlers.  Do I understand correctly that you now want it instead in the text body of the new tiddler, wherever your cursor is sitting?

Now the curve-ball. Would it be of any value to have dated/historical snapshots of "Current chapter" as distinct tiddlers which can be individually transcluded in any number of new tiddlers?

That would only be of value if you would ever like to see all of the "Current chapter" versions over a span of time and/or if any one version would actually ever be embedded/included/transcluded in more than one tiddler.  Otherwise, better to have each snapshot existing where you need it.

David Gifford

unread,
May 3, 2021, 10:54:03 AM5/3/21
to tiddl...@googlegroups.com
Hi Charlie,

Yes, you have described well what I am trying to do.

No, I don't need an "Internet archive" style list of what the content used to be. The button will stamp a reference to the chapter I am currently reading (eg, [[Guns, Germs and Steel (Diamond) ch 4]]) into a note tiddler, along with other text immediately preceding and following. When I start reading a new chapter I will update the "Current chapter" tiddler. So the content is not important enough to warrant a log of previous content.

Blessings.




--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ddfe4VzgOr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Charlie Veniot

unread,
May 3, 2021, 10:58:06 AM5/3/21
to TiddlyWiki
David, it is hard for anybody to explain what he/she is thinking.  That's the challenge of expressing thought.  One word, to the thinker, can capture a ton of information.  Say that one word to the listener, you knowing exactly what all that word means, leaves the listener with that one word and without all of the other good stuff, intertwingled with that one word, still in that detailed picture stored in yer sponge.

So the listeners need to have a little bit of a crystal ball.

Eventually, the whole picture becomes clear as long as everybody can find the pleasure in, and not get too frustrated by, the long game of "is this what you mean?"

Ahhhhh, ping-pong.  Or as my uncle calls it:  gnip-gnop.

Charlie Veniot

unread,
May 3, 2021, 11:00:01 AM5/3/21
to TiddlyWiki
Ah, then.   I have a solution (I think) festering, percolating possibly burning if you are smelling any burnt toast ...

Charlie Veniot

unread,
May 3, 2021, 11:39:57 AM5/3/21
to TiddlyWiki
Okay, here's a very rough prototype.

You'll find in the attached zip two tiddlers:

  • Add Tiddler A Content
    • This is the meat of it all
    • This specifies the actions for the button
    • TiddlyWiki automagically takes care of creating the button for the actions (the spark for the magic is the "$:/tags/EditorToolbar")
  • Add Tiddler A Content Image
    • Meant to be the icon in the Edit toolbar
    • Just text at the moment, which creates an obnoxiously big button
    • Good enough for testing purposes
    • We can work on a shorter word, or setting up an actual icon, later

You supply your own "Tiddler A" for testing purposes, putting whatever text in it.

Then create some new test tiddlers, trying out that button to see what happens.
PrototypeForDavid.zip

David Gifford

unread,
May 3, 2021, 12:46:32 PM5/3/21
to TiddlyWiki
Hi Charlie, thanks for the solution! It is different from what I imagined but is an acceptable workaround for me. I juggled a few things (the "Tiddler A" content is now an entire line of text, of which the link to the current chapter is only the middle part), and I changed an edit-text input to a textarea to accommodate the longer text. So this will work for me. Thanks!

Charlie Veniot

unread,
May 3, 2021, 1:45:40 PM5/3/21
to TiddlyWiki
Identifying problems/needs/requirements/solutions is always a thing in motion, incremental/iterative ball-park "that's it" steps towards that perfect target.

Like flinging spaghetti at a wall.

Fiddle with it, and keep coming back here every time something becomes clear, or muddy, and some technical adjustments need to happen.

Always keep in mind, anything anybody throws out you is a "is-this-what-you-mean" step which may be totally not what you mean, which either way means we are all (you too) getting closer to what you mean.  Which is fun stuff for this kid.

Mohammad Rahmani

unread,
May 3, 2021, 2:50:32 PM5/3/21
to tiddl...@googlegroups.com
Hi Charlie,

Just for curiosity, is there any reason to use ZIP instead of JSON when you share solutions?

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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e9eb3694-2d99-4fca-b5b2-2503c35b3137n%40googlegroups.com.

Charlie Veniot

unread,
May 3, 2021, 3:00:55 PM5/3/21
to TiddlyWiki
Nothing more than me just sticking with the familiar.  Export a few tids, ZIP them up (because Google Groups won't allow attaching a .tid), and attach.

I have no opinion about exporting tid's to JSON.

Bundling into ZIP's and naming the ZIP files with dates could help me keep track of versions of tid groupings, I suppose.



Mohammad Rahmani

unread,
May 3, 2021, 3:05:57 PM5/3/21
to tiddl...@googlegroups.com
I believe JSON is much better and I assume GG lets you attach them!
I am sure you know export to json
just open the $:/AdvancedSearch and Filter what you want to export and then click export to JSON!
Add data and revision numbers as you like!
On Sharing we can simply drag and drop to our wikis! no unzip required!




Best wishes
Mohammad


Charlie Veniot

unread,
May 3, 2021, 3:36:43 PM5/3/21
to TiddlyWiki
Truth be told, I was seriously buying in until "just open the $:/AdvancedSearch and Filter what you want to export and then click export to JSON!"

Yuck.

I very much enjoy writing filters, but mindless clicking to ZIP only several tiddlers fits my personality better.

However, when I get into dozens of tiddlers, I will love advanced search to JSON export, and I will be then hugging you, virtually, quite furiously.  That's very good info to have in one's back-pocket.

Mohammad Rahmani

unread,
May 3, 2021, 3:46:09 PM5/3/21
to tiddl...@googlegroups.com



Best wishes
Mohammad


On Tue, May 4, 2021 at 12:06 AM Charlie Veniot <cj.v...@gmail.com> wrote:
Truth be told, I was seriously buying in until "just open the $:/AdvancedSearch and Filter what you want to export and then click export to JSON!"

Yuck.

I very much enjoy writing filters, but mindless clicking to ZIP only several tiddlers fits my personality better.

How do you do this? Are you using Node.JS? or you export tids one by one and then zip them?


However, when I get into dozens of tiddlers, I will love advanced search to JSON export, and I will be then hugging you, virtually, quite furiously.  That's very good info to have in one's back-pocket.

;-)


On Monday, May 3, 2021 at 4:05:57 PM UTC-3 Mohammad wrote:
I believe JSON is much better and I assume GG lets you attach them!
I am sure you know export to json
just open the $:/AdvancedSearch and Filter what you want to export and then click export to JSON!
Add data and revision numbers as you like!
On Sharing we can simply drag and drop to our wikis! no unzip required!




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+...@googlegroups.com.

Charlie Veniot

unread,
May 3, 2021, 5:12:46 PM5/3/21
to TiddlyWiki
Oh no, not using node.js.  TiddlyWiki in GoogleDrive, with TiddlyDrive Add-on.

Yeah, so far at most three tiddlers, each exported individually, drag them individually into TiddlyWiki.com as a quick sanity test, then zip them up.

Mindless clicking away.  Probably not good for the finger knuckle (i.e. mouse-clicky-induced tendinitis of the finger knuckle.)  Mindlessness over tendinitis-fears any day.

TW Tones

unread,
May 3, 2021, 8:01:31 PM5/3/21
to TiddlyWiki
David,

If I understand it correctly you may need the stamp to first wikify this to text  {{Tiddler A}} so the content of "Tiddler A" text field is pasted into the target tiddler as its actual value, not a transclusion or text reference. Thus if tiddler A changes it will not change the previously pasted text?

Tones

Charlie Veniot

unread,
May 3, 2021, 8:26:20 PM5/3/21
to TiddlyWiki
BTW, I have an updated version of that prototype that adds prefix and suffix.  Ridiculously easy.  Let me know if and when you want to check it out.

David Gifford

unread,
May 3, 2021, 8:50:16 PM5/3/21
to tiddl...@googlegroups.com
now.

David Gifford
Mexico team leader, Mexico City

Resonate Global Mission
Engaging People. Embracing Christ.
A Ministry of the Christian Reformed Church
resonateglobalmission.org



Charlie Veniot

unread,
May 3, 2021, 9:27:57 PM5/3/21
to TiddlyWiki
Poop.  I missed the starting pistol.

As before, you supply "Tiddler A."  And you will want to alter the "ThisPrefix" and "ThisSuffix" macros in "Add Tiddler A Content" tiddler.

Cheers !


PrototypeForDavidVersion2.zip

David Gifford

unread,
May 3, 2021, 10:18:48 PM5/3/21
to tiddl...@googlegroups.com
Thanks Charles!

I wrote "now", but since then something has come up. I installed it, but will have to wait to play with this until the morning. Thank you for working on this!


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ddfe4VzgOr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

David Gifford

unread,
May 4, 2021, 8:19:22 AM5/4/21
to TiddlyWiki
Hey Charles I finally tried your second solution this morning. THIS is exactly, precisely, particularly what I needed.

And studying this will help me learn to do many wonderful and dangerous things! World domination is a step closer!

Charlie Veniot

unread,
May 4, 2021, 9:21:51 AM5/4/21
to TiddlyWiki
You are talking my language:  knowing just enough to be dangerous.

World domination.  I'll cede that job to you, because my attempt might have an odeur of Dr. Evil or Megamind.

Armed with a couple of extra tricks up your sleeves, I am cheering you on:  Tame them intertwingularity Goliath's.

Huh, movie title:  David and the Intertwingularity Goliath's.  Or a very strange rock band.

Mohammad Rahmani

unread,
May 4, 2021, 11:35:17 AM5/4/21
to tiddl...@googlegroups.com
On Tue, May 4, 2021 at 1:42 AM Charlie Veniot <cj.v...@gmail.com> wrote:
Oh no, not using node.js.  TiddlyWiki in GoogleDrive, with TiddlyDrive Add-on.

Yeah, so far at most three tiddlers, each exported individually, drag them individually into TiddlyWiki.com as a quick sanity test, then zip them up.

Mindless clicking away.  Probably not good for the finger knuckle (i.e. mouse-clicky-induced tendinitis of the finger knuckle.)  Mindlessness over tendinitis-fears any day.


Good luck! You can now consider the Basket solution in another thread which is very easy to select tiddlers and share!


 
Reply all
Reply to author
Forward
0 new messages