Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    qbit
    @qbit:tapenet.org
    [m]
    transcluded with {{||ThingAndStuff}} - I don't have a specific example - more curious
    my current workflow seems to be:
    • make a template with a table that displays a set of feilds
    • transclude said template
    • forget what fields i need to fill out
    • reference template :P
    i'd like to just skip the forget/reference step
    @yanderella:sibnsk.net
    [m]

    I am not sure what you mean exactly.... but that's because I cannot understand it. Anyway... I will try to give you something in hope that it may be what you want.

    Create a new tiddler and put this as contents...

    ''Info'': <$edit-text tiddler="$:/temp/test" field=testfield /> <br />
    ''Msg'': <$edit-text tiddler="$:/temp/test" field=testfield2 /> <br />
    <$button>
    <$action-setfield  info={{$:/temp/test!!testfield1}} />
    <$action-setfield  msg={{$:/temp/test!!testfield2}} />
    <$action-deletefield $tiddler="$:/temp/test" testfield testfield2/>
    Set fields  info and msg of current tiddler.
    </$button>

    and I guess the next time you forget what fields were there, you can just transclude this tiddler with something like {{||ThingsAndStuff}} then you'd be able to set whatever fields you had to set without having to remember anything else but one main field editing template?

    Sorry if that's not remotely related to your answer. I don't understand and probably won't be able to help you.

    qbit
    @qbit:tapenet.org
    [m]
    :D - i'll try it and see - either way it has things I can learn from, so thank you!! <3
    @yanderella:sibnsk.net
    [m]
    Also as a side thing about "forgetting and referencing the template". I actually try to write small "Help" tiddlers that document things briefly and put them in the sidebar (with the tabs macro), so that it is easy to reach and find out in the middle of editing without putting tiddlers in the story river. These "Help" tiddlers are pretty much my conventions used in the current TiddlyWiki. It's kinda tedious to update and maintain them as well as my templates but it pays off to not look up where my template is and the code used unless really needed after not opening it for too long. So I do recommend on thinking about conventions you want to use, write them in the TiddlyWiki as you have them and where in a tiddler and keep personal conventions as consistent as possible. Other than that, I haven't figured out a better way myself.
    qbit
    @qbit:tapenet.org
    [m]
    ok, thanks :D
    my use case for this is still a big experiment - i am trying to formulate a way to keep track of openbsd ports that I maintain.. but i think anything that requires external updating (outside of the openbsd ports tree) will ultimately fail.
    worth experimenting with though !
    @yanderella:sibnsk.net
    [m]

    Yes, I see. This is one problem that I am mentally struggling with too, so I understand the "external updating" will fail, because I do feel like that myself. My personal take on similar problem is to 1) make my TiddlyWiki my central repository of it - like the only copy of that information so that I know it is exactly there when I need to do modifications and open it when I do modifications to the things and it to be as brief and easy to update as possible. and 2) Make the TiddlyWiki more useful to me too so that I can actually "need" it or use it during such thing. Example: as a checklist of things that I must do so that I can just not think what I must do but just look at what I should check and update everywhere else; or additionally like half-baked commands maybe.

    So indeed, experimenting is needed and if you find out something that actually works for you, I'd be happy to hear and hopefully see if I can add it to my own workflow or something.

    Disclaimer: all this is just abstract suggestions and some of my ideas since I have similar problem with my not as frequent as I want TiddlyWiki usage that I am still trying to even out and still far from even my own suggestion.

    qbit
    @qbit:tapenet.org
    [m]
    :D
    bruno366
    @bruno366:matrix.org
    [m]
    @qbit if the problem is that you’re forgetting which fields to set, maybe you can create a template tiddler with dummy fields that you can and then fill in?
    qbit
    @qbit:tapenet.org
    [m]
    that's what i am doing - but i have to reference the template tiddler to remember the fields
    maybe transcluding with {{||ThingStuff}} doesn't add fields from the transcluded tiddler? is there another method to transclude, maybe?
    @yanderella:sibnsk.net
    [m]
    I don't know, but if it is some other Tiddler than the current Tiddler, you can specify it like this {{My Other Tiddler||ThingsStuff}} (this is a shorthand for the transclude widget in WikiText) or try to use the full way which is with the $transclude widget https://tiddlywiki.com/#TranscludeWidget
    Mario Pietsch
    @pmariojo:matrix.org
    [m]

    qbit: I think you are using it wrong. This form of a transclusion is a "template" {{||ThingStuff}} eg:

    Let's say you have a tiddler named: test. eg: If you want to show the "description" field within the test-tiddler you can do this: {{test!!description}}. Since you are already "in" the test-tiddler you can use the "shorthand" instead: {{!!description}}. ... So {{!!description}} internally uses the <<currentTiddler>> variable for the missing tiddler name. ... In the context of the test-tiddler text the <<currentTiddler>> variable is set to "test"

    If you transclude: {{myText}}, it will show the content of the "myText" tiddler within the test-tiddler. If you use {{!!description}} in the "myText" tiddler it will show the description-field form myText and not the description from test-tiddler. The <<currentTiddler>> variable with "{{myText}}" is set to "myText"

    If you use {{||myText}} in the test-tiddler, it will keep the <<currentTiddler>> variable at "test" ... So if you use {{!!description}} in the "myText" tiddler it will show the "description field" of the "test" tiddler. ... So {{||myText}} is called a template-tiddler.

    Mario Pietsch
    @pmariojo:matrix.org
    [m]
    I hope that makes sense
    Mario Pietsch
    @pmario
    ...
    qbit
    @qbit:tapenet.org
    [m]

    pmario: that’s how I am using them, but I was hoping I could also transclude the literal field names into the new tiddler.

    Basically I want to auto populate a new tiddler’s field set (the literal list of fields, not the values from the template) from a transcluded tiddler

    pmario
    @pmariojo:matrix.org
    [m]

    Yea, I thought about that as I did read your posts. ... Fields don't "stack" :). ... What you can do is using the <$tiddler /> widget. eg:

    title: test
    description: test - test

    Transclude the "local" description field: {{!!description}}

    <$tiddler tiddler="myText">
    Transclude the "myText" description field: {{!!description}}
    </$tiddler>

    see: https://tiddlywiki.com/#TiddlerWidget

    David Beijinho
    @davidbeijinho
    Hi everyone,
    I'm trying to create a template to show all the tasks for today, I use the journal title as YYYY-0MM-0DD
    and i would like to filter something like this [sameday:schedule[<currentTiddler>search-replace:g[-],[]]]
    if I hardcode the title it works [sameday:schedule[20210816]]
    qbit
    @qbit:tapenet.org
    [m]
    TIL about sameday, that's neat :D
    @davidbeijinho: i wonder if maybe you set a variable first? and then used that in the schedule[] part?
    David Beijinho
    @davidbeijinho
    iwas trying with wikify, with the search replace
    <$wikify name="result" text="{{{ [[The quick brown fox jumps over the lazy dog]search-replace[dog],[cat]] }}}" >
    <$text text=<<result>> />
    </$wikify>
    but its not working
    @yanderella:sibnsk.net
    [m]

    You cannot nest things like that. Especially you should remember you cannot have "another pair of square brackets inside a another one" except the initial first pair. Sorry, that sounds more confusing than it is, but you can't nest them like that. You must "export" such logic into variables and then use those. Here is a working example of what you want to do

    <$vars thedate={{{ [<currentTiddler>search-replace:g[-],[]] }}}>
    {{{ [sameday:schedule<thedate>] }}}
    </$vars>

    I tested this by creating a tiddler named 2021-08-16 and put the "code" in the tiddler body. While I had created another tiddler with any name but with a field schedule with value of 20210816 and it worked. Good luck!

    @yanderella:sibnsk.net
    [m]
    <$vars thedate={{{ [<currentTiddler>search-replace:g[-],[]] }}} >
    
    {{{ [sameday:schedule<thedate>] }}}
    
    </$vars>
    I think the code snippet broke so I am sending it again.
    qbit
    @qbit:tapenet.org
    [m]
    nice
    @yanderella:sibnsk.net
    [m]
    The code snippet doesn't render properly in my Matrix Client but over at https://gitter.im/TiddlyWiki/public it shows properly.
    David Beijinho
    @davidbeijinho
    i was able to make it work, i notice that i was running version 5.1.22, after updating the snippet is working
    bruno366
    @bruno366:matrix.org
    [m]
    Is it possible to contain several tiddlers in one? I suspect this is what plugins do
    qbit
    @qbit:tapenet.org
    [m]
    you can transclude a number of them into one
    bruno366
    @bruno366:matrix.org
    [m]
    Hmm I suppose but then how do I automatically make several tiddlers. Let me give an example, let’s say I have a document and I want each paragraph to be its own tiddler, any way to do this?
    @yanderella:sibnsk.net
    [m]

    https://tiddlywiki.com/#TiddlerFiles

    Well, you can import/export multiple tiddlers using ".json" format. But you still have to import them manually. The other format like that contain a single tiddler like .tid may also work but you'll still have to manually import them all in a bulk (via drag and drop at the top part of the Tiddlywiki in browser because the import button which brings a window doesn't allow multiple selection) and it should work.

    Alternatively, if you want everything automated. After making a json file that looks like the json TiddlyWiki can export, you may try to construct a TiddlyWiki using node.js commands.

    bruno366
    @bruno366:matrix.org
    [m]
    Yeah thanks that look like what I’m looking for :)
    Mario Pietsch
    @pmario
    Hi folks,
    Just wanted to let you know, a new discussion group started at https://talk.tiddlywiki.org It uses Discourse as the backend and will be a community driven effort. Feedback and help is very welcome. You can use GitHub, Twitter and Google accounts for a fast sign up, or you can use the form on the page ;)
    have fun!
    mario
    Joe Bordes
    @joebordes
    :+1:
    @yanderella:sibnsk.net
    [m]
    Sorry for this side question, mario, but does it have RSS feed by chance once you register or something? (I was unable to find such publicly there, but then again I don't know where to look). Thanks in advance!
    Mario Pietsch
    @pmario
    Hi, You don't need to be registered. Every link has a feed. So if you are at eg: https://talk.tiddlywiki.org/c/discussion/1 your RSS reader should be able to detect the rss feeds. With this link there are 3 of them. If you want to have the feed of a topic, just open the topic. Eg: The FF browser addOn FeedBro Reader works well in my test
    2 replies
    HybridEyeGrillage
    @HybridEyeGrillage
    Hello again!
    I've been trying to figure this issue around fields for awhile, but left it until I had more time to spend on it. And now I have the time to spend (also reading through the TW docs and looking through Grok), I have to ask about it cause I haven't figured it out still.
    The situation is as such:
    I've got a series of tiddlers, each with a incremental value, (i.e. TestMe1 with field name=testname1, TestMe2 with field name=testname2, and so forth). In these tiddlers, I've placed the reference to the name (i.e. {{!!name}}). All have the same tag (tag=listForTabs). I've also added an additional transcluded tiddler via a list filter as well (<$list filter="[{!!name}addsuffix[-additional]]" > <$transclude mode="block"/></$list>).
    In another tiddler called MyTabList, I list these in with a tab function <<tabs "[tag[listForTabs]!sort[title]]" """$:/state/tab" "tc-vertical">>. Here's where the problem occurs- the fields that I've referenced and the transclusion via list are not visible, so the tabs have names, but show up with blanks in them. Is there a way that I can get the fields that I've referenced and transclusions to 'stick' wherever it will be shown within the tabs?
    @yanderella:sibnsk.net
    [m]

    Without reproducing your setup fully. I want to tell you about the fact that within a tabs macro, the variable <<currentTiddler>> points to the Tiddler that contains the tab macro itself, not the ones aggregated by the tags. This is why with {!!name} it tries to find it on the tiddler with the tab macros on. Not the Tiddler that is the tab.

    Saying this just in case due to ambiguity, but If you are storing the same tiddler title in a field name that's may not be needed?, because transcluding {{!!title}} or <<currentTiddler>> (or within a filter step {!!title} and <currentTiddler> even all[current]) will produce the tiddler name. Which you may be able to use. In that case, it may be sufficient to replace those with another variable provided by the tabs macro called <<currentTab>> (or <currentTab> for filter notation)

    More information about <<currentTiddler>> problem and <<currentTab>> and its existance can be read here (at the bottom of this tiddler): https://tiddlywiki.com/#tabs%20Macro

    Either way, those were side notes from me.

    Your solution that you are looking for, should be this. Wrap your list widget with the workaround from the link.

    <$tiddler tiddler=<<currentTab>>>
    <$list filter="[{!!name}addsuffix[-additional]]" > <$transclude mode="block"/></$list>
    </$tiddler>
    2 replies
    bruno366
    @bruno366:matrix.org
    [m]
    hey, I'm curious, right now i'm using the github saver and it saves my wiki as an html file in the repo, but what if I want each tiddler as a seperate file?
    I think https://tiddlywiki.com/ has something like this
    @yanderella:sibnsk.net
    [m]
    You can convert a HTML TiddlyWiki to a folder one via command line when you need it? However, saving a folder directly to github as .tid ... I am not sure about that? and I believe that TiddlyWiki.com is using git separately to commit and push it to a github repository when needed (not as part of seemless editing? but I can be wrong)
    Mario Pietsch
    @pmario

    You can convert a HTML TiddlyWiki to a folder one via command line when you need it?

    That's right

    However, saving a folder directly to github as .tid ... I am not sure about that?

    That's not possible with the GitHub saver.