Presenting: newtids macro - convert word into tid by a click

286 views
Skip to first unread message

Mat

unread,
Nov 2, 2017, 12:48:14 PM11/2/17
to TiddlyWiki
El grande TWaddeliero presento...


The newtids macro converts words into tiddlers by merely clicking on them.
The click can also add tags and a field automatically.

This should make for an efficient workflow when you
 have a list of items that you want as tiddlers.
Or put a text in it and convert selected words into links.


<:-)

P.S Sorry I've been a bit absent lately. Hope to get back soon.

TonyM

unread,
Nov 2, 2017, 7:22:17 PM11/2/17
to TiddlyWiki
Thanks Mat,

That could save a lot of time in a number of cases, The trick for me will be remembering when to use this utility.

What is your main use case?

Thanks for your excellent contributions, I always look closely at your replys to extract techniques.

Regards
Tony

@TiddlyTweeter

unread,
Nov 2, 2017, 7:31:08 PM11/2/17
to TiddlyWiki
TonyM: The trick for me will be remembering when to use this utility.

Ein ernstes Problem mit TiddlyWiki.

Ohne einen Index.

Buona notte
Josiah


Mat

unread,
Nov 2, 2017, 8:21:53 PM11/2/17
to TiddlyWiki
The trick for me will be remembering when to use this utility.

In deed. 


What is your main use case?

Generally, I imagine the newtids macro to be most useful when setting up a brand new TW where you have a specific application in mind and need a load of tiddlers that you can type as lists. But, of course, it should be useful any time you have a list of items that you want to tiddlify.

I made it because I'm currently putting together a "home prepping TW" for my near and dear to prepare a home for "long term winter black outs" (due to increased environmental and political "tensions"). It has several lists of items to acquire e.g food stockpile, medical supplies, home-preparedness-kit, etc. The individual items within a list can have different tags so for a subset of items I set some specific tags and click those items, then change tags and click another subset, etc.

In my particular case I also have a modification to the newtids macro so that each listed item has a small empty field next to it. Typing anything into it adds an "amount" field with the typed value, for that specific item. This makes it easier to give unique values for individual items-to-be-tiddlers.


<:-)

Pit.W.

unread,
Nov 7, 2017, 12:36:38 PM11/7/17
to tiddl...@googlegroups.com

Hello Tony,

usecase:

I just applied newtid for this:

1. Situation: a big organisation wants to restructure. People are being reassigned to new departments. This will have many organizational consequences.

2. Use:

a. I put the names of the new departments into newtid and create all the tiddlers, all tagged with the name of the organisation.

b. From an Excelsheet I take the names of the people, put them into newtid. There I can tag them with the names of the new departments they are supposed to work in.

c. Display it all as an organigram in tidgraph and present to management.

d. repeat until solution is found

3. switch to TaskManagementDemo in TW and plan to talk to affected people

4. Display all these tasks in timeline plugin

d.8-)

Hello Mat,

a consultant working in a reorganisation project often must keep the planning utterly confidential. Might not want to use files and software on the corporate network. Wants to work from a USB stick. Has no admin priviledges. Does not want to share draft information with secretaries and assistants, is all alone...

newtid -> click, adapt settings in the headboard, click, adapt, click, ....

:-D

Big thanks from

Pit

--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f4c1ef48-79ce-4e89-a059-0040a30a13b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




TonyM

unread,
Nov 7, 2017, 6:25:37 PM11/7/17
to TiddlyWiki
Great to hear some uses cases in this thread for the newtids macro,

Should help people in a search of the google group as well.


On Friday, November 3, 2017 at 3:48:14 AM UTC+11, Mat wrote:

Mat

unread,
Jul 23, 2018, 1:01:02 PM7/23/18
to TiddlyWiki
Updated.

Just popping by very quickly to inform that the newtids macro has been improved to handle items in the list without the need for surrounding brackets.

I.e you just copy-paste from your excel or word document into the macrocall like so. Rows with spaces are no problem:



<<newtids "
Your list 
One item per row
Don't use brackets
">>

..and then, in view mode, click a title at a time to have it created. 


Note:
The code (which as usual is 100% wikitext because that's all I know) has a few really hackey parts due to TWs limited filter operators to manipulate strings. Over the years, this has been a recurring problem for me.


<:-)

Mohammad

unread,
Jul 23, 2018, 1:43:42 PM7/23/18
to tiddl...@googlegroups.com
Wonderful Mat!
For me it can be used to create several tiddlers tagged with slide in my Tiddlyshow application (tiddlyshow.tiddlyspot.com)
I always learn from your interesting code!

/Mohammad

Mohammad

unread,
Jul 23, 2018, 1:46:09 PM7/23/18
to tiddl...@googlegroups.com
One minor issue:
If you forget you have tiddlers already and several times in different places use the below code

 <<newtids "

 Your list
 One item per row
 Don't use [[brackets]]
 "
>>




It will not return any warning! and just show something like this that is difficult to figure out it because of repeated tiddlers.


<$list filter=' Your list One item per row Don't use brackets +[count[]!prefix[0]]'> <$set name=list value=' Your list One item per ....


Mat

unread,
Jul 23, 2018, 8:50:48 PM7/23/18
to TiddlyWiki
Thank you Mohammad.

I'm not sure I understand your issue report. Does the problem occur when you repeat the same "row" multiple times?

Thank you 

<:-)

Mohammad

unread,
Jul 24, 2018, 4:51:21 AM7/24/18
to TiddlyWiki
Hello Mat!

 Create a tiddler and copy paste this code

 <<newtids "
 Your list
 One item per row
 Don't use [[brackets]]
 "
>>

Do it again in the second new tiddler

You will produce the issue!

Mohammad

Mat

unread,
Jul 24, 2018, 6:48:39 AM7/24/18
to TiddlyWiki
Actually, other than the fact that your example includes [[brackets]] which are explicitly stated as not allowed, I think the problem is that the macro can't handle the single quote character which appears in "don't". I should change the filters to use tripple double quotes """ instead of a single one.

I'll get back on it. Thanks for reporting Mohammad!

<:-)
Reply all
Reply to author
Forward
0 new messages