[tw5] Re: How to embed a tiddler(s) inside a gmail message

2021-03-03 Thread TiddlyTweeter
Ciao Mat

Mat wrote:

> This is (1) almost off topic and (2) way too intricate to do a lot...


Actually it is very on-topic. Most everyone would at some point want to use 
TW seamlessly with email. And its possible.

I personally think we could do a lot more to illustrate and promote 
"integrations" with email, posting to social networks etc.

...but you'll agree it's interesting.
>

It is. The method in the video is "insertion" of the content into the 
browser  "code inspector". 

Just FYI I use a couple of *other* methods, which I find less techy. 
The one that works well for HTML email for me is enabled by installing in a 
browser the "Markdown Here" browser extension  (it 
works fine with straight HTML as well as Markdown). 
An example result you can see here, where I posted to GG using it (Gmail & 
GG use the same engine so it works on both) in nice looking HTML ... 
https://groups.google.com/g/tiddlywiki/c/GHbwtMIrA3I/m/eJyRkqyKAQAJ

Interesting topic!
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/4927802a-db76-48a7-a6fc-56c598915d02n%40googlegroups.com.


[tw5] Re: [Demo] Inspect macro definitions

2021-03-03 Thread clutterstack
I did some prefiltering and this seems to have sped things up by about a 
factor of 4-5 (counting seconds in my head, using [all[tiddlers+shadows]] 
as input and typing one letter into the search).

On Wednesday, March 3, 2021 at 5:36:32 PM UTC-5 clutterstack wrote:

> For Mohammad: I am still wading through the mess I made, but I made a tab 
> for Tiddler Commander you can try here 
> .
>  
> This is *totally not ready for prime time and will probably not stay in 
> this wiki *but I'd be interested in your feedback as to how you'd like 
> something like this to work.
>
> There are two plugins at the moment, to make this work: "selector" and 
> "showmacrodef". One gives me a macro for a dropdown selector. The other 
> gives me a JavaScript widget and a JS macro, for displaying a variable's 
> definition/value and a sample macrocall (if applicable), respectively, as 
> well as a tool that makes a tab for Tiddler Commander to inspect for 
> variable definitions within a filtered list of tiddlers. There is a tiddler 
> that will do something similar without having Commander installed, but it's 
> not finished.
>
> The Commander tab does something like this, starting with the searchfilter 
> from the top part of the Commander UI:
>
> You type into the selector and it looks through those tiddlers for lines 
> with "\define ", followed by something that contains the user input, 
> followed by "(". From that, it rebuilds the macro name on that line. Each 
> macro name it deduces from this, it lists in the dropdown as a selection 
> option. 
>
> Once you select a macro name, it returns a list of the tiddlers that 
> contain a "\define" line for that macro name. Note that it's possible for a 
> tiddler to have a line like that, but NOT be defining anything (e.g. within 
> a code block). To check, you choose the tiddler with a radio button, and 
> the macro gives you a display.
>
> Here's where it checks that there's a macro definition in the selected 
> tiddler: it redefines that macro using a set widget, then imports the 
> variables from the candidate source tiddler. If the macro now has a 
> definition, then that tiddler had a real definition in it, and this is 
> displayed using the aforementioned JS widget.
>
> I note that the filter in the dropdown interface is pretty slow. Right now 
> it's showing all candidate source tiddlers in the dropdown...maybe not a 
> good tradeoff performance- and space-wise.
>
> Any feedback welcome.
>
> Best,
> Chris
>
> On Tuesday, March 2, 2021 at 11:27:10 AM UTC-5 clutterstack wrote:
>
>> Thanks, David.
>>
>> On Sunday, February 28, 2021 at 6:09:13 PM UTC-5 David Gifford wrote:
>>
>>> Added this to the toolmap, both in the "Understanding TiddlyWiki" 
>>> section and the "Advanced / developer" section
>>>
>>> On Friday, February 26, 2021 at 2:17:25 PM UTC-6 clutterstack wrote:
>>>
 Hi all,

 I was playing with dropdowns and...things...and I built something that 
 I wished I had last summer, and which will help me keep track of current 
 variable and macro definitions/values. 

 A first version to play with is at 
 https://clutterstack.github.io/can-tw/clutterstack-TW5-com/#Inspect%20variable%20and%20macro%20definitions

 It's not perfect, but I'm kind of pleased. Also not documented or 
 packaged.

 I ended up writing two javascript macros to access variables and their 
 properties -- if I could have done this using filters, I'd love to know 
 what I missed! I didn't just want to search tiddlers for "\define" etc, 
 because sometimes I put that stuff in code blocks as content.

 Also, if there was a pre-existing public solution for this, I'd also 
 like to see it. There must be a few out there, at least in private wikis.

 Best,
 Chris

>>>

-- 
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/af0e2936-223e-4fa8-a336-1625cfa9f821n%40googlegroups.com.


Re: [tw5] Re: Download from tiddlyspot to use in google dsrive

2021-03-03 Thread sam stone
Thanks, now at least I know that I am using "classic", and know how to look 
for answers better. Thanks.

On Monday, March 1, 2021 at 9:14:33 PM UTC-8 strikke...@gmail.com wrote:

> There is a Group for Tiddlywiki Classic 
>  There is also an update 
> to old wikis and that might be an idea to make at least something easier. 
>
> Hope you find a way,
>
> Birthe
>
> tirsdag den 2. marts 2021 kl. 05.46.18 UTC+1 skrev gofly...@gmail.com:
>
>> Yes, that is what I have done, I do have a local copy. That copy does not 
>> play nicely with google drive -I'd like to have a copy on the web to edit 
>> as I have different laptops and am at different locations at times. There 
>> is no upload to the new iddlyhost.com site.
>>
>>
>> On Mon, Mar 1, 2021 at 8:39 PM strikke...@gmail.com  
>> wrote:
>>
>>> Right click the link to your tiddlywiki and select save link as.
>>> At least you will then have a local copy.
>>>
>>>
>>> Birthe
>>>
>>> tirsdag den 2. marts 2021 kl. 05.33.26 UTC+1 skrev gofly...@gmail.com:
>>>
 I must have an old version, the tiddlywiki I have is I believe 
 "standard" from tiddlyspot. There is no "circled tick" - as I see in a 
 newer (?) version. (see: http://heroku.rtfm.tiddlyspot.com/)  I would 
 like to get that to tiddlyhost - I have set up an account there and would 
 like to migrate it there. Any help appreciated. Thanks!

 On Monday, March 1, 2021 at 3:15:35 AM UTC-8 Mat wrote:

> Are you using the regular "circled tick" download button to save it? 
> (You should)
>
> If the file really *is *corrupted, you can export the tiddlers using 
> the AdvancedSearch filter tab. The export button appears between the X 
> and 
> the garbage can, when you enter something into the field. 
>
> Note that you can't open a html file in google drive because it opens 
> as a html text rather than being rendered.
>
> <:-)
>
> On Monday, March 1, 2021 at 7:34:36 AM UTC+1 gofly...@gmail.com wrote:
>
>> I am trying to download my tiddlywiki file from tiddlyspot and use 
>> google drive to edit and run it. But any downloading I try it seems to 
>> get 
>> corrupted. I get an message that says "It appears that this: "TiddlyWiki 
>> has been incorrectly saved. Please see 
>> http://www.tiddlywiki.com/#DownloadSoftware for details"  but that 
>> doesn't go anywhere useful. I can't really edit or save it. Any ideas on 
>> how to do 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/UPmJrctn7b8/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/c59d7e6c-4740-4e03-8045-2f6041253810n%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/693e4868-5454-46cb-a780-e1beddc49c61n%40googlegroups.com.


[tw5] Re: Some more thoughts on linking in TW (aliases, display text, and relationship types: Oh My!)

2021-03-03 Thread Joshua Fontany
If we did add a relationship type to links, it helps to unpack the WikiText 
version of Links into their <$link> widget equivalent.

[[LinkText|CurrentTiddler]] unpacks to the following "parse tree" json in 
the internal javascript
```
{ type: "link", attributes: { to: {type: "string", value: link} }, 
children: [{ type: "text", text: text }
```
which is the equivalent to typing:
```
<$link to="CurrentTiddler"><$text text="LinkText"/>
```

Now, as we want "typed" links to other tiddlers, and probably not to 
external resources (hey, make a tiddler that points there), then we can 
re-use the pattern fro the "extended external link" WikiText, and the 
"extended image" WikiText. It would look something like:

```
[type:relationship[LinkText|CurrentTiddler]]
```
which would then render as
```
{ type: "link", attributes: { to: {type: "string", value: link}, type: 
{type: "string", value: type} }, children: [{ type: "text", text: text }
```
and be the equivalent of typing
```
<$link to="CurrentTiddler" type="relationship"><$text 
text="LinkText"/>
```

So, you could not use referenced (transcluded, macro, variable) data for 
the type in the WikiText version, but you could in the full Widget version.

Something to think about

Best,
Joshua Fontany

On Wednesday, March 3, 2021 at 12:46:09 PM UTC-8 dieg...@gmail.com wrote:

> Hello all,
>
> I thought again about one of my previous posts, and I thought I'd try 
> reposting it and editing it to encourage more conversation/ideas around 
> this topic.
>
> In my mind, *linking* is one of the two major pillars of TW 
> (searching/filtering being the other - why I think a lot and comment a lot 
> about search). If I want to link to a tiddler there are *four* (used to 
> be three) issues of concern:
>
> 1. what I want to type
>
>- Aliases provided by the un-link plugin are magical here! A tiddler 
>with "long title of method" can save me many keystrokes (and potential 
>typos!) if I just type the name of the alias.
>- Critically, this is decoupled from where I want the *link to go*, 
>and what I want it to *render as*. I don't ever want to type "a very 
>long title", or if the core also supports uniqueIDs, I don't want to type 
>timestamps. 
>- Something that I think should be incorporated into the core () 
>(or at least with uni-link) is the Edit-Comptext dropdown plugin 
>. This plugin already 
>lets you define custom dropdown templates, so its natural to incorporate 
>the filters uni-link provides. 
>
>
> 2. where I want the link to go
>
>- If we're not just focusing on aliases for a second, this isn't as 
>straightforward as I initially thought - frequently I want a link to go to 
>a tiddler with a specific title (this is the obvious case).
>- Sometimes I want a link to go to a specific tiddler, *regardless of 
>its title**. *For example, my TW is constantly evolving as my system 
>of knowledge is evolving - I rename things, reorganize, etc 
>*frequently.* If I rename a method, or person, etc. all of my links to 
>this tiddler no longer work 
>- (there have been previous discussions of renaming tiddlers 
>   triggering a search/replace). 
>   - * The recently introduced relink plugin solves this particular 
>   problem! *
>   - I am more interested in being able to link to a tiddler by some 
>kind of unique ID (for example, created timestamp, or another field) - 
> *that 
>way, renaming a tiddler's title does not trigger massive textual changes 
> in 
>the rest of my tiddlers*
>   - I use version control, so it's a bit annoying when I rename one 
>   tiddler, my commit object contains changes to 20 other tiddlers whose 
> links 
>   to this one tiddler also had to change. 
>   - Uni-link address this issue, by introducing a (hopefully) unique 
>   field: *aliases*.
>   - So now I can link to [[coolMethod|?]] *regardless of the actual 
>   title of that tiddler!* This is a wonderful feature!
>
>
> 3. what I want the link to render/display as in view mode
>
>- TW already supports some version of this, as sometimes it's 
>appropriate to render a tiddler's title, other times its caption. I just 
>want to extend this so that the user has more fine-grained control over 
>this. 
>
>
> 4. What kind of relationship I want the link to represent
>
>- Thanks to the illuminating typed links thread 
>, 
>I've come to realize this is also a central concept in linking! 
>- Coupled with the ideas given in the recent "Athens" thread about 
>thinking of your knowledge graph more *formally* as an actual graph, 
>it makes sense to think of the kind of connection you want to represent. 
>
>
> Link Syntax:
> Note: below I introduce some spaces to help with legibility, not paying 
> 

[tw5] Re: Idea: typed links

2021-03-03 Thread Joshua Fontany
That is a really good option.

```
title: !mentioned

<$link to={{!!title}}><$text text={{!!title}}/> <$transclude 
field="mentioned"/>
```

```
title: Alice
mentioned: says HI!

Alice is from Alter-space.
```

```
title: Bob

Bob says hi to Alice, so "{{Alice||!mentioned}}"
```


Unfortunately, this does not generate a "backlink" reference because we are 
using a {{transclusion||template}} to generate the final link widget...

https://tiddlywiki.com/#Hard%20and%20Soft%20Links

A link is soft if it is:

   ...


   - generated by a link widget whose to attribute is a transclusion, macro 
   or variable


Best,
Joshua Fontany
On Wednesday, March 3, 2021 at 10:07:35 AM UTC-8 si wrote:

> @Tones I am struggling to understand exactly what you are suggesting. Are 
> you saying that to imitate Soren's example of [[Alice!mention]], you would 
> create a link to a totally unique tiddler, say [[1234]], then tag that 
> tiddler with "mention", then link from that tiddler to [[Alice]]? So you 
> would have a kind of proxy tiddler that represents the "type" of link?
> On Tuesday, 2 March 2021 at 20:42:33 UTC TW Tones wrote:
>
>> Soren,
>>
>> A Quick answer is to create tiddler for the relationship between two 
>> tiddlers, link to that relationship, which subsequently links to the 
>> related tiddler. Once the relationship tiddler exists exists it is simply a 
>> matter of tagging it with Mention or "relationship". The relationship 
>> tiddler can be numerically named. 
>>
>> Alternatively to making generic relationships and tagging them "mention" 
>> you could make specific relationships tiddlers eg mentions.
>>
>> Regards
>> Tones
>>
>> On Sunday, 28 February 2021 at 06:32:13 UTC+11 Soren Bjornstad wrote:
>>
>>> Occasionally I find myself wishing I could include additional 
>>> information with a link, often describing the exact relationship expressed 
>>> by the link. A basic example would be, in a journal tiddler, I might link 
>>> to a person and want to keep track of whether the person actually 
>>> *participated* in the events being described, or was just *mentioned *in 
>>> them.
>>>
>>> I imagine a syntax something like this:
>>>
>>> Mentioning [[Alice!mention]].
>>> Or [[a person|Alice!mention]].
>>>
>>> Another sensible choice could be to expose this functionality only 
>>> through the <$link> widget, so that no new syntax would need to be 
>>> introduced.
>>>
>>> You would then be able to filter on this metadata through a suffix of 
>>> the links[] or backlinks[] operator, e.g., the filter 
>>> "[[Alice]backlinks:mention[]]" could return only those links to Alice that 
>>> are of the *mention* type. Perhaps something like 
>>> "[linktype[LinkingTiddler],[Alice]]" to retrieve the type value as well 
>>> (could have multiple values if there are multiple links of different types).
>>>
>>> I don't think there is anything you would be able to do with this that 
>>> you can't do with fields, but I think in quite a few cases this would be a 
>>> more convenient syntax. Another advantage in some cases is that the 
>>> metadata would automatically come along with excisions and copy-paste.
>>>
>>> Does this sound interesting to anyone else? Practical?
>>>
>>

-- 
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/c1572893-77c3-4f0d-aebb-2f6c84a6f938n%40googlegroups.com.


Re: [tw5] Re: Two requests for Toggle!

2021-03-03 Thread David Gifford
Thanks! That did it. I thought I had to change .tc-drop-down, since inspect
element showed that as the css for that drop down.

I looked at the cycle operator. There are not enough examples for me to
draw on. I am not a developer on the level of most developers here. I am
more of a user who has picked up just enough to make me dangerous. I learn
by taking existing snippets and figuring out how they work. And I usually
get significant help here. The rather abstract explanations on
tiddlywiki.com rarely help me. I can see enough to know the cycle operator
is what I probably need.


On Wed, Mar 3, 2021 at 6:52 PM Joshua Fontany 
wrote:

> On the CSS z-index targeting, you want to target the div that is
> `position: sticky`, which looks like it is `.hovercontrols`, so:
>
> .hovercontrols {
> z-index: 1000;
> }
>
> Should do the trick. Tested in my DevTools in Chrome on your demo wiki and
> it seems to work.
>
> Best,
> Joshua Fontany
>
> On Wednesday, March 3, 2021 at 4:44:12 PM UTC-8 Joshua Fontany wrote:
>
>> Hi,
>>
>> I really like how this is looking, very customizable. I answered point
>> one in the other thread, but wanted to expand here.
>>
>> On the controls-overlapping bug, you wan to explicitly set a `z-index`
>> for the element in question.
>>
>> https://www.w3schools.com/cssref/pr_pos_z-index.asp
>> *Note:* z-index only works on *positioned elements* (position: absolute,
>> position: relative, position: fixed, or *position: sticky*).
>>
>> I would use a rather large value, like 1000, as this allows "room" for
>> plugin authors to play with z-indexes and you can be fairly confident your
>> controls will come out on top.
>>
>> For the 3-value logic problem with the Gaps stylesheets, I would use the
>> new "cycle" filter operator, which acks as a multi-value toggle:
>>
>> https://tiddlywiki.com/#cycle%20Operator
>>
>> Best,
>> Joshua Fontany
>>
>> On Tuesday, March 2, 2021 at 3:59:43 PM UTC-8 David Gifford wrote:
>>
>>>
>>> Hi everyone
>>>
>>> There are still two nagging things I want fixed for my Toggle! plugin,
>>> but I don't know how to do either.
>>>
>>> 1. I made progress on adding the viewtoolbars even when there is no
>>> visible sidebar. Thanks to a suggestion from Birthe, I used the
>>> sidecontrols plugin and modified it in a number of ways. You can see the
>>> results here: https://giffmex.org/experiments/toggleplus.html
>>>
>>> However, if you click on the more menu of the top tiddler, you will see
>>> that the dropdown is in front of that tiddler, but behind the other
>>> tiddlers. I am wondering how I can fix that. Then the viewtoolbars part
>>> will be complete.
>>>
>>> 2. I have a section in the Toggle! tab:
>>>
>>> *Gaps btwn tiddlers:* Thin ♦ Hide.
>>>
>>> Both 'Thin' and 'Hide' are individual on/off buttons. But they create
>>> confusion, because if either one is on, the other can't be applied. If
>>> 'Thin' gaps is applied, you can't turn on 'Hide' gaps.
>>>
>>> I would like to have a chooser similar in look to the Fixed/fluid, with
>>> three options: default gap size between tiddlers, thin gap size between
>>> tiddlers, hide gaps between tiddlers. Default would remove the
>>> $:/tags/Stylesheet tag from the two stylesheets. Thin would add the tag to
>>> the thin stylesheet and remove it from hide stylesheet. Hide would add the
>>> tag to the hide stylesheet, and remove it from the thin stylesheet.
>>>
>>> Any love I can get on either of these will make me very grateful. This
>>> will make this plugin much better. Thanks in advance, Dave
>>>
>> --
> 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/0LCEaEbJKe4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/ec11c237-606e-4bbb-a126-fd32dd00b75bn%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/CANE%3DBF%2BNq1fzTRTmovttb4L_VDorhV5iBLfPCuXmX7-uxpLrWg%40mail.gmail.com.


[tw5] Re: Two requests for Toggle!

2021-03-03 Thread Joshua Fontany
On the CSS z-index targeting, you want to target the div that is `position: 
sticky`, which looks like it is `.hovercontrols`, so:

.hovercontrols {
z-index: 1000;
}

Should do the trick. Tested in my DevTools in Chrome on your demo wiki and 
it seems to work.

Best,
Joshua Fontany

On Wednesday, March 3, 2021 at 4:44:12 PM UTC-8 Joshua Fontany wrote:

> Hi,
>
> I really like how this is looking, very customizable. I answered point one 
> in the other thread, but wanted to expand here.
>
> On the controls-overlapping bug, you wan to explicitly set a `z-index` for 
> the element in question.
>
> https://www.w3schools.com/cssref/pr_pos_z-index.asp
> *Note:* z-index only works on *positioned elements* (position: absolute, 
> position: relative, position: fixed, or *position: sticky*).
>
> I would use a rather large value, like 1000, as this allows "room" for 
> plugin authors to play with z-indexes and you can be fairly confident your 
> controls will come out on top.
>
> For the 3-value logic problem with the Gaps stylesheets, I would use the 
> new "cycle" filter operator, which acks as a multi-value toggle:
>
> https://tiddlywiki.com/#cycle%20Operator
>
> Best,
> Joshua Fontany
>
> On Tuesday, March 2, 2021 at 3:59:43 PM UTC-8 David Gifford wrote:
>
>>
>> Hi everyone
>>
>> There are still two nagging things I want fixed for my Toggle! plugin, 
>> but I don't know how to do either.
>>
>> 1. I made progress on adding the viewtoolbars even when there is no 
>> visible sidebar. Thanks to a suggestion from Birthe, I used the 
>> sidecontrols plugin and modified it in a number of ways. You can see the 
>> results here: https://giffmex.org/experiments/toggleplus.html
>>
>> However, if you click on the more menu of the top tiddler, you will see 
>> that the dropdown is in front of that tiddler, but behind the other 
>> tiddlers. I am wondering how I can fix that. Then the viewtoolbars part 
>> will be complete.
>>
>> 2. I have a section in the Toggle! tab: 
>>
>> *Gaps btwn tiddlers:* Thin ♦ Hide.  
>>
>> Both 'Thin' and 'Hide' are individual on/off buttons. But they create 
>> confusion, because if either one is on, the other can't be applied. If 
>> 'Thin' gaps is applied, you can't turn on 'Hide' gaps.
>>
>> I would like to have a chooser similar in look to the Fixed/fluid, with 
>> three options: default gap size between tiddlers, thin gap size between 
>> tiddlers, hide gaps between tiddlers. Default would remove the 
>> $:/tags/Stylesheet tag from the two stylesheets. Thin would add the tag to 
>> the thin stylesheet and remove it from hide stylesheet. Hide would add the 
>> tag to the hide stylesheet, and remove it from the thin stylesheet.
>>
>> Any love I can get on either of these will make me very grateful. This 
>> will make this plugin much better. Thanks in advance, Dave
>>
>

-- 
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/ec11c237-606e-4bbb-a126-fd32dd00b75bn%40googlegroups.com.


Re: [tw5] Re: [Plugin announcement]: Toggle! (formerly CleanTids)

2021-03-03 Thread Joshua Fontany
Hi David. I'll expand on this in the other thread.

Best,
Joshua F

On Wednesday, March 3, 2021 at 4:46:42 PM UTC-8 David Gifford wrote:

> Hi Joshua
>
> I couldn't interpret your comments, and since I don't know all the ins and 
> outs of TiddlyWiki CSS, I am flying half-blind. But I even tried 
> .tc-drop-down {position:absolute;z-index:+10;} and it did not fix the 
> problem!
>
>
>
> On Wed, Mar 3, 2021 at 6:32 PM Joshua Fontany  
> wrote:
>
>> The catch: the more menu appears under the other tiddlers! Click the top 
>> tiddler's more menu to see what I mean.
>>
>> The class appears to be .tc-drop-down. Anybody have any ideas on how to 
>> fix that?
>>
>> https://www.w3schools.com/cssref/pr_pos_z-index.asp
>>
>> *Note:* z-index only works on *positioned elements* (position: absolute, 
>> position: relative, position: fixed, or position: sticky).
>> Best,
>> Joshua F
>> On Tuesday, March 2, 2021 at 6:58:44 AM UTC-8 David Gifford wrote:
>>
>>> Okay, I am so close I can taste it!
>>>
>>> https://giffmex.org/experiments/toggleplus.html
>>>
>>> Thanks to Birthe, I used the sidecontrols plugin. But I have made some 
>>> adjustments and will have to rename it and include it in the plugin later.
>>>
>>> The hovering toolbars look great, and appear on hovering anywhere on top.
>>>
>>> The catch: the more menu appears under the other tiddlers! Click the top 
>>> tiddler's more menu to see what I mean.
>>>
>>> The class appears to be .tc-drop-down. Anybody have any ideas on how to 
>>> fix that?
>>>
>>> On Sunday, February 28, 2021 at 11:23:48 PM UTC-6 David Gifford wrote:
>>>

 Hi all

 Yes, you read that right, I finally got off my bum and learned Tinka 
 and created my very first plugin.

 The Toggle! plugin is a sidebar tab that allows you to toggle 
 viewtemplate, edittemplate, sidebar and other visual elements. 

 It has the ability to reduce your tiddlers down to mere boxes of text, 
 with thinner margins, smaller titles, and even reducing or removing the 
 gap 
 between tiddlers. 

 It also has two ways to view backlinks. Don't tell that Stroll guy. Oh 
 wait, that's me.

 Demo and download: https://giffmex.org/gifts/Toggle/toggle.html 

 If you followed my CleanTids experiment, please note: there are some 
 major changes. Also, I totally re-wrote the introductory tiddlers, since I 
 had changed so much. (which are not part of the plugin).

 If you are using CleanTids and want Toggle! instead, first delete the 
 tiddlers listed below from your file. Then add the new Toggle! plugin to 
 your file.

- $:/.giffmex/sidebartabs/Toggle
- $:/.giffmex/ViewTemplate/Backlinks
- $:/.giffmex/ViewTemplate/Transclude
- $:/.giffmex/Stylesheet/CleanTids
- $:/.giffmex/Stylesheet/CleanTidsNoMargin
- $:/.giffmex/Stylesheet/ToggleTab
- $:/core/ui/ListItemTemplate2

 Let me know if you find any glitches. Enjoy. - Dave

 -- 
>> 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/JCPS54RfWeM/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/e8274943-2a7e-4f2a-86f5-c49d64caef33n%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/c9d9e4e6-4310-4ae6-8662-e36f158f0030n%40googlegroups.com.


Re: [tw5] Re: [Plugin announcement]: Toggle! (formerly CleanTids)

2021-03-03 Thread David Gifford
Hi Joshua

I couldn't interpret your comments, and since I don't know all the ins and
outs of TiddlyWiki CSS, I am flying half-blind. But I even tried
.tc-drop-down {position:absolute;z-index:+10;} and it did not fix the
problem!



On Wed, Mar 3, 2021 at 6:32 PM Joshua Fontany 
wrote:

> The catch: the more menu appears under the other tiddlers! Click the top
> tiddler's more menu to see what I mean.
>
> The class appears to be .tc-drop-down. Anybody have any ideas on how to
> fix that?
>
> https://www.w3schools.com/cssref/pr_pos_z-index.asp
>
> *Note:* z-index only works on *positioned elements* (position: absolute,
> position: relative, position: fixed, or position: sticky).
> Best,
> Joshua F
> On Tuesday, March 2, 2021 at 6:58:44 AM UTC-8 David Gifford wrote:
>
>> Okay, I am so close I can taste it!
>>
>> https://giffmex.org/experiments/toggleplus.html
>>
>> Thanks to Birthe, I used the sidecontrols plugin. But I have made some
>> adjustments and will have to rename it and include it in the plugin later.
>>
>> The hovering toolbars look great, and appear on hovering anywhere on top.
>>
>> The catch: the more menu appears under the other tiddlers! Click the top
>> tiddler's more menu to see what I mean.
>>
>> The class appears to be .tc-drop-down. Anybody have any ideas on how to
>> fix that?
>>
>> On Sunday, February 28, 2021 at 11:23:48 PM UTC-6 David Gifford wrote:
>>
>>>
>>> Hi all
>>>
>>> Yes, you read that right, I finally got off my bum and learned Tinka and
>>> created my very first plugin.
>>>
>>> The Toggle! plugin is a sidebar tab that allows you to toggle
>>> viewtemplate, edittemplate, sidebar and other visual elements.
>>>
>>> It has the ability to reduce your tiddlers down to mere boxes of text,
>>> with thinner margins, smaller titles, and even reducing or removing the gap
>>> between tiddlers.
>>>
>>> It also has two ways to view backlinks. Don't tell that Stroll guy. Oh
>>> wait, that's me.
>>>
>>> Demo and download: https://giffmex.org/gifts/Toggle/toggle.html
>>>
>>> If you followed my CleanTids experiment, please note: there are some
>>> major changes. Also, I totally re-wrote the introductory tiddlers, since I
>>> had changed so much. (which are not part of the plugin).
>>>
>>> If you are using CleanTids and want Toggle! instead, first delete the
>>> tiddlers listed below from your file. Then add the new Toggle! plugin to
>>> your file.
>>>
>>>- $:/.giffmex/sidebartabs/Toggle
>>>- $:/.giffmex/ViewTemplate/Backlinks
>>>- $:/.giffmex/ViewTemplate/Transclude
>>>- $:/.giffmex/Stylesheet/CleanTids
>>>- $:/.giffmex/Stylesheet/CleanTidsNoMargin
>>>- $:/.giffmex/Stylesheet/ToggleTab
>>>- $:/core/ui/ListItemTemplate2
>>>
>>> Let me know if you find any glitches. Enjoy. - Dave
>>>
>>> --
> 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/JCPS54RfWeM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/e8274943-2a7e-4f2a-86f5-c49d64caef33n%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/CANE%3DBFKxznztATHJF2Y3bp%3D0W9oC6CEg-iVq1QZx-xc-kz2gWQ%40mail.gmail.com.


[tw5] Re: Two requests for Toggle!

2021-03-03 Thread Joshua Fontany
Hi,

I really like how this is looking, very customizable. I answered point one 
in the other thread, but wanted to expand here.

On the controls-overlapping bug, you wan to explicitly set a `z-index` for 
the element in question.

https://www.w3schools.com/cssref/pr_pos_z-index.asp
*Note:* z-index only works on *positioned elements* (position: absolute, 
position: relative, position: fixed, or *position: sticky*).

I would use a rather large value, like 1000, as this allows "room" for 
plugin authors to play with z-indexes and you can be fairly confident your 
controls will come out on top.

For the 3-value logic problem with the Gaps stylesheets, I would use the 
new "cycle" filter operator, which acks as a multi-value toggle:

https://tiddlywiki.com/#cycle%20Operator

Best,
Joshua Fontany

On Tuesday, March 2, 2021 at 3:59:43 PM UTC-8 David Gifford wrote:

>
> Hi everyone
>
> There are still two nagging things I want fixed for my Toggle! plugin, but 
> I don't know how to do either.
>
> 1. I made progress on adding the viewtoolbars even when there is no 
> visible sidebar. Thanks to a suggestion from Birthe, I used the 
> sidecontrols plugin and modified it in a number of ways. You can see the 
> results here: https://giffmex.org/experiments/toggleplus.html
>
> However, if you click on the more menu of the top tiddler, you will see 
> that the dropdown is in front of that tiddler, but behind the other 
> tiddlers. I am wondering how I can fix that. Then the viewtoolbars part 
> will be complete.
>
> 2. I have a section in the Toggle! tab: 
>
> *Gaps btwn tiddlers:* Thin ♦ Hide.  
>
> Both 'Thin' and 'Hide' are individual on/off buttons. But they create 
> confusion, because if either one is on, the other can't be applied. If 
> 'Thin' gaps is applied, you can't turn on 'Hide' gaps.
>
> I would like to have a chooser similar in look to the Fixed/fluid, with 
> three options: default gap size between tiddlers, thin gap size between 
> tiddlers, hide gaps between tiddlers. Default would remove the 
> $:/tags/Stylesheet tag from the two stylesheets. Thin would add the tag to 
> the thin stylesheet and remove it from hide stylesheet. Hide would add the 
> tag to the hide stylesheet, and remove it from the thin stylesheet.
>
> Any love I can get on either of these will make me very grateful. This 
> will make this plugin much better. Thanks in advance, Dave
>

-- 
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/78ccf7bd-cafc-4b69-bab9-a1d43d4073e0n%40googlegroups.com.


[tw5] Re: [Plugin announcement]: Toggle! (formerly CleanTids)

2021-03-03 Thread Joshua Fontany
The catch: the more menu appears under the other tiddlers! Click the top 
tiddler's more menu to see what I mean.

The class appears to be .tc-drop-down. Anybody have any ideas on how to fix 
that?

https://www.w3schools.com/cssref/pr_pos_z-index.asp

*Note:* z-index only works on *positioned elements* (position: absolute, 
position: relative, position: fixed, or position: sticky).
Best,
Joshua F
On Tuesday, March 2, 2021 at 6:58:44 AM UTC-8 David Gifford wrote:

> Okay, I am so close I can taste it!
>
> https://giffmex.org/experiments/toggleplus.html
>
> Thanks to Birthe, I used the sidecontrols plugin. But I have made some 
> adjustments and will have to rename it and include it in the plugin later.
>
> The hovering toolbars look great, and appear on hovering anywhere on top.
>
> The catch: the more menu appears under the other tiddlers! Click the top 
> tiddler's more menu to see what I mean.
>
> The class appears to be .tc-drop-down. Anybody have any ideas on how to 
> fix that?
>
> On Sunday, February 28, 2021 at 11:23:48 PM UTC-6 David Gifford wrote:
>
>>
>> Hi all
>>
>> Yes, you read that right, I finally got off my bum and learned Tinka and 
>> created my very first plugin.
>>
>> The Toggle! plugin is a sidebar tab that allows you to toggle 
>> viewtemplate, edittemplate, sidebar and other visual elements. 
>>
>> It has the ability to reduce your tiddlers down to mere boxes of text, 
>> with thinner margins, smaller titles, and even reducing or removing the gap 
>> between tiddlers. 
>>
>> It also has two ways to view backlinks. Don't tell that Stroll guy. Oh 
>> wait, that's me.
>>
>> Demo and download: https://giffmex.org/gifts/Toggle/toggle.html 
>>
>> If you followed my CleanTids experiment, please note: there are some 
>> major changes. Also, I totally re-wrote the introductory tiddlers, since I 
>> had changed so much. (which are not part of the plugin).
>>
>> If you are using CleanTids and want Toggle! instead, first delete the 
>> tiddlers listed below from your file. Then add the new Toggle! plugin to 
>> your file.
>>
>>- $:/.giffmex/sidebartabs/Toggle
>>- $:/.giffmex/ViewTemplate/Backlinks
>>- $:/.giffmex/ViewTemplate/Transclude
>>- $:/.giffmex/Stylesheet/CleanTids
>>- $:/.giffmex/Stylesheet/CleanTidsNoMargin
>>- $:/.giffmex/Stylesheet/ToggleTab
>>- $:/core/ui/ListItemTemplate2
>>
>> Let me know if you find any glitches. Enjoy. - Dave
>>
>>

-- 
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/e8274943-2a7e-4f2a-86f5-c49d64caef33n%40googlegroups.com.


[tw5] Re: Athens: a VC backed, open-source Roam competitor

2021-03-03 Thread Soren Bjornstad
My conclusion 
 is that 
backlinks are not necessary, but they're also very helpful in many 
applications (and really not that hard to do right if you're building a 
notes application). I do think that saying the "thing that Roam got right" 
is bidirectional linking is pretty silly, though, especially when they go 
on to talk about this being the core of a "graph-based" system...have they 
ever heard of directed graphs? Evidence that being able to follow the links 
in both directions is the most important key to building good notes seems 
nonexistent to me.

IMO the key to Roam/TW/other powerful notes systems is (1) *modeling* (ability 
to lay out and relate individual notes however makes sense) and (2) *reuse* 
(not 
limited to just linking between things and transcluding entire chunks of 
text, but getting smaller pieces of text, using templates, etc.). Linking 
does help with both of those things, but you could imagine other ways to 
achieve them.

On Wednesday, March 3, 2021 at 7:54:46 AM UTC-6 si wrote:

> TiddlyTweeter wrote:
>
>> Right. Sometimes they are useful--basically "going back-and-forth". 
>> But I think the real use cases are quite limited.
>>
>
> I disagree, this is a very useful application of backlinks in my opinion: 
> https://notes.andymatuschak.org/Backlinks_can_be_used_to_implicitly_define_nodes_in_knowledge_management_systems
>  
>

-- 
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/7f629fd8-b929-43df-bb7e-05d477c0d885n%40googlegroups.com.


[tw5] Re: [Demo] Inspect macro definitions

2021-03-03 Thread clutterstack
For Mohammad: I am still wading through the mess I made, but I made a tab 
for Tiddler Commander you can try here 
.
 
This is *totally not ready for prime time and will probably not stay in 
this wiki *but I'd be interested in your feedback as to how you'd like 
something like this to work.

There are two plugins at the moment, to make this work: "selector" and 
"showmacrodef". One gives me a macro for a dropdown selector. The other 
gives me a JavaScript widget and a JS macro, for displaying a variable's 
definition/value and a sample macrocall (if applicable), respectively, as 
well as a tool that makes a tab for Tiddler Commander to inspect for 
variable definitions within a filtered list of tiddlers. There is a tiddler 
that will do something similar without having Commander installed, but it's 
not finished.

The Commander tab does something like this, starting with the searchfilter 
from the top part of the Commander UI:

You type into the selector and it looks through those tiddlers for lines 
with "\define ", followed by something that contains the user input, 
followed by "(". From that, it rebuilds the macro name on that line. Each 
macro name it deduces from this, it lists in the dropdown as a selection 
option. 

Once you select a macro name, it returns a list of the tiddlers that 
contain a "\define" line for that macro name. Note that it's possible for a 
tiddler to have a line like that, but NOT be defining anything (e.g. within 
a code block). To check, you choose the tiddler with a radio button, and 
the macro gives you a display.

Here's where it checks that there's a macro definition in the selected 
tiddler: it redefines that macro using a set widget, then imports the 
variables from the candidate source tiddler. If the macro now has a 
definition, then that tiddler had a real definition in it, and this is 
displayed using the aforementioned JS widget.

I note that the filter in the dropdown interface is pretty slow. Right now 
it's showing all candidate source tiddlers in the dropdown...maybe not a 
good tradeoff performance- and space-wise.

Any feedback welcome.

Best,
Chris

On Tuesday, March 2, 2021 at 11:27:10 AM UTC-5 clutterstack wrote:

> Thanks, David.
>
> On Sunday, February 28, 2021 at 6:09:13 PM UTC-5 David Gifford wrote:
>
>> Added this to the toolmap, both in the "Understanding TiddlyWiki" section 
>> and the "Advanced / developer" section
>>
>> On Friday, February 26, 2021 at 2:17:25 PM UTC-6 clutterstack wrote:
>>
>>> Hi all,
>>>
>>> I was playing with dropdowns and...things...and I built something that I 
>>> wished I had last summer, and which will help me keep track of current 
>>> variable and macro definitions/values. 
>>>
>>> A first version to play with is at 
>>> https://clutterstack.github.io/can-tw/clutterstack-TW5-com/#Inspect%20variable%20and%20macro%20definitions
>>>
>>> It's not perfect, but I'm kind of pleased. Also not documented or 
>>> packaged.
>>>
>>> I ended up writing two javascript macros to access variables and their 
>>> properties -- if I could have done this using filters, I'd love to know 
>>> what I missed! I didn't just want to search tiddlers for "\define" etc, 
>>> because sometimes I put that stuff in code blocks as content.
>>>
>>> Also, if there was a pre-existing public solution for this, I'd also 
>>> like to see it. There must be a few out there, at least in private wikis.
>>>
>>> Best,
>>> Chris
>>>
>>

-- 
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/439a2708-886a-4d28-9988-1e14678c11f9n%40googlegroups.com.


[tw5] Some more thoughts on linking in TW (aliases, display text, and relationship types: Oh My!)

2021-03-03 Thread dieg...@gmail.com
Hello all,

I thought again about one of my previous posts, and I thought I'd try 
reposting it and editing it to encourage more conversation/ideas around 
this topic.

In my mind, *linking* is one of the two major pillars of TW 
(searching/filtering being the other - why I think a lot and comment a lot 
about search). If I want to link to a tiddler there are *four* (used to be 
three) issues of concern:

1. what I want to type

   - Aliases provided by the un-link plugin are magical here! A tiddler 
   with "long title of method" can save me many keystrokes (and potential 
   typos!) if I just type the name of the alias.
   - Critically, this is decoupled from where I want the *link to go*, and 
   what I want it to *render as*. I don't ever want to type "a very long 
   title", or if the core also supports uniqueIDs, I don't want to type 
   timestamps. 
   - Something that I think should be incorporated into the core () (or 
   at least with uni-link) is the Edit-Comptext dropdown plugin 
   . This plugin already lets 
   you define custom dropdown templates, so its natural to incorporate the 
   filters uni-link provides. 


2. where I want the link to go

   - If we're not just focusing on aliases for a second, this isn't as 
   straightforward as I initially thought - frequently I want a link to go to 
   a tiddler with a specific title (this is the obvious case).
   - Sometimes I want a link to go to a specific tiddler, *regardless of 
   its title**. *For example, my TW is constantly evolving as my system of 
   knowledge is evolving - I rename things, reorganize, etc *frequently.* If 
   I rename a method, or person, etc. all of my links to this tiddler no 
   longer work 
   - (there have been previous discussions of renaming tiddlers triggering 
  a search/replace). 
  - * The recently introduced relink plugin solves this particular 
  problem! *
  - I am more interested in being able to link to a tiddler by some 
   kind of unique ID (for example, created timestamp, or another field) - *that 
   way, renaming a tiddler's title does not trigger massive textual changes in 
   the rest of my tiddlers*
  - I use version control, so it's a bit annoying when I rename one 
  tiddler, my commit object contains changes to 20 other tiddlers whose 
links 
  to this one tiddler also had to change. 
  - Uni-link address this issue, by introducing a (hopefully) unique 
  field: *aliases*.
  - So now I can link to [[coolMethod|?]] *regardless of the actual 
  title of that tiddler!* This is a wonderful feature!
   

3. what I want the link to render/display as in view mode

   - TW already supports some version of this, as sometimes it's 
   appropriate to render a tiddler's title, other times its caption. I just 
   want to extend this so that the user has more fine-grained control over 
   this. 
   

4. What kind of relationship I want the link to represent

   - Thanks to the illuminating typed links thread 
   , 
   I've come to realize this is also a central concept in linking! 
   - Coupled with the ideas given in the recent "Athens" thread about 
   thinking of your knowledge graph more *formally* as an actual graph, it 
   makes sense to think of the kind of connection you want to represent. 


Link Syntax:
Note: below I introduce some spaces to help with legibility, not paying 
attention to the fact that they actually aren't in the syntax.

Currently, the core supports two link types:

   - [[ link target ]]
   - [[ Display text | link target ]]

Uni-link introduces two more:

   - [[ alias name |?]] - links to a target that has 'alias name' in its 
   aliases field. Note you did *not* specify the target name at all! Only 
   its alias! 
   - [[ alias name |? fieldNameToRender]] - links as above, but displays 
   not the alias name or the target name, but the content of the field given

We see that the last uni-link syntax gives the following:

   - ✅ lets me type a short alias for any target 
   - ✅ allows me to NOT have to specify the target tiddler with a long name
   - ✅ changing the target tiddler name does NOT affect any alias links
   - ✅ lets me easily specify what I want the link to display/render as

The only missing feature (besides the autocomplete given by the 
EditComptext plugin) is specifying the relationship type. 

I have no idea what syntax would "make the most sense" but I can propose 
some: 

   - relationshipType::[[ aliasName |? fieldNameToRender]] - like in Roam?
   - [[ aliasName |? fieldNameToRender | relationshipType]]

I'll let others think of a better syntax given TWs internals. 

I'm anxious to hear others thoughts! 

Diego

-- 
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: How do I print the current tiddler only?

2021-03-03 Thread Mat
Thanx Eric!

On Wednesday, March 3, 2021 at 6:49:48 PM UTC+1 Eric Shulman wrote:

> On Wednesday, March 3, 2021 at 9:22:47 AM UTC-8 Mat wrote:
>
>> ...without closing all other tiddlers and using the Print river page 
>> button?
>
>
> From the tiddler's "more" menu, choose "open in new window".  Then, from 
> that window, right-click to display the system popup menu and select 
> "print..."  Depending upon how your system and printer are configured, you 
> might then see a "print preview" window.  Follow the normal steps to 
> confirm and send the output to your selected printer device.
>
> Note: the above steps are for a typical Windows system.  I assume that 
> something similar can be achieved when using an Apple or Unix/Linux system.
>
> -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/60d65ea4-cfc6-42ab-b894-43ed1c19ea39n%40googlegroups.com.


[tw5] Re: Breadcrubs (tiddlersbar) browser-like funcionality

2021-03-03 Thread History Buff
Ton,

Thanks for the suggestions. I will see where they take me and let you know.

Damon

On Wednesday, March 3, 2021 at 2:37:50 AM UTC-7 Ton Gerner wrote:

> Hi Damon,
>
> What strikes me is the tiddlersbar displays behind the tiddlers; normally 
> it is the other way around.
> It can be caused by leftovers from the old breadcrumbs plugin: look for 
> overridden shadow tiddlers 
> (Controlpanel > Info > Basics; click the search at 'Number of overridden 
> shadow tiddlers).
> Look for $:/plugins/tongerner/breadcrumbs/... and 
> $:/plugins/tongerner/layout_adjustment/...
> Delete all these overridden shadow tiddlers.
>
> Note that the tiddlersbar plugin and the matching layout plugin will have 
> overridden shadow tiddlers as well ($:/plugins/tg/...)!
>
> Check if you have the newest versions of the Tiddlersbar plugin (v 0.0.21) 
> and Layout tweaks plugin (v 0.5.4) available at 
> www.tongerner.nl/TW5/TW5_playground.html. In case of upgrading be sure to 
> delete overridden shadow tiddlers of both plugins (if required note down 
> adjusted settings).
>
> The position of the tiddlersbar is controlled by the Tiddlerbar settings: 
> Left Tiddlersbar and Top Tiddlersbar.
>
> Hope that helps,
>
> Ton
>
> On Wednesday, March 3, 2021 at 3:38:47 AM UTC+1 History Buff wrote:
>
>> Hey Ton,
>>
>> I tried your Tiddlersbar plugin today and am having an interesting issue 
>> (see screenshot). You can see on the left side that the tab for the open 
>> tiddlers is hidden behind the current tiddler. The only way I can make the 
>> tabs visible is to make the story top position at least 90px which puts a 
>> huge gap between the menubar and the top of the tabs. I can't for the life 
>> of me figure out how to move the tiddlersbar. I've used the inspect feature 
>> in Chrome and cannot make it budge. I had just tried your deprecated 
>> Breadcrumbs plugin when I found your updated one so maybe there's something 
>> left over from uninstalling that? Any help would be greatly appreciated. 
>> I'm usually pretty good at finding style type issues, but this one has me 
>> stumped.
>>
>> Damon
>>
>> [image: Tiddlersbar problem.png]
>>
>> On Saturday, February 6, 2021 at 2:36:58 AM UTC-7 Ton Gerner wrote:
>>
>>> Hi,
>>>
>>> Glad you do like my plugin and nice to see how you customized it.
>>> According your questions I have to say it is beyond my capabilities. 
>>> Others may chime in with good ideas.
>>>
>>> Just for the record: since TiddlySpot cannot be used anymore, I decided 
>>> to host my TW5 stuff at my Raspberry Pi home server available at 
>>> http://www.tongerner.nl/TW5/TW5_index.html
>>>
>>> Cheers,
>>>
>>> Ton
>>>
>>>
>>>
>>> On Saturday, February 6, 2021 at 9:26:07 AM UTC+1 bartosz.w...@gmail.com 
>>> wrote:
>>>
 Oooo. Seems promising. Thank You very much.

 piątek, 5 lutego 2021 o 21:37:45 UTC+1 Odin napisał(a):

> Hi!
>
> About the dynamic width of the tabs, shrinking when there are more 
> tabs. I think this can be done with CSS flexbox. Check out the 
> flex-shrink 
> property:
> https://css-tricks.com/snippets/css/a-guide-to-flexbox/
>
> Op vrijdag 5 februari 2021 om 16:04:56 UTC+1 schreef 
> bartosz.w...@gmail.com:
>
>> Hello there.
>>
>> I have been using TW since late December. I have no real experience 
>> with programming, but with help of Google and some lucky guessing I have 
>> managed to do quite well.
>>
>> But still some things are beyond me, so I would be grateful for Your 
>> help. Could you tell me how could I program:
>>
>> 1) A *funcional max width *of breadcrumbs tabs. As I thought 
>> max-width causes text to reach outside of tabs.
>>
>> 2) A *dynamic width *of breadcrumbs tabs e.g. when there are 
>> enough tabs to reach right side of the screen they would get thinner 
>> with 
>> each additional tab till some minimal width.
>>
>> 3) An ability to *see the end *of tiddlers titles, while in less 
>> wide form. It could be especial useful with shadow and system ones.
>>
>> I am looking forward to seeing your answers.
>>
>>  Lastly I will show off my work and hope that you will find it 
>> interesting. Tongerner did truly an amazing job with this plugin and 
>> customizing it for my personal use was a great experience.
>>
>> I really like boxed buttons style, so I made breadcrumbs similar in 
>> appearance and added on hover highlight. The current tiddler is an 
>> exception of course. X buttons also have this highlight instead of 
>> „going 
>> bold” and excess tabs will go outside the screen instead of overflowing 
>> into the lower row. And I also added impromptu dividers between toolsbar 
>> butons.
>> [image: TW.png]
>>
>

-- 
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: ViewTemplate: remove an element?

2021-03-03 Thread Erwan
This is perfect! Thank you very much Eric :)

Erwan

On Wednesday, March 3, 2021 at 6:02:09 PM UTC Eric Shulman wrote:

> On Wednesday, March 3, 2021 at 9:27:33 AM UTC-8 Erwan wrote:
>
>> I'm wondering if there is a simple way *not* to display some elements 
>> (such as the date and list of tags) when a particular tiddler is rendered?
>>
> The only way I can think of is to modify the system tiddler, but it's not 
>> very convenient.
>> Use case: I print my TiddlyWiki CV to a pdf file. I have a single tiddler 
>> which contains the full content, but the header looks a bit odd in the pdf.
>>
>
> Rather than removing the unwanted tiddler elements, you can *hide* them 
> using CSS.  To learn the class names of the elements, you can display the 
> tiddler in question and then right-click on the elements in question and 
> select "Inspect" (note: the exact menu item text can be somewhat different 
> depending upon your browser).
>
> For your stated use-case, the elements are ".tc-subtitle" and 
> ".tc-tags-wrapper".
>
> Then, assuming the tiddler has a title of "TiddlyWiki CV", you can create 
> a tiddler, e.g. "MyCustomStyles", tagged with $:/tags/Stylesheet, containing
> [data-tiddler-title="TiddlyWiki CV"] .tc-subtitle,
> [data-tiddler-title="TiddlyWiki CV"] .tc-tags-wrapper
>{ display:none; }
>
> That's it.
>
> 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/21d693a0-ee01-47f2-84ab-88dec7454ae8n%40googlegroups.com.


[tw5] Re: Idea: typed links

2021-03-03 Thread si
@Tones I am struggling to understand exactly what you are suggesting. Are 
you saying that to imitate Soren's example of [[Alice!mention]], you would 
create a link to a totally unique tiddler, say [[1234]], then tag that 
tiddler with "mention", then link from that tiddler to [[Alice]]? So you 
would have a kind of proxy tiddler that represents the "type" of link?
On Tuesday, 2 March 2021 at 20:42:33 UTC TW Tones wrote:

> Soren,
>
> A Quick answer is to create tiddler for the relationship between two 
> tiddlers, link to that relationship, which subsequently links to the 
> related tiddler. Once the relationship tiddler exists exists it is simply a 
> matter of tagging it with Mention or "relationship". The relationship 
> tiddler can be numerically named. 
>
> Alternatively to making generic relationships and tagging them "mention" 
> you could make specific relationships tiddlers eg mentions.
>
> Regards
> Tones
>
> On Sunday, 28 February 2021 at 06:32:13 UTC+11 Soren Bjornstad wrote:
>
>> Occasionally I find myself wishing I could include additional information 
>> with a link, often describing the exact relationship expressed by the link. 
>> A basic example would be, in a journal tiddler, I might link to a person 
>> and want to keep track of whether the person actually *participated* in 
>> the events being described, or was just *mentioned *in them.
>>
>> I imagine a syntax something like this:
>>
>> Mentioning [[Alice!mention]].
>> Or [[a person|Alice!mention]].
>>
>> Another sensible choice could be to expose this functionality only 
>> through the <$link> widget, so that no new syntax would need to be 
>> introduced.
>>
>> You would then be able to filter on this metadata through a suffix of the 
>> links[] or backlinks[] operator, e.g., the filter 
>> "[[Alice]backlinks:mention[]]" could return only those links to Alice that 
>> are of the *mention* type. Perhaps something like 
>> "[linktype[LinkingTiddler],[Alice]]" to retrieve the type value as well 
>> (could have multiple values if there are multiple links of different types).
>>
>> I don't think there is anything you would be able to do with this that 
>> you can't do with fields, but I think in quite a few cases this would be a 
>> more convenient syntax. Another advantage in some cases is that the 
>> metadata would automatically come along with excisions and copy-paste.
>>
>> Does this sound interesting to anyone else? Practical?
>>
>

-- 
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/d4c5b87f-2ae4-4f72-83d6-426f75accc69n%40googlegroups.com.


[tw5] Re: ViewTemplate: remove an element?

2021-03-03 Thread Eric Shulman
On Wednesday, March 3, 2021 at 9:27:33 AM UTC-8 Erwan wrote:

> I'm wondering if there is a simple way *not* to display some elements 
> (such as the date and list of tags) when a particular tiddler is rendered?
>
The only way I can think of is to modify the system tiddler, but it's not 
> very convenient.
> Use case: I print my TiddlyWiki CV to a pdf file. I have a single tiddler 
> which contains the full content, but the header looks a bit odd in the pdf.
>

Rather than removing the unwanted tiddler elements, you can *hide* them 
using CSS.  To learn the class names of the elements, you can display the 
tiddler in question and then right-click on the elements in question and 
select "Inspect" (note: the exact menu item text can be somewhat different 
depending upon your browser).

For your stated use-case, the elements are ".tc-subtitle" and 
".tc-tags-wrapper".

Then, assuming the tiddler has a title of "TiddlyWiki CV", you can create a 
tiddler, e.g. "MyCustomStyles", tagged with $:/tags/Stylesheet, containing
[data-tiddler-title="TiddlyWiki CV"] .tc-subtitle,
[data-tiddler-title="TiddlyWiki CV"] .tc-tags-wrapper
   { display:none; }

That's it.

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/a51b5ffd-d621-4caf-9be5-e39cb7a06db7n%40googlegroups.com.


[tw5] Re: How do I print the current tiddler only?

2021-03-03 Thread Eric Shulman
On Wednesday, March 3, 2021 at 9:22:47 AM UTC-8 Mat wrote:

> ...without closing all other tiddlers and using the Print river page 
> button?


>From the tiddler's "more" menu, choose "open in new window".  Then, from 
that window, right-click to display the system popup menu and select 
"print..."  Depending upon how your system and printer are configured, you 
might then see a "print preview" window.  Follow the normal steps to 
confirm and send the output to your selected printer device.

Note: the above steps are for a typical Windows system.  I assume that 
something similar can be achieved when using an Apple or Unix/Linux system.

-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/d5a4884e-aac1-4373-b40f-b83a765c56b8n%40googlegroups.com.


[tw5] Re: Ran into some macro development subtleties

2021-03-03 Thread Hylke W. van Dijk
Thank you Saq for the clarifications, much appreciated.

Re (1)
My sandbox tiddlywiki in tiddlydesktop 0.0.14 is based on tiddly wiki 
5.1.23.  The effects I observe thus fit your intuition perfectly.

Re(2)
Verified: 
   single quotes ('$p$'): work
   double quotes("$p$"): work
   triple double quotes ("""$p$"""): work
   triple single quotes ('''$p$'''): fail

Re(3)
Spot on explanation of the observed pattern.

Cheers,
-hw




On Wednesday, March 3, 2021 at 10:35:03 AM UTC+1 saq.i...@gmail.com wrote:

> Re: (1) and splitregexp, use of capture groups isn't officially supported 
> in regular expressions in filters with the exception of the new 
> search-replace operator. This probably needs to be better documented. 
>
> However what is interesting here is that you report that it works in 
> TiddlyDesktop. Was it the same TiddlyWiki file used in FF58 and in 
> TiddlyDesktop? Or was the TiddlyDesktop file 5.1.22 or 5.1.23 pre-release?
>
> Late in the 5.1.23 pre-release phase, filters were switched to using a 
> linked list implementation instead of an array for performance purposes. I 
> wonder if perhaps the new linked list implementation is less tolerant than 
> than the old implementation for undefined values, and that there has been a 
> regression.
>
>
> Re: (2) use single, double or triple quotes around arguments. The 
> <<__x__>> syntax was introduced precisely for those situations where 
> getting the quoting of parameters correct might be tricky.
>
>
> Re: (3)  One of the important differences between the Set and Vars widgets 
> is that:
>
>-  the Set widget directly supports filters and (used in the filtered 
>item variable assignment form) assigns a title list 
> to the variable (which can hold 
>multiple titles).
>-  However the Vars widget does not directly support filters and using 
>a filtered attribute assignment using the triple brace syntax assigns the 
>first title from the filter results to the variable. To be clear this 
> isn't 
>really down to the Vars widget but rather the way filtered attributes 
>for widgets are evaluated 
>
> ,
>  
>i.e. attribute={{{ filter }}} which always assigns the first title from 
> the 
>filter results.
>
> Hope this helps,
> Saq
> On Tuesday, March 2, 2021 at 10:18:33 PM UTC+1 hwva...@gmail.com wrote:
>
>> Good day,
>>
>> Triggered by the announcement of Tamasha I decided to dig into TW5 some 
>> more. Therefore I created a --javascript free -- plugin for easy import and 
>> display of spreadsheet data, or more generally dataframes. Along the way I 
>> ran into some subtleties / miscomprehensions of the tiddlywiki framework , 
>> which might be of interest to others. A demonstration of the dataframe 
>> plugin and  a working description of three subtleties in action is 
>> available at: https://hwvandijk.bitbucket.io/tw-dataframe/
>>
>> 1. splitregexp that crashes the Javascript engine of Firefox 58, but 
>> works on tiddlydesktop 0.14 (chromedriver 81)
>> I used a (elaborate) regular expression in splitregexp to split "ABC123" 
>> in to "123 ABC" in one go. 
>> i.e.
>> regexp="([A-Z]+(?=[0-9]+))|([0-9]+(?=[A-Z]+))"  
>> and filter="[splitregexpreverse[]]"
>>
>> I get a Javascript error: *uncaught exception: Linked List only accepts 
>> string values, not undefined *
>> The problem has been solved by using a more straightforward regular 
>> expression in a  search-replace:regexp filter operator.
>>
>> 2. $x$ and <<__x__>> or similar but not identical
>> I had problems using macro parameters in filters. Therefor I cast them in 
>> a <$set> or <$vars> variable, either through $x$ or <<__x__>>. The former 
>> works fine unless a parameter x that is passed to the macro contains 
>> slashes.
>> < works fine, <> fails. It 
>> renders the <$vars expression> literally in the page.
>>
>> 3. <$set filter:"filter" variable="var"> and <$vars var={{{ filter }}}> 
>> give different results
>> To specify the index/columns of the dataframe  to be displayed I use a 
>> list of ranges. Meaning that a spec of "1,3-5,7" should be transformed into 
>> "1,1 3,5 7,7" such that when you feed these entries one by one into the 
>> range operator you get [1 2 3 4 5 7]. 
>> However with:
>>
>> <$vars p=<<__param__>> 
>>   regexp="^(\d+)$" > 
>> <$set name="setref" 
>> filter="[split[,]search-replace:g:regexp,[$1,$1]]" >
>> <$vars varsref={{{ [split[,]search-replace:g:regexp,[$1,$1]] 
>> }}} >
>>
>> The variables *setref* and *varsref* are not identical. *varsref* is 
>> wrong, you should use *setref*.
>> varsref only works for simple specifications, such as "7". It looks like 
>> *varsref 
>> *does not obey the g (global) specifier.
>>  
>> Sorry for the long mail, but hopefully someone can point out my 
>> misconceptions or file a bug if that is appropriate.
>>
>> Cheers,

[tw5] ViewTemplate: remove an element?

2021-03-03 Thread Erwan

Hi everybody,

I'm wondering if there is a simple way *not* to display some elements (such 
as the date and list of tags) when a particular tiddler is rendered? The 
only way I can think of is to modify the system tiddler, but it's not very 
convenient.

Use case: I print my TiddlyWiki CV to a pdf file. I have a single tiddler 
which contains the full content, but the header looks a bit odd in the pdf.

Thanks!

Cheers
Erwan



-- 
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/c3627ddd-7145-4a61-b8b7-bc26a30aa26bn%40googlegroups.com.


[tw5] How do I print the current tiddler only?

2021-03-03 Thread Mat
...without closing all other tiddlers and using the Print river page button?

Thanx.

<:-)

-- 
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/883e4644-ddca-43ea-b750-1f2bf7bb00e3n%40googlegroups.com.


[tw5] Re: How to embed a tiddler(s) inside a gmail message

2021-03-03 Thread Mohamed Amin
Thanks Mat for the video, it has a VERY nice tips, specially the "inline 
CSS tool"

On Wednesday, March 3, 2021 at 3:09:28 PM UTC+2 Mat wrote:

> This is (1) almost off topic and (2) way too intricate to do a lot...
>
> ...but you'll agree it's interesting.
>
> I did NOT try this out but I believe it can be used to send a tiddler, 
> even a several, directly in a gmail message.
>
> First you must export your tiddlers into HTML format and open the result 
> in a text editor so you see the code. (Unfortunately it contains the FULL 
> TW css - discuss here 
> ). Then do 
> this:
>
> https://www.youtube.com/watch?v=ZSSqsEVsChc
>
> <:-)
>
>
>

-- 
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/ad4eb7ba-0f28-420a-8be8-37840aa63a2bn%40googlegroups.com.


[tw5] Re: Athens: a VC backed, open-source Roam competitor

2021-03-03 Thread si
TiddlyTweeter wrote:

> Right. Sometimes they are useful--basically "going back-and-forth". 
> But I think the real use cases are quite limited.
>

I disagree, this is a very useful application of backlinks in my opinion: 
https://notes.andymatuschak.org/Backlinks_can_be_used_to_implicitly_define_nodes_in_knowledge_management_systems
 

-- 
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/f72d72be-192b-4f4e-828d-4c0946db4a0bn%40googlegroups.com.


[tw5] Re: Macro: How convert wikified macro output as a "List"

2021-03-03 Thread Mohamed Amin
Thanks a lot Mat for your notes/pointers, I really appreciate it.

Regarding the "4 brackets"; actually I got it from this conversation 
 , and 
it works OK with me, and if I used only 2 brackets, the "enlist" doesn't 
split the input variable.

Thanks again for your time here
On Wednesday, March 3, 2021 at 11:32:34 AM UTC+2 Mat wrote:

> Instead of 
>
> <$list variable="myList" filter="[enlist]">
> Auther of : <>  is {{{[get[auther]]}}}
> 
>
> you don't need a variable
>
> <$list filter="[enlist]">
> Auther of :<$link/> or <$view field=title/>  is {{!!auther}}
> 
>
> <:-)
>
> On Wednesday, March 3, 2021 at 10:27:31 AM UTC+1 Mat wrote:
>
>> OK this is just to give some pointers. I did not test your (nor my) code 
>> so maybe you had good reasons for exactly how you did it and my suggestions 
>> don't work.
>>
>> \define prepEnlisting(nlst) 
>>> $nlst$
>>> \end
>>>
>>
>> Not sure why you're using all those brackets. You can probably write it 
>> in a single row like:
>>
>> \define prepEnlisting() [[$(nlst)$]]
>>
>> \define myBooks(category lang)
>>> <$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]" 
>>> variable="macO">
>>> <$macrocall $name="prepEnlisting"  nlst=<> />
>>> 
>>> \end
>>>
>>
>> Put triple quotes around the filters when there's a chance some item has 
>> a quote character in its name.
>>
>> \define myBooks(category lang)
>> <$list filter="""[all[tiddlers]tag[$category$]tag[$lang$]]""" 
>> variable="macO">
>> <>
>> 
>> \end
>>
>>  
>>
>>> <$wikify name="wkfd" text="<>" >
>>> <$list variable="myList" filter="[enlist]">
>>> Auther of : <>  is {{{[get[auther]]}}}
>>> 
>>> 
>>>
>>
>> So the wikifywidget is supposedly very resource demanding so it is to be 
>> avoided when possible. I'd guess it works with a setwidget:
>>
>> <:-)
>>
>>

-- 
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/410f775c-7142-4d39-aa80-4c64bba0c6a3n%40googlegroups.com.


[tw5] How to embed a tiddler(s) inside a gmail message

2021-03-03 Thread Mat
This is (1) almost off topic and (2) way too intricate to do a lot...

...but you'll agree it's interesting.

I did NOT try this out but I believe it can be used to send a tiddler, even 
a several, directly in a gmail message.

First you must export your tiddlers into HTML format and open the result in 
a text editor so you see the code. (Unfortunately it contains the FULL TW 
css - discuss here 
). Then do this:

https://www.youtube.com/watch?v=ZSSqsEVsChc

<:-)


-- 
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/6c8c4db1-9599-4892-8a4d-9048878a6b17n%40googlegroups.com.


[tw5] Re: Athens: a VC backed, open-source Roam competitor

2021-03-03 Thread TiddlyTweeter
Mark S. wrote:

> I feel like bidirectional links are over-rated. 


Right. Sometimes they are useful--basically "going back-and-forth". 
But I think the real use cases are quite limited.

IMO, the whole field of "strategies of linkage" is generally conceptually 
messy and rarely explained in an enlightening way.

Just because you can do it isn't any reason FOR doing it.

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/50cf9175-4602-442a-9785-e75d8855a38fn%40googlegroups.com.


[tw5] Re: Sequential tiddlers

2021-03-03 Thread scot
Has anyone considered this plugin. $:/plugins/tobibeer/make 
 
I am not sure whether this plugin is still valid when used with the latest 
release of TW, but it offers a number of examples for numbering tiddlers. 
e.g.

*Zero-pad count to 5 digits:* 
{{{ [[]make[%count%\max:3\pad:5]] }}} 
1 
2 
3 

*No Separator Before Unique Number* 
{{{ [[]make[sep:]] }}} 
make1  

https://tobibeer.github.io/tw5-plugins/#make

Can anyone please confirm whether this plugin will work on new wikis and if 
not, can it be replicated in another way using current macro or widget.

Scot

On Tuesday, 2 March 2021 at 13:08:32 UTC PMario wrote:

> @Merv, 
>
> Did you test the "demo"? Would it work for you?
>
> @all
> What do you think?
>
> On Sunday, February 28, 2021 at 3:23:21 PM UTC+1 PMario wrote:
>
>> A working demo you can play with: 
>> https://pmario.github.io/kitchensink/5361-unusedtitle-macro.html#unusedtitle%20Macro%20(Examples%201):%5B%5Bunusedtitle%20Macro%5D%5D%20%5B%5Bunusedtitle%20Macro%20(Examples)%5D%5D%20%5B%5Bunusedtitle%20Macro%20(Examples%201)%5D%5D
>>  
>>
>> On Sunday, February 28, 2021 at 3:11:29 PM UTC+1 mrv...@gmail.com wrote:
>>
>>> This approach comes very close to what I need, but what is problematic 
>>> is the space between the name and the numbers.  As you know, spaces in 
>>> titles require special handling and can limit options.
>>>
>>> I am trying to build a document management system that can index, 
>>> identify and describe a series of documents.  Every once in a while someone 
>>> hands me a pile of paper that I need to organize, which can be overwhelming 
>>> since I do not have a paralegal.  Some law firms use what is called a 
>>> "Bates" numbering system.  This is a number system that uses a series of 
>>> padded numbers: ei., 0001, 0002, 0003.  I would like a number system that 
>>> does this, but also allows me to attach a name on the front to identify the 
>>> account.
>>>
>>> I am still evaluating how to organize these numbers once I have 
>>> them---there are several options.  I may try one method out, then switch to 
>>> another.  I am not smart enough to figure this stuff out ahead of time.  I 
>>> try stuff, see what works, then try something else.  Sometimes when I get 
>>> something that works, I can't even explain why it works, I just like the 
>>> result.
>>>
>>> I know that some options are not compatible with spaces in titles.  For 
>>> example there is the "tree Macro," (https://tiddlywiki.com/#tree%20Macro).  
>>> I have never seen this macro actually used, and it seem somewhat awkward, 
>>> so maybe it is not something that I want to rely upon but on the other 
>>> hand, it appears to accomplish useful things and may work well for my 
>>> use-case.  I want to be able to test it out.  But the macro does not appear 
>>> to work if there are spaces in the titles.  Another option is the tabbed 
>>> internal macro (
>>> https://tiddlywiki.com/#Example%20Table%20of%20Contents%3A%20Tabbed%20Internal).
>>>   
>>> This macro does not tolerate spaces in the titles of the root tiddler.  I 
>>> already use this method extensively, so I would like to have this option 
>>> available.
>>>
>>> I hope this adequately explains what I need.
>>>
>>> Merv
>>> On Saturday, February 27, 2021 at 2:02:39 PM UTC-7 PMario wrote:
>>>
 On Friday, February 26, 2021 at 3:10:02 PM UTC+1 mrv...@gmail.com 
 wrote:

> I need the ability to create sequentially numbered tiddlers.  In other 
> words, a button that creates a new tiddler with the following pattern. 
> <><>.  The next number in the series would have 
> <><> and so on.  The title cannot contain any 
> spaces.  


 As I wrote in my first post, there is a pending PR, which tries to 
 achieve something slightly related. 

 I did come up with an implementation that looks like this: 

 <>  

 will output 

 yourName 
 yourName  1
 yourName  2

 and so on

 <>  

 which will output something like this: 

 yourName 
 yourName 0001
 yourName 0002

 and so on. 

 <> 
 results in
 yourName00

 As you can see, there is a little bit of a difference.  The *first 
 *example 
 is there for backwards compatibility. The *second* example is new 
 behaviour and will start with the  as the numbering. 

 What do you think? Would this behaviour be OK for your usecase. 

 @Jermolene .. What do you think.

 A working TEST-wiki to test with will be posted soon!

 -mario



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To 

[tw5] Re: Athens: a VC backed, open-source Roam competitor

2021-03-03 Thread Ste
Tiddlywiki getting a bit of a battering in the comments...yeah it's good 
but it's ugly, it's too hard, single file good till it's not
Still the discussion is currently on a question..

tangjeff0  10 hours ago 
 [–]

The first time I used Tiddly years ago, the UX never resonated with me so I 
wasn't able to get over the learning curve.

More recently, one of our users gave me a pretty detailed tour of their 
Tiddly, which shares sentiments of the other commenters. Single file is 
great until it's not. Lots of plugins but requires manual config. Needing 
to startup a server to collaborate wasn't great.

What "killer features" do you think Tiddly has?


I don't have time right now...any one want to jump in with the killer?

On Wednesday, 3 March 2021 at 02:53:09 UTC Ed Heil wrote:

> "you can't really make these apps with JavaScript"
>
> News to me!
>
>
> On Tuesday, March 2, 2021 at 4:25:58 PM UTC-5 dieg...@gmail.com wrote:
>
>>
>> Hello all,
>>
>> A YC (venture capital firm) backed open-source Roam alternative launched 
>> today on HackerNews: 
>>
>> https://news.ycombinator.com/item?id=26316793
>>
>> Some relevant parts of the announcement (my opinion only):
>>
>>
>>- Athens is an open-source and local-first alternative to Roam 
>>Research. Roam Research is a notetaking application, and *what they 
>>really got right was the "bidirectional link."*
>>- With bidirectional links, you never have to worry about where you 
>>write a note. Bidirectional links allow you to connect any two notes 
>>together, creating a knowledge graph. 
>>- This is why Athens is about more than just notetaking. *I believe 
>>networked applications with bidirectional links and data could become a 
>> new 
>>category itself.*
>>- Of course, this *bidirectional idea isn't new*. In fact, it goes as 
>>far back as the origin of the Web. It's the original concept of hypertext 
>>and Xanadu, which Ted Nelson has been advocating for decades. More 
>>recently, aspects of it were attempted by the Semantic Web. *Yet the 
>>adoption never really caught on, until perhaps now.*
>>- Something else that's interesting about the most powerful networked 
>>tools like Roam and Athens is t*hat you can't really make these apps 
>>with JavaScript or plaintext/markdown.* *For maximum power, you want 
>>a true graph database*. Both Roam and Athens leverage a front-end 
>>graph database called DataScript, which is written in Clojure(Script). 
>>JavaScript doesn't have a native analog, and Neo4j is only server-side. 
>> *This 
>>matters because I believe this is the first consumer use case for graph 
>>databases*. I believe both Roam and Athens are general-purpose 
>>platforms where individuals and organizations can centralize all of their 
>>knowledge and tasks. I believe the graph is the right data structure to 
>> do 
>>this with.
>>
>>
>> I find this fascination with bi-directional links without a huge mention 
>> of TW slightly frustrating. 
>>
>> Also, his point about a graph database is an interesting one to consider. 
>>
>> What are your thoughts?
>>
>> Diego
>>
>>
>>

-- 
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/350d70c6-6a16-4aba-8ae7-067be9a5e754n%40googlegroups.com.


[tw5] Re: Breadcrubs (tiddlersbar) browser-like funcionality

2021-03-03 Thread Ton Gerner
Hi Damon,

What strikes me is the tiddlersbar displays behind the tiddlers; normally 
it is the other way around.
It can be caused by leftovers from the old breadcrumbs plugin: look for 
overridden shadow tiddlers 
(Controlpanel > Info > Basics; click the search at 'Number of overridden 
shadow tiddlers).
Look for $:/plugins/tongerner/breadcrumbs/... and 
$:/plugins/tongerner/layout_adjustment/...
Delete all these overridden shadow tiddlers.

Note that the tiddlersbar plugin and the matching layout plugin will have 
overridden shadow tiddlers as well ($:/plugins/tg/...)!

Check if you have the newest versions of the Tiddlersbar plugin (v 0.0.21) 
and Layout tweaks plugin (v 0.5.4) available at 
www.tongerner.nl/TW5/TW5_playground.html. In case of upgrading be sure to 
delete overridden shadow tiddlers of both plugins (if required note down 
adjusted settings).

The position of the tiddlersbar is controlled by the Tiddlerbar settings: 
Left Tiddlersbar and Top Tiddlersbar.

Hope that helps,

Ton

On Wednesday, March 3, 2021 at 3:38:47 AM UTC+1 History Buff wrote:

> Hey Ton,
>
> I tried your Tiddlersbar plugin today and am having an interesting issue 
> (see screenshot). You can see on the left side that the tab for the open 
> tiddlers is hidden behind the current tiddler. The only way I can make the 
> tabs visible is to make the story top position at least 90px which puts a 
> huge gap between the menubar and the top of the tabs. I can't for the life 
> of me figure out how to move the tiddlersbar. I've used the inspect feature 
> in Chrome and cannot make it budge. I had just tried your deprecated 
> Breadcrumbs plugin when I found your updated one so maybe there's something 
> left over from uninstalling that? Any help would be greatly appreciated. 
> I'm usually pretty good at finding style type issues, but this one has me 
> stumped.
>
> Damon
>
> [image: Tiddlersbar problem.png]
>
> On Saturday, February 6, 2021 at 2:36:58 AM UTC-7 Ton Gerner wrote:
>
>> Hi,
>>
>> Glad you do like my plugin and nice to see how you customized it.
>> According your questions I have to say it is beyond my capabilities. 
>> Others may chime in with good ideas.
>>
>> Just for the record: since TiddlySpot cannot be used anymore, I decided 
>> to host my TW5 stuff at my Raspberry Pi home server available at 
>> http://www.tongerner.nl/TW5/TW5_index.html
>>
>> Cheers,
>>
>> Ton
>>
>>
>>
>> On Saturday, February 6, 2021 at 9:26:07 AM UTC+1 bartosz.w...@gmail.com 
>> wrote:
>>
>>> Oooo. Seems promising. Thank You very much.
>>>
>>> piątek, 5 lutego 2021 o 21:37:45 UTC+1 Odin napisał(a):
>>>
 Hi!

 About the dynamic width of the tabs, shrinking when there are more 
 tabs. I think this can be done with CSS flexbox. Check out the flex-shrink 
 property:
 https://css-tricks.com/snippets/css/a-guide-to-flexbox/

 Op vrijdag 5 februari 2021 om 16:04:56 UTC+1 schreef 
 bartosz.w...@gmail.com:

> Hello there.
>
> I have been using TW since late December. I have no real experience 
> with programming, but with help of Google and some lucky guessing I have 
> managed to do quite well.
>
> But still some things are beyond me, so I would be grateful for Your 
> help. Could you tell me how could I program:
>
> 1) A *funcional max width *of breadcrumbs tabs. As I thought 
> max-width causes text to reach outside of tabs.
>
> 2) A *dynamic width *of breadcrumbs tabs e.g. when there are 
> enough tabs to reach right side of the screen they would get thinner with 
> each additional tab till some minimal width.
>
> 3) An ability to *see the end *of tiddlers titles, while in less 
> wide form. It could be especial useful with shadow and system ones.
>
> I am looking forward to seeing your answers.
>
>  Lastly I will show off my work and hope that you will find it 
> interesting. Tongerner did truly an amazing job with this plugin and 
> customizing it for my personal use was a great experience.
>
> I really like boxed buttons style, so I made breadcrumbs similar in 
> appearance and added on hover highlight. The current tiddler is an 
> exception of course. X buttons also have this highlight instead of „going 
> bold” and excess tabs will go outside the screen instead of overflowing 
> into the lower row. And I also added impromptu dividers between toolsbar 
> butons.
> [image: TW.png]
>


-- 
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/d72a04e7-f680-479d-8c40-d793b65fd57dn%40googlegroups.com.


[tw5] Re: Ran into some macro development subtleties

2021-03-03 Thread Saq Imtiaz
Re: (1) and splitregexp, use of capture groups isn't officially supported 
in regular expressions in filters with the exception of the new 
search-replace operator. This probably needs to be better documented. 

However what is interesting here is that you report that it works in 
TiddlyDesktop. Was it the same TiddlyWiki file used in FF58 and in 
TiddlyDesktop? Or was the TiddlyDesktop file 5.1.22 or 5.1.23 pre-release?

Late in the 5.1.23 pre-release phase, filters were switched to using a 
linked list implementation instead of an array for performance purposes. I 
wonder if perhaps the new linked list implementation is less tolerant than 
than the old implementation for undefined values, and that there has been a 
regression.


Re: (2) use single, double or triple quotes around arguments. The <<__x__>> 
syntax was introduced precisely for those situations where getting the 
quoting of parameters correct might be tricky.


Re: (3)  One of the important differences between the Set and Vars widgets 
is that:

   -  the Set widget directly supports filters and (used in the filtered 
   item variable assignment form) assigns a title list 
    to the variable (which can hold 
   multiple titles).
   -  However the Vars widget does not directly support filters and using a 
   filtered attribute assignment using the triple brace syntax assigns the 
   first title from the filter results to the variable. To be clear this isn't 
   really down to the Vars widget but rather the way filtered attributes 
   for widgets are evaluated 
   
,
 
   i.e. attribute={{{ filter }}} which always assigns the first title from the 
   filter results.

Hope this helps,
Saq
On Tuesday, March 2, 2021 at 10:18:33 PM UTC+1 hwva...@gmail.com wrote:

> Good day,
>
> Triggered by the announcement of Tamasha I decided to dig into TW5 some 
> more. Therefore I created a --javascript free -- plugin for easy import and 
> display of spreadsheet data, or more generally dataframes. Along the way I 
> ran into some subtleties / miscomprehensions of the tiddlywiki framework , 
> which might be of interest to others. A demonstration of the dataframe 
> plugin and  a working description of three subtleties in action is 
> available at: https://hwvandijk.bitbucket.io/tw-dataframe/
>
> 1. splitregexp that crashes the Javascript engine of Firefox 58, but works 
> on tiddlydesktop 0.14 (chromedriver 81)
> I used a (elaborate) regular expression in splitregexp to split "ABC123" 
> in to "123 ABC" in one go. 
> i.e.
> regexp="([A-Z]+(?=[0-9]+))|([0-9]+(?=[A-Z]+))"  
> and filter="[splitregexpreverse[]]"
>
> I get a Javascript error: *uncaught exception: Linked List only accepts 
> string values, not undefined *
> The problem has been solved by using a more straightforward regular 
> expression in a  search-replace:regexp filter operator.
>
> 2. $x$ and <<__x__>> or similar but not identical
> I had problems using macro parameters in filters. Therefor I cast them in 
> a <$set> or <$vars> variable, either through $x$ or <<__x__>>. The former 
> works fine unless a parameter x that is passed to the macro contains 
> slashes.
> < works fine, <> fails. It 
> renders the <$vars expression> literally in the page.
>
> 3. <$set filter:"filter" variable="var"> and <$vars var={{{ filter }}}> 
> give different results
> To specify the index/columns of the dataframe  to be displayed I use a 
> list of ranges. Meaning that a spec of "1,3-5,7" should be transformed into 
> "1,1 3,5 7,7" such that when you feed these entries one by one into the 
> range operator you get [1 2 3 4 5 7]. 
> However with:
>
> <$vars p=<<__param__>> 
>   regexp="^(\d+)$" > 
> <$set name="setref" 
> filter="[split[,]search-replace:g:regexp,[$1,$1]]" >
> <$vars varsref={{{ [split[,]search-replace:g:regexp,[$1,$1]] 
> }}} >
>
> The variables *setref* and *varsref* are not identical. *varsref* is 
> wrong, you should use *setref*.
> varsref only works for simple specifications, such as "7". It looks like 
> *varsref 
> *does not obey the g (global) specifier.
>  
> Sorry for the long mail, but hopefully someone can point out my 
> misconceptions or file a bug if that is appropriate.
>
> Cheers,
>
> Hylke van Dijk
>
>
>
>

-- 
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/250f8701-228c-4c78-bacf-58e0fc18ae6cn%40googlegroups.com.


[tw5] Re: Macro: How convert wikified macro output as a "List"

2021-03-03 Thread Mat
Instead of 

<$list variable="myList" filter="[enlist]">
Auther of : <>  is {{{[get[auther]]}}}


you don't need a variable

<$list filter="[enlist]">
Auther of :<$link/> or <$view field=title/>  is {{!!auther}}


<:-)

On Wednesday, March 3, 2021 at 10:27:31 AM UTC+1 Mat wrote:

> OK this is just to give some pointers. I did not test your (nor my) code 
> so maybe you had good reasons for exactly how you did it and my suggestions 
> don't work.
>
> \define prepEnlisting(nlst) 
>> $nlst$
>> \end
>>
>
> Not sure why you're using all those brackets. You can probably write it in 
> a single row like:
>
> \define prepEnlisting() [[$(nlst)$]]
>
> \define myBooks(category lang)
>> <$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]" variable="macO">
>> <$macrocall $name="prepEnlisting"  nlst=<> />
>> 
>> \end
>>
>
> Put triple quotes around the filters when there's a chance some item has a 
> quote character in its name.
>
> \define myBooks(category lang)
> <$list filter="""[all[tiddlers]tag[$category$]tag[$lang$]]""" 
> variable="macO">
> <>
> 
> \end
>
>  
>
>> <$wikify name="wkfd" text="<>" >
>> <$list variable="myList" filter="[enlist]">
>> Auther of : <>  is {{{[get[auther]]}}}
>> 
>> 
>>
>
> So the wikifywidget is supposedly very resource demanding so it is to be 
> avoided when possible. I'd guess it works with a setwidget:
>
> <:-)
>
>

-- 
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/6d56014b-911e-4736-b279-6f9c04b3b2dfn%40googlegroups.com.


[tw5] Re: Macro: How convert wikified macro output as a "List"

2021-03-03 Thread Mat
OK this is just to give some pointers. I did not test your (nor my) code so 
maybe you had good reasons for exactly how you did it and my suggestions 
don't work.

\define prepEnlisting(nlst) 
> $nlst$
> \end
>

Not sure why you're using all those brackets. You can probably write it in 
a single row like:

\define prepEnlisting() [[$(nlst)$]]

\define myBooks(category lang)
> <$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]" variable="macO">
> <$macrocall $name="prepEnlisting"  nlst=<> />
> 
> \end
>

Put triple quotes around the filters when there's a chance some item has a 
quote character in its name.

\define myBooks(category lang)
<$list filter="""[all[tiddlers]tag[$category$]tag[$lang$]]""" 
variable="macO">
<>

\end

 

> <$wikify name="wkfd" text="<>" >
> <$list variable="myList" filter="[enlist]">
> Auther of : <>  is {{{[get[auther]]}}}
> 
> 
>

So the wikifywidget is supposedly very resource demanding so it is to be 
avoided when possible. I'd guess it works with a setwidget:

<:-)

-- 
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/110cc581-049b-4c1c-b1be-83d0990c4d00n%40googlegroups.com.


Re: [tw5] Re: Looping through tagging hierarchy to bulk update a field

2021-03-03 Thread Mat

>
> I had no idea that a macro could be called from within itself and that 
> this would be safe.
>

Yeah, it's a programming concept called recursion.
 

> Should I leave the closing  in the changeVisibility as it is or 
> change it to ? I doesn't appear to make any difference.
>

No change it to vars.

<:-) 

-- 
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/316568aa-feab-4c98-a6fa-5161c4222644n%40googlegroups.com.