Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Mohammad
Hello Brian, Have a look at the below code <$set name="v" value="""a b "this is a test" [[title with space]] """> <$list filter="[enlist]" > <> If you test this on tiddlywiki.com, it will result in: a b "this is test" title with space Which seems to be incorrect! The correct result is: a

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread S. S.
Hi Tony, I believe the fallback is not exactly emptyValue for a field's value - because if there is the field but it has no value - the TranscludeWidget will return empty. It is only if there is no field - that the fallback can be used. However, it appears it can be used by looking for the

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread S. S.
Hi Thomas, I still can't find a better way than: <$list filter="[all[current]has[caption]]" emptyMessage="""<$view field="title"/>"""> <$transclude field="caption"/> The problem with the below is that if there *is* a caption field, but it is empty, nothing will show. I find that

[tw5] Re: folding editor

2019-01-04 Thread Mohammad
Joe I think the tiddlywiki is a new programming paradigm. Working on top of the JS, CSS, and html, it brings a dynamic scripting language. It can change the way we use HTML. It is a high level scripting compared to JS and much easier. One problem in spreading Tiddlywiki for more uses and

Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Mohammad
Thanks Brian, I will back to you after making some experiments with enlist. Cheers 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

[tw5] Re: trying to remove bullet-points of multi-level unordered-list, as well as trying to get a pill to display something different from the tag it links to (TW5)

2019-01-04 Thread Elijah
I figured it out. I created a copy of TagTemplate, replaced tag=<> with tag={{!!caption}}, and referred to this template as needed. Marking as solved. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Brian Theado
Mohammad, On Fri, Jan 4, 2019 at 10:03 PM Mohammad wrote: > Brian, > Does enlist work with title have space? Yes. The description at https://tiddlywiki.com/#enlist%20Operator, shows an example of that. Also, you can paste the code I gave into tiddlywiki.com and see it in action. All the

Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Mohammad
Brian, Does enlist work with title have space? 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 post to this

[tw5] Custom languages/brushes for highlight.js

2019-01-04 Thread Mohammad
Rob, This is great. The current mechanism is not modular. I hope @BTC, who is working on updating highlight.js see this post and also @Jeremy. We should have the plug-in with minimum common language brushes, and then users can add their brushes of choice. Your code should be part of plugin. I

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
Thanks Thomas, Thanks Tony It is a pity, we have not good documentations on these. There are alots to do with TW scripting, but few people know, AND nobody knows all of them. Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread Mohammad
Diego Eric not only gives fantastic solutions, but also, gives insights into what is going on behind the scene. He is of course a great teacher. Hope he can finalize his book. Cheers Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: Refnotes plugin

2019-01-04 Thread Mohammad
Hi Tony, The find macro is mine and not available in empty.html. Of course Thomas Elmiger has already published an equivalent extract macro. Find uses features of newer TW release. Also it is very compact and easy to understand. It uses an output macro as input parameter, which gives it alot of

[tw5] Re: Refnotes plugin

2019-01-04 Thread TonyM
Mohammad, I have finally gotten around to taking a deeper look. The Find macro is yours and embedded in the ref notes plugin?, it could be published separately of course, or its equivalent should in my view be available in the empty.html I wanted to ask if you have ever tried to wikify the

[tw5] Re: Refnotes plugin

2019-01-04 Thread Mohammad
Hi James Would you please give a try here https://kookma.github.io/Refnotes/ This is the online demo and doc page. What browser do you use? Are you using a desktop or tablet or cell phone? --Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki"

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread Diego Mesa
Eric your answers are always fantastic. Thank you! Respectfully, I think I speak for many here in saying we all hope you can complete "InsideTiddlyWiki: The Missing Manuals" one day! On Friday, January 4, 2019 at 11:19:12 AM UTC-6, Eric Shulman wrote: > > First, a bit of history: the code

[tw5] Re: Refnotes plugin

2019-01-04 Thread James
Hi Mohammad, I have installed the Refnotes plugin but the tooltips doesn't work. Is there any other plugins I need to install so that I can see the pop up tooltips? On Friday, 28 December 2018 20:09:21 UTC+8, Mohammad wrote: > > > *Announcement a new release of Refnotes plugin * > *(4th

[tw5] Custom languages/brushes for highlight.js

2019-01-04 Thread Rob Hoelz
Hi everyone! I wanted Lua code in my wiki to get proper treatment, so I whipped up a little hack to make adding new languages/brushes a cinch. I've seen people ask about this in the past, so I thought I'd share the code I wrote. Here's the JS code that does the magic: exports.after =

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread TonyM
Info for all and thanks Thomas As in https://tiddlywiki.com/#TranscludeWidget *The TranscludeWidget treats any contained content as a fallback if the target of the transclusion is not defined (ie a missing tiddler or a missing field).* Explains why

[tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread TonyM
Erics answer in this thread will help towards this https://groups.google.com/forum/#!topic/tiddlywiki/oMBoAkJIZhQ Whilst it includes batch manipulation by button press it shows the action widgets inside a list widget to apply to multiple. Place the logic there in the actions of what ever

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Thomas Elmiger
And one more, this one omits automatic linking to CamelCase captions: <$view field="caption" format="plainwikified"><$view field="title" format="text" /> Have fun, -t Am Freitag, 4. Januar 2019 23:49:29 UTC+1 schrieb Thomas Elmiger: > > Hi folks, > > ... the *caption* field is generally

[tw5] Re: Table of content showing only tags with a tag count greater than zero

2019-01-04 Thread TonyM
Stuart, The Tiddler $:/core/macros/toc is where the toc macros are defined. However they can be quite complex. However we can see there is an exclude parameter used. Also See https://tiddlywiki.com/#Table-of-Contents%20Macros for the documentation. Try invoking the TOC macro of your choice

Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Brian Theado
bimlas, I'm not sure I understand what you mean, but here is my guess. I store the results of a filter in a variable and use that variable in two different places: <$set name="mylist" filter="[tag[Filter Operators]]"> List the related tags of tiddler list <$list filter="[enlisttags[]]">

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Thomas Elmiger
Hi folks, ... the *caption* field is generally wikified (and so can include >> formatting etc.) while the *title* is rendered as plain text. > > An even shorter solution for this: <$transclude field="caption"><$view field="title"/> Thanks for the hints! Thomas <$list

[tw5] Table of content showing only tags with a tag count greater than zero

2019-01-04 Thread 'Stuart Amor' via TiddlyWiki
I am trying to create an itinerary catalogue. l have spent a great deal of time devising a tag directory structure that will allows me to add individual item tiddlers into an organised tree. The problem l have is that I now have a Table of Contents containing a great deal of "empty

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread TonyM
Mark, This supprises me and I would like to understand it better, and ensure its documented. Tony -- 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

[tw5] Re: folding editor

2019-01-04 Thread Joe Armstrong
On Friday, 4 January 2019 07:56:00 UTC+1, tony wrote: > > Hi Joe, > > I don't have an answer to the folding editor but toggling the preview pane > (eyelid icon on toolbar or alt-p) allows you to see changes when you edit. > > I really enjoyed your blog post about Chandler and task management

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread 'Mark S.' via TiddlyWiki
Hi Kalmir, Obviously I was wrong -- it was a lot easier than I thought. I didn't realize that changing the title with set-action would create a brand new tiddler, complete with all the fields and tags -- that was the part I imagined taking hours to work out. Thanks, -- Mark On Friday,

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread Kalmir
*Mark,* I am aware of TW approach to title as the unique ID. In case of my old titles as well as the new ones, the title remains unique. So I didn't think this relevant. But I get the "everything hinges on it so it is much more difficult to manipulate". *Eric,* thank you a lot! Not just for

[tw5] Re: trying to remove bullet-points of multi-level unordered-list, as well as trying to get a pill to display something different from the tag it links to (TW5)

2019-01-04 Thread Elijah
Thanks a ton Ton. :p That + setting the margin-top, and margin-bottom of the dl element to zero got me exactly what I want. As for the other thing I'm trying to do; I haven't yet figured it out, but I think I'm on the right track.. Is there a way to combine both {{ITEM!!caption}} &

[tw5] Re: trying to remove bullet-points of multi-level unordered-list, as well as trying to get a pill to display something different from the tag it links to (TW5)

2019-01-04 Thread Ton Gerner
Hi Elijah, The easiest way for your first question is: use : instead of a bullet: : one : two :: two-one Cheers, Ton -- 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

[tw5] Re: TiddlyWiki Transclusion 101 question about displaying multiple tiddlers in a single tiddler

2019-01-04 Thread Jack Baty
That *sort of* works. It includes the entire tiddler, including tools and wrappings so it's more than I actually need in this case. I do need to investigate the View Templates further, so thanks! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.

[tw5] Re: TiddlyWiki Transclusion 101 question about displaying multiple tiddlers in a single tiddler

2019-01-04 Thread Jack Baty
I was struggling with $transclude so kind of gave up. Thanks for pointing be back in the right direction! The trick for me was having the mode parameter set to "block. I also wanted the title for each and it turns out that's as easy as using another $transclude macro with field="title". I also

[tw5] Re: TiddlyWiki Transclusion 101 question about displaying multiple tiddlers in a single tiddler

2019-01-04 Thread 'Mark S.' via TiddlyWiki
Something like this: <$list filter="[tag[HelloThere]]" template="$:/core/ui/ViewTemplate"/> perhaps? On Friday, January 4, 2019 at 10:35:56 AM UTC-8, Jack Baty wrote: > > I would like to collect (via tag or some other criteria) a number of > tiddlers and display them all within another,

[tw5] Re: TiddlyWiki Transclusion 101 question about displaying multiple tiddlers in a single tiddler

2019-01-04 Thread Jed Carty
You are looking for the list widget. If you have a tag called MyTag than you would use this <$list filter='[tag[MyTag]]'> <$transclude/> I wrote some introductory documentation for this, but I never got around to really finishing it. You can see what I have here:

[tw5] TiddlyWiki Transclusion 101 question about displaying multiple tiddlers in a single tiddler

2019-01-04 Thread Jack Baty
I would like to collect (via tag or some other criteria) a number of tiddlers and display them all within another, single tiddler. This seems so basic and yet I can't seem to find an example. The other threads in the group all seem to be about solving much more complex issues so whosh,

[tw5] trying to remove bullet-points of multi-level unordered-list, as well as trying to get a pill to display something different from the tag it links to (TW5)

2019-01-04 Thread Elijah
Wasn't sure if I should post this here, or in TiddlyWikiDev.. I'm trying to figure out how to remove the bullet points for all of the levels in a multi-level unordered-list. I've been trying to use *@@list-style: none;*, but it is only removing first-level bullet points. I know I could do this

Re: [tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread Xavier Cazin
Hi bimlas, FWIW, the event of loading the wiki is one of the possible triggers for actions : https://tiddlywiki.com/#StartupActions Xavier. Le ven. 4 janv. 2019 à 12:28, bimlas a écrit : > TonyM, > > Okay, I'll explain the problem more clearly: > > I would like to write a TableOfContents

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread Mohammad
Hi Eric, This does the job! I tested it on tiddlywiki.com and it works like a charm. Thank you Eric, Thanks a million. Cheers Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread Eric Shulman
First, a bit of history: the code you quoted in your post is for TiddlyWiki Classic ("TWC"). The current version of TiddlyWiki ("TW" or "TW5") was completely re-written from the ground up several years ago to take advantage of modern browser tech such as HTML5. Additionally, in TWC, writing

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread @TiddlyTweeter
Mark S. wrote: > > ... For anyone reading this, what would be the best way to document this > particular situation? > Given how confusing I found this at first, I'd say that its very useful to say ... "Tiddler Titles in TW ARE the default HTML IDs in TiddlyWiki. This is why if you try to

[tw5] Re: Using variables inside of square brackets to link to external files.

2019-01-04 Thread Mohammad
Jack, See this wonderful solution by Mark S . It creates external images from a directory. Your case is very much the same. Cheers Mohammad -- You received this message because you are subscribed to the Google Groups

[tw5] Re: Batch edit tiddler title

2019-01-04 Thread 'Mark S.' via TiddlyWiki
This discussion, from two weeks ago, is essentially the same thing: https://groups.google.com/forum/#!searchin/TiddlyWiki/change$20tiddler$20title%7Csort:date/tiddlywiki/8zo4_wriZK8/s16s01TnDAAJ If you were changing any other field, it wouldn't be such a big deal. But in TW everything hinges on

[tw5] Using variables inside of square brackets to link to external files.

2019-01-04 Thread Mohammad
Jack This is not difficult. You can add suffix or prefix to the file name, so you can create the filename. If I can find in forum, there is a similar question answered by Mark S. I will share it. Mohammad -- You received this message because you are subscribed to the Google Groups

[tw5] Batch edit tiddler title

2019-01-04 Thread Kalmir
Hi, I am looking for a way to edit the title of a group of tiddlers. I would first filter the tiddlers by tag and then execute the batch edit on this group. What I want to do is to put something at the beggining of each tiddler's tiddler (like adding prefix) without changing the rest of the

[tw5] Re: Testing if a macro has none, one or more parameters

2019-01-04 Thread PMario
Hi, For filters it may be possible to make them empty like: " " ... 1 space. A filter will return nothing, but it should be possible to detect the space if needed. -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw5] Re: Testing if a macro has none, one or more parameters

2019-01-04 Thread TonyM
Mario, Are you suggesting setting the default value for the first parameter to say "default" and when it is default do x and when it is not do y? In the case of it being used as a subfilter it will always return the default? I will test it. Thanks for the suggestion. Tony -- You received

[tw5] Re: A comment about the DozenDukeWrap plugin

2019-01-04 Thread @TiddlyTweeter
David I enjoy dad jokes too :-) "Dad, can you put the cat out please?" "Sorry, I didn't know it was on fire!" David Gifford wrote: > > I enjoy dad jokes. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and

[tw5] Re: Testing if a macro has none, one or more parameters

2019-01-04 Thread PMario
Hi, If you need default values for parameters, you can define them. IMO that's the same as checking for empty values, which isn't possible atm. \define test(a:"aaa", b:"bbb") if a and b have default values -> do this test a -> do this test b -> do this \end have fun! mario -- You received

[tw5] Re: Testing if a macro has none, one or more parameters

2019-01-04 Thread PMario
Hi, Be aware, that macro parameters are named! So this has to work: \define test(a, b) $a$ ... $b$ <> Calling macros with 1 or 2 parameters without names is lazy but ok. If they have more params it's extremely error prone. have fun! mario -- You received this message because you are

[tw5] Using variables inside of square brackets to link to external files.

2019-01-04 Thread Jack Stephan
Hello, thanks in advance for any help. I'm still quite a new user so I don't know if I'm phrasing the question in a way that meaningful, but I'll try my best. I am trying to incorporate all the PDFs from my lectures into TiddlWiki and link to them and specific pages. Is there a way to use this

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread @TiddlyTweeter
In addition to Jed's useful comment you might want to read this thread for ideas ... https://groups.google.com/forum/#!topic/tiddlywiki/_BaIcxNtqFw It relates to actions on titles on import from JSON files but should could be developed other ways. Look down the thread for Riz's demos solution

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread @TiddlyTweeter
Ciao TonyM Right. I do think, in my naive way, that using procedures that work with JSON (that The Bundler makes) is a good route here. TonyM wrote: > > ... I have started using bundlename.bundle tiddlers containing a source > field and including that in exported bundles. -- You

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread @TiddlyTweeter
In addition to Jed's useful comment you might want to read this thread for ideas ... https://groups.google.com/forum/#!topic/tiddlywiki/_BaIcxNtqFw It relates to actions on missing titles on import from JSON files but should could be developed other ways. Look down the thread for Riz's demos

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread TonyM
Jed, Of course if the tiddlers contained a source field with a value you could use that. I have started using bundlename.bundle tiddlers containing a source field and including that in exported bundles. Regards Tony -- You received this message because you are subscribed to the Google Groups

[tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread TonyM
Bimlas, I will look in more detail later, but remember if you have a macro that generates a list of titles you can use that macro in a widget or other macro to act on the members of that list. I know its a quick tip only but may get you there. Tony -- You received this message because you

Re: [tw5] Re: [INTRO] uni-link plugin

2019-01-04 Thread TonyM
Mira, Thanks for sharing and completing the thread Tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this

[tw5] Re: subfilter examples

2019-01-04 Thread TonyM
Mohammad, The "main filter" could be the only part of the filter. What is Shure is my examples all work. Some more detailed analysys may be nessasary but I think each is a "run" Regards Tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread Jed Carty
I have something like this implemented for the server images plugin. It hooks into the import mechanism and makes changes to the tiddler. For that it saves the image on a server but having it change the tiddler title or make other modifications to fields should be relatively straight forward.

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
Thanks for the hint! Cheers 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 post to this group, send email

[tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread bimlas
TonyM, Okay, I'll explain the problem more clearly: I would like to write a TableOfContents macro, where the related tags are listed alongside the list items itself. [image: vivaldi_2019-01-04_12-00-41.png] You can use the list of related tags to narrow the list of tiddlers (for example,

Re: [tw5] Re: [INTRO] uni-link plugin

2019-01-04 Thread Kalmir
Hi, PMario and others, I'm having an issue with the plugin: capital letters are not recognized. If I use the plugin's Alias Examples, I get only the 1st, 3rd and 5th correct (working) - all those without capital letters. I am running 5.1.16 and uni-link 0.3.4 (when I first run into the issue,

[tw5] Re: subfilter examples

2019-01-04 Thread Mohammad
Thanks Tony, Thank you! I am reading what you references. BUT If we have a filter and then a subfilter, does it means we add new filter to previous one? I mean does this subfilter is something separate or will be AND to the main filter? --Mohammad -- You received this message because you

[tw5] Re: subfilter examples

2019-01-04 Thread TonyM
Important examples here https://groups.google.com/forum/#!topic/tiddlywiki/dQuaT6ABpFY On Friday, 4 January 2019 21:42:40 UTC+11, Mohammad wrote: > > In TW release 5.1.18, the new operator subfilter > has been introduced. I am > looking for some

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread TonyM
Mohammad, I have seen this extra leading and trailing space issue a few times. This is in part why I use the method I proposed which uses the link widget to create the link. Others have suggested passing such values with leading and trailing spaces to another macro to "sanitise them" eg if

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread TonyM
Totally agree, that is why I have started researching it. Another feature would be recording the source in the imported tiddlers, ensuring no overwrites, only prefix when needed etc...Allow import versions and more. Regards Tony On Friday, 4 January 2019 21:25:50 UTC+11, Mohammad wrote: > >

[tw5] Re: Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread TonyM
Bimlas, How I understand it Since many changes in tiddlywiki result in a need to update all relevant tiddlers (using the widget tree) there are few if any ways to make something happen without a trigger. If there were it may be possible to trigger triggers and end up with endless loops etc...

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
Hi Tony, Clever solution. I bookmark this solution. By the way as S. S above indicated there is some confusing cases with toc-macro uses caption/title when caption is not existed or empty. For my case, I need to remove the extra spaces when caption is used, and I realized that is because

[tw5] subfilter examples

2019-01-04 Thread Mohammad
In TW release 5.1.18, the new operator subfilter has been introduced. I am looking for some examples to show the application of this new subfilter in action. There are two examples here but

[tw5] Re: A tiddler to manage authentication - challenges

2019-01-04 Thread CHUN LI
I was thinking about using a JSON data tiddler (it has all the names of all text tiddlers, and some text in the tiddler body) as the source to generate tiddlers. And a "user table" tiddler lists all the users and which text tiddlers the users can edit (by tiddler names). So once my users logged

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread TonyM
Mohammad, If the purpose of this macro is to show the caption then if not existing the title then there is now a more elegant way. <$list filter="[all[current]has[caption]get[caption]] ~[{!!title}]"> However this returns a tiddler link even to the caption So Try this <$list

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
Good point S. S, Yep, this is good to apply formatting to caption. Cheers 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

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread Mohammad
Hi Tony! Good hints! Let me have a look at those core tiddlers. I think I may create a duplicate and work on them. BTW, I think this feature is good to be incorporated in core: i.e having options to tag, even add suffix or prefix to the name of imported tiddler and like that. Cheers Mohammad

[tw5] Program flow: how to store a variable in a field without user intervention?

2019-01-04 Thread bimlas
The basic structure of TiddlyWiki is XML, and it also feels because everything is embedded in one another. ``` In the list of tiddlers If tiddler meets a condition List its tags end end ``` There are program flows that cannot be implemented in it, such as defining a variable in one

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread S. S.
Mohammed, As a precaution, you may want to read this explanation on github by Jeremy of using the *caption* field vs. the *title* field. ... the *caption* field is generally wikified (and so can include >

[tw5] Re: Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread TonyM
Mohammad, There is a way I discovered, but I have not completed the solution I am building. If you import some tiddlers, even a json file you will see that the $:/Import tiddler is created. Editing this it looks like a json tiddler, not only with a list of tiddlers, but containing the data to

[tw5] Re: A tiddler to manage authentication - challenges

2019-01-04 Thread Jed Carty
I don't think that what you want to do is possible in a single file wiki. The Oauth2 authentication is based on tokens and logging in requires redirection of a url. Also Oauth2 is designed to mediate communications between a server and a browser or other application by limiting what is able to

[tw5] Re: Testing if a macro has none, one or more parameters

2019-01-04 Thread TonyM
Mohammad, Thanks for that. It is not dissimilar to the approach I found, however it would be good if we could reference all parameters passed, to the macro, if for no other reason to allow them all to be passed on to a subsequent macro without having to name them. Regards Tony -- You

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
See Jeremy answer to this question here:GitHub Seems this is not a bug and depends to browser. --Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Is there any solution to do extra operation on tiddler import?

2019-01-04 Thread Mohammad
Is there any solution to do extra operation on tiddler import? Assume you have imported several tiddlers by drag and drop or using sidebar/tools/import button and before clicking on the Import button on $:/import you want to add a tag e.g. "sandbox" to be able undo the import operation later

[tw5] Re: Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
I could solve the issue by removing the line breaks as below \define mac(tid) [<$view tiddler=$tid$ field="caption"><$view tiddler=$tid$ field="title"/>] \end But why line breaks here interpreted as space? --Mohammad -- You received this message because you are subscribed to the Google

[tw5] Is this a bug: Using conditional view widget to show caption or title

2019-01-04 Thread Mohammad
I have a macro as below to show the title or caption of a tiddler based on the availability of caption filed \define mac(tid) [<$view tiddler=$tid$ field="caption"> <$view tiddler=$tid$ field="title"/> ] \endEnter Then I have several tiddlers like t-2016, t-2017, t-2018, t-2019. The two