[tw5] Re: Saving a story-river

2020-11-29 Thread soren.b...@gmail.com
Thanks Scott for the suggestion and Eric for the implementation, this will 
be really useful!

Here's a version with a couple of tweaks:

   - Added icons to the buttons.
   - You can export the tiddlers in a story (the OK button in the export 
   popup looks goofy because the export macro I used doesn't have an option to 
   change the button appearance...didn't feel like it was worth making my own 
   copy of the macro to fix this, but if someone knows a simpler solution I'm 
   all ears).
   - Stories are saved with a prefix (e.g., $:/StorySaver/saved) rather 
   than as the unmodified name of the story. The prefix used for this and for 
   the tag applied to saved stories is configurable via a variable at the top 
   of the tiddler.

One additional tweak that might be useful would be preventing the 
story-saver tiddler itself from being saved. I don't care because I put it 
in the sidebar at the bottom of the Open tab, so I won't normally have it 
open, but others might.



<$set name=savedStoryTag value="$:/sib/StorySaver/SavedStory">
<$set name=savedStoryPrefix value="$:/sib/StorySaver/saved/">
<$button popup="$:/state/popup/savestory"> {{$:/core/images/save-button}} 
save story 
<$reveal type="popup" state="$:/state/popup/savestory" class="tc-drop-down 
tc-popup-keep" style="min-width:auto;padding:0.5em;">
   Enter a new story name:
   <$edit-text tiddler="$:/state/popup/savestory" field="storyname" />
   <$list filter="[taglimit[1]]">
  or, select an existing story:
   .savedStoryList { width:100%; } 
  <$select tiddler="$:/state/popup/savestory" field="storyname" 
size="5" class="savedStoryList">
  <$list 
filter="[tagremoveprefix]"><>
  
   
   <$button style="text-align:center;"> save
  <$action-setfield $tiddler={{{ 
[{$:/state/popup/savestory!!storyname}addprefix] }}} 
list={{$:/StoryList!!list}} tags=<> />
  <$action-deletetiddler $tiddler="$:/state/popup/savestory" />
   

<$button popup="$:/state/popup/loadstory"> 
{{$:/core/images/storyview-classic}} load story 
<$reveal type="popup" state="$:/state/popup/loadstory" class="tc-drop-down 
tc-popup-keep" style="min-width:auto;padding:0.5em;">
   <$list filter="[taglimit[1]]" emptyMessage="no saved 
stories">
  select an existing story:
   .savedStoryList { width:100%; } 
  <$select tiddler="$:/state/popup/loadstory" field="storyname" 
size="5" class="savedStoryList">
  <$list 
filter="[tagremoveprefix]"><>
  
   
   <$button style="text-align:center;"> load
  <$action-setfield $tiddler="$:/StoryList" list={{{ 
[{$:/state/popup/loadstory!!storyname}addprefixget[list]] 
}}} />
  <$action-deletetiddler $tiddler="$:/state/popup/loadstory" />
   


<$button popup="$:/state/popup/exportstory"> 
{{$:/core/images/export-button}} export story 
<$reveal type="popup" state="$:/state/popup/exportstory" 
class="tc-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
   <$list filter="[taglimit[1]]" emptyMessage="no saved 
stories">
  select an existing story:
   .savedStoryList { width:100%; } 
  <$select tiddler="$:/state/popup/exportstory" field="storyname" 
size="5" class="savedStoryList">
  <$list 
filter="[tagremoveprefix]"><>
  
   
<$macrocall $name="exportButton" exportFilter={{{ 
[{$:/state/popup/exportstory!!storyname}addprefixget[list]] 
}}} lingoBase="$:/language/Buttons/ExportTiddlers/"/>




On Wednesday, November 25, 2020 at 7:57:14 PM UTC-6 Eric Shulman wrote:

> On Wednesday, November 25, 2020 at 5:01:52 PM UTC-8 
> ad...@menswellbeing.org wrote:
>
>> Is it possible to save the story-river into a tiddler and then use that 
>> tiddler to open that story-river at a later time?
>>
>
> The current StoryRiver contents are stored in $:/StoryList!!list.
>
> Here's a tiddler that defines two buttons...
> one to save the current  $:/StoryList!!list field to a separate tiddler 
> tagged with "savedStory",
> and another to set the  $:/StoryList!!list from the list field in a 
> "savedStory" tiddler:
>
> *StorySaver:*
> <$button popup="$:/state/popup/savestory"> save story 
> <$reveal type="popup" state="$:/state/popup/savestory" class="tc-drop-down 
> tc-popup-keep" style="min-width:auto;padding:0.5em;">
>Enter a new story name:
><$edit-text tiddler="$:/state/popup/savestory" field="storyname" />
><$list filter="[tag[savedStory]limit[1]]">
>   or, select an existing story:
>.savedStoryList { width:100%; } 
>   <$select tiddler="$:/state/popup/savestory" field="storyname" 
> size="5" class="savedStoryList">
>   <$list 
> filter="[tag[savedStory]]"><>
>   
>
><$button style="text-align:center;"> save
>   <$action-setfield $tiddler={{$:/state/popup/savestory!!storyname}} 
> list={{$:/StoryList!!list}} tags="savedStory" />
>   <$action-deletetiddler $tiddler="$:/state/popup/savestory" />
>
> 
> <$button popup="$:/state/popup/loadstory"> load story 
> <$reveal type="popup" state="$:/state/popup/loadstory" 

[tw5] Re: Node.js save to single-tiddlywiki html file

2020-11-26 Thread soren.b...@gmail.com
To export the wiki to a single file exactly as it is:

--render "$:/core/save/all"

That doesn't work so great, though, because it includes the plugins that 
sync with the node.js server, which means you'll get a bunch of errors when 
you try to view it anywhere else. Better is to use the --build command as 
Mark says, which will take care of extracting that stuff for you.

--build just executes a series of other commands found in the "build" 
section of the tiddlywiki.info file. By default there is an "index" target 
in there that does what you want. If you're curious to see exactly what's 
going on, or you need to tweak something, take a look there.

On Thursday, November 26, 2020 at 5:47:11 AM UTC-6 scheuer...@gmail.com 
wrote:

>
> Hello,
>
> I am currently running Tiddlywiki via node.js, so all tiddlers are saved 
> in separate files. I now need to convert these tiddlers into a single html 
> file with all the tiddlywiki functionalities. So basically converting a 
> node.js-version into a single-file version. 
>
> Is that possible or is there a template I can use together with the 
> --render command?
>
> Thank you!
>

-- 
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/5c1f22cf-230e-464d-9604-ca7f3745adbfn%40googlegroups.com.


[tw5] Re: Tiddlername as tag

2020-11-26 Thread soren.b...@gmail.com
My bad, that was a typo caused by my text editor’s bracket autocomplete. It 
does work with the typo fixed, which is strange because I swear this has 
not 
worked for me before. Maybe at the time I didn’t know anything about 
TiddlyWiki and I was doing something else wrong. Learned something new, 
thanks! 

Tones, I would think the benefit is that the <__parameter__> syntax can’t 
get 
messed up by quoting, no matter what is in the parameter (same reason you 
might want to use it outside a filter). In your version, if there was a 
double-quote in the name of the tag, the filter would break. You could use 
triple quotes around the filter, but then triple quotes would mess it up, 
and 
so on.


On Wednesday, November 25, 2020 at 6:19:55 PM UTC-6 Mark S. wrote:

> The angle braces REPLACE the square brackets in filter expressions. So 
> your code should look like:
>
> \define testme(parameter)
>   <$list filter="[tag<__parameter__>]">
>   <$link to=<>/>
>   
> \end
>
>
>
> On Wednesday, November 25, 2020 at 11:48:56 AM UTC-8 soren.b...@gmail.com 
> wrote:
>
>> On Wednesday, November 25, 2020 at 1:09:22 PM UTC-6 Mark S. wrote:
>>
>>> Inside a filter, a variable could be referenced as tag[$art$] or as 
>>> tag<__art__> .
>>>
>>
>> Really? Did that work for you? I thought parameters-as-variables only 
>> work in a strict transclusion context with double angle brackets. In a 
>> simple test it yields a syntax error:
>>
>> \define testme(parameter)
>>   <$list filter="[tag<__parameter__>]]">
>>   <$link to=<>/>
>>   
>> \end
>>
>> <>
>>
>

-- 
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/f1430e06-a24f-4703-8b27-18f88c1a5908n%40googlegroups.com.


[tw5] Re: Tiddlername as tag

2020-11-25 Thread soren.b...@gmail.com
On Wednesday, November 25, 2020 at 1:09:22 PM UTC-6 Mark S. wrote:

> Inside a filter, a variable could be referenced as tag[$art$] or as 
> tag<__art__> .
>

Really? Did that work for you? I thought parameters-as-variables only work 
in a strict transclusion context with double angle brackets. In a simple 
test it yields a syntax error:

\define testme(parameter)
  <$list filter="[tag<__parameter__>]]">
  <$link to=<>/>
  
\end

<>

-- 
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/e876e5a1-4896-431a-a497-f877c40e5ba9n%40googlegroups.com.


Re: [tw5] Re: Image generated from the value of a field in a different tiddler

2020-11-25 Thread soren.b...@gmail.com
It's worth noting this isn't a TiddlyWiki thing, it's a general web thing. 
The alt text is a replacement for the image when it's not available (thus 
the word *alt*ernate), while the title text is a supplement to it providing 
more information. People often get confused and use the wrong one, partly 
because some browsers way back in the dark ages used to show the alt text 
when you hovered over an image.

More: https://blog.spotibo.com/difference-between-alt-text-and-title-text/

On Wednesday, November 25, 2020 at 1:13:16 PM UTC-6 Javier Rojas wrote:

> On Wed, Nov 25, 2020 at 09:35:25AM -0800, Anthony wrote:
> > So, I now have
> > 
> > <$image source={{A!!structure_file}} alt={{A!!title}} />
> > 
> > which I expected to would give the title of Tiddler A when the mouse 
> > hovered over the image (much as would occur with [img[description of 
> > file|folder/file.png]]). However, I note that the alt text only appears 
> if 
> > the file is not found.
> > 
> > Is this the expected behaviour and is it possible, using $image, to 
> produce 
> > the 'hover-over' text.
>
> I think you should use the `title` attribute, instead of `alt`, which,
> as you say, is the text shown when the image is not available.
>
>

-- 
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/978ead26-3598-4f7a-b27a-c4ed26130b83n%40googlegroups.com.


Re: [tw5] Using self-closing tags for widgets

2020-11-25 Thread soren.b...@gmail.com
Thanks Jeremy!

On Wednesday, November 25, 2020 at 3:46:05 AM UTC-6 jeremy...@gmail.com 
wrote:

> Hi Soren
>
> TW5 treats the following tags as void. This means that  no terminating 
>  is needed (indeed, if one is provided it will be ignored and treated 
> as plain text), and the  syntax:
>
>
> area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr
>
> If you don’t close any other tag then it will behave as if the missing 
> closing tag were at the end of the tiddler.
>
> I’ve updated the docs to add these details:
>
> https://tiddlywiki.com/#HTML%20in%20WikiText
>
> Best wishes
>
> Jeremy
>
> On 25 Nov 2020, at 00:57, soren.b...@gmail.com  
> wrote:
>
> Today I learned that I've been wrong about self-closing tags (e.g.,  />) in HTML5 for years. The new rules 
> <https://stackoverflow.com/questions/3558119/are-non-void-self-closing-tags-valid-in-html5>
>  appear 
> to be that they are allowed but meaningless on void elements (those that 
> don't allow content), and entirely disallowed on any other elements.
>
> Most TiddlyWiki widgets that don't have content use the self-closing 
> syntax in the documentation (e.g., macrocall 
> <https://tiddlywiki.com/#MacroCallWidget>), and state that the content is 
> "ignored". My question is, are these widgets defined like HTML5 void 
> elements, so that they won't gobble up any body content if I don't close 
> them? In that case, I would do best to simply stop using self-closing tags 
> altogether, since they no longer have any meaning in modern HTML. Or would 
> that potentially cause issues with the wikitext parser gobbling up other 
> stuff as part of the "ignored" content, so that I should continue using the 
> self-closing tags, but only for widgets?
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/586e11d9-0d4c-4322-8e24-ec865401c510n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/586e11d9-0d4c-4322-8e24-ec865401c510n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>

-- 
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/dcca1e5e-4583-41a8-a3d0-8d7bd5f97d8bn%40googlegroups.com.


[tw5] Using self-closing tags for widgets

2020-11-24 Thread soren.b...@gmail.com
Today I learned that I've been wrong about self-closing tags (e.g., ) in HTML5 for years. The new rules 

 appear 
to be that they are allowed but meaningless on void elements (those that 
don't allow content), and entirely disallowed on any other elements.

Most TiddlyWiki widgets that don't have content use the self-closing syntax 
in the documentation (e.g., macrocall 
), and state that the content is 
"ignored". My question is, are these widgets defined like HTML5 void 
elements, so that they won't gobble up any body content if I don't close 
them? In that case, I would do best to simply stop using self-closing tags 
altogether, since they no longer have any meaning in modern HTML. Or would 
that potentially cause issues with the wikitext parser gobbling up other 
stuff as part of the "ignored" content, so that I should continue using the 
self-closing tags, but only for widgets?

-- 
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/586e11d9-0d4c-4322-8e24-ec865401c510n%40googlegroups.com.


[tw5] Re: Image generated from the value of a field in a different tiddler

2020-11-24 Thread soren.b...@gmail.com
Haha, good point, I'm overcomplicating things too. :-)

On Tuesday, November 24, 2020 at 3:29:32 PM UTC-6 Eric Shulman wrote:

> On Tuesday, November 24, 2020 at 11:37:52 AM UTC-8 soren.b...@gmail.com 
> wrote:
>
>> Have you tried the image widget <https://tiddlywiki.com#ImageWidget>? 
>> You might be making this a lot more complicated than necessary...from the 
>> letter of what you wrote all you need to do is write this in tiddler B:
>>
>> <$image source={{A!!structure_file}}>
>>
>> In other words, you're transcluding the value of the structure_file field 
>> of A as the value of the source image widget.
>>
>> Now if you need the tiddler A to be dynamic, rather than hard-coding it 
>> in the wiki text, you'll have to get a bit more complicated. You might be 
>> tempted to try this:
>>
>> \define makeTransclusion() {{$(myTiddler)$!!structure_file}}
>> <$set name="myTiddler" value="A">  
>> <$image source=<>>
>> 
>>
>> But if you try that, you'll see the image link is broken. If you use your 
>> browser's developer tools to inspect the image, you'll see it links 
>> literally to "{{A!!structure_file}}".
>>
>
> The reason the image is broken is because after the constructed widget 
> parameter is "returned" by the macro, it is not parsed a *second* time to 
> evaluate the transclusion.
> However, if you place the entire $image widget inside the macro, you can 
> forego the use of $wikify, like this:
>
> \define showStructure(tid) <$image source={{$tid$!!structure_file}} />
> <>
>
> -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/c0b48349-572b-446a-a884-aa8eb085025bn%40googlegroups.com.


[tw5] Re: Image generated from the value of a field in a different tiddler

2020-11-24 Thread soren.b...@gmail.com
Have you tried the image widget ? You 
might be making this a lot more complicated than necessary...from the 
letter of what you wrote all you need to do is write this in tiddler B:

<$image source={{A!!structure_file}}>

In other words, you're transcluding the value of the structure_file field 
of A as the value of the source image widget.

Now if you need the tiddler A to be dynamic, rather than hard-coding it in 
the wiki text, you'll have to get a bit more complicated. You might be 
tempted to try this:

\define makeTransclusion() {{$(myTiddler)$!!structure_file}}
<$set name="myTiddler" value="A">  
<$image source=<>>


But if you try that, you'll see the image link is broken. If you use your 
browser's developer tools to inspect the image, you'll see it links 
literally to "{{A!!structure_file}}".

Instead, when you add in the macro, you have to use $wikify 
, because the macro is returning raw 
wikitext, and TiddlyWiki does not automatically parse wikitext when passing 
it directly to HTML/widget attributes -- only when displaying it in the 
tiddler.

\define makeTransclusion() {{$(myTiddler)$!!structure_file}}

<$set name="myTiddler" value="A">  
  <$wikify name="reference" text=<>>
<$image source=<>>
  


On Tuesday, November 24, 2020 at 10:37:15 AM UTC-6 Anthony wrote:

> All,
>
> I have got myself into a pickle and so confused that I can no longer see 
> the wood for the trees...
>
>1. I have two tiddlers, A and B.
>2. Tiddler A stores information in fields about an organic compound - 
>one of the fields is called 'structure_file' and gives the relative 
>location of an image file.
>3. In tiddler B I wish to load the image for the compound in tiddler 
>A, which I assume is some form of a transclusion {{A!!structure_file}}.
>4. Eric has already warned me that I cannot mix different types of 
>syntax, {{...}} with [[...]], so I've been attempting to create a macro 
>along the lines of another conversation (
>https://groups.google.com/g/tiddlywiki/c/bTLtqQn-1GA/m/9316shQnDAAJ).
>5. I have failed.
>6. I decided to stop when I received a scary red JavaScript recursion 
>error...
>
> I'm sure it's not difficult but I'm beaten.
>
> Many thanks for any advice,
>
> Anthony
>
>

-- 
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/717c07a3-7ff1-4ae8-b23f-634908e3cfe9n%40googlegroups.com.


Re: [tw5] Re: Removing prefix https and http

2020-11-24 Thread soren.b...@gmail.com
Can you elaborate on "The url field contains a syntax that renders image 
urls"?

<$transclude field=url> should be the same thing as {{!!url}}, so I don't 
think that's actually your problem. If you mean that it contains wikitext 
references like transclusions, you need to *wikify* the contents of the URL 
field in order to get that URL. Probably what's happening is that you were 
able to use {{!!url}} as a parameter to the img tag, but were only able to 
use the transclude widget at the top level of your wikitext (where anything 
that comes out of a transclusion is automatically wikified), so it looks 
like the transclude widget is making the difference.

Wikifying the contents would look something like:

<$wikify name=wikifiedLink text={{!!url}}>
  >>




On Tuesday, November 24, 2020 at 12:01:20 AM UTC-6 W Yan wrote:

> Mohammad, thank you for the solution! Just tried it and it worked great. 
> Now I'm having a go with  thing, and I think I am pretty close... 
> I'm at
>  
> \define imgsrc(url)
> 
> \end
> <$set name=url value={{!!url}}>
> <>
> 
>  
> right now, but can't get my head around using <$transclude field=image/> 
> instead of {{!!url}}. The url field contains a syntax that renders image 
> urls, and just transcluding with {{!!url}} doesn't seem to render the 
> syntax at all. It only works when I use transclusion widget, but you can't 
> include widgets inside attributes, so I'm stuck.
>

-- 
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/08bf42b7-7723-41b4-a941-e82ad9dbe1b8n%40googlegroups.com.


[tw5] Re: Prevent emdash replacing 2 dashes?

2020-11-23 Thread soren.b...@gmail.com

The promotion of -- to – is caused by a parse rule, called *dash*. If 
you're willing to turn it off for this entire wiki, you can find the option 
in Control Panel/Info/Advanced/Parsing (note that you have to reload the 
page to see the change).

Otherwise...normally, you can disable parse rules on a tiddler-by-tiddler 
basis with the *\rules except* pragma, like:

```
\rules except dash

This will be two hyphens: --
```

I could not get this to work in combination with the $wikify widget though, 
either by just putting the widget inside a tiddler with a rules pragma or 
by using a macro to concatenate the pragma to the command before passing it 
in to $wikify. Maybe there is a way to use pragmas with $wikify that I'm 
missing, but if so it doesn't appear to be documented.

On Sunday, November 22, 2020 at 12:27:15 PM UTC-6 amreus wrote:

>
> I'm playing with an idea of a command-line builder where I can build the 
> command line using a form and copy the command to the clipboard. 
>
> Most commands accept 2 dashes for long options but in my example 
> (attached) the double-dashes get converted to an emdash. Can this be 
> prevented?
>
> Thanks.
>
>

-- 
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/3f31b167-a197-4e9f-a0d5-0ff9f08ae369n%40googlegroups.com.


Re: [tw5] Re: Introducing TiddlyRemember, a tool for integrating TiddlyWiki with Anki spaced-repetition flashcards

2020-11-23 Thread soren.b...@gmail.com
If you don't mind manually downloading your wiki file prior to each sync, 
Google Drive will work fine as a hosting location. Just download the wiki 
from Google Drive to a location on your computer, then choose "File" in the 
TiddlyRemember config and select that file. If you overwrite that same file 
(so it has the same name) next time you want to update, you can just choose 
the TiddlyRemember sync option within Anki at that point.

You can make repeatedly re-downloading a file from Google Drive a bit 
easier by sharing it to "anyone with the link" and then pasting your share 
link into this site: https://sites.google.com/site/gdocs2direct/. That will 
give you a URL you can bookmark that will immediately download the file 
when you browse there.

I tried just pasting the direct-download link into TiddlyRemember, but 
unfortunately it looks like there is some Google magic involved in even 
that "direct" link that makes it not work when you hit it outside of a web 
browser. There might be some way around that if you're really intrepid.

On Monday, November 23, 2020 at 8:40:23 AM UTC-6 facts...@gmail.com wrote:

> Hello Everyone, 
>
> I have been using TiddlyWiki 5 for about a year now. I host it in my 
> Google Drive and use the TiddlyDrive add-on to access my Wiki in my 
> browser. I think TiddlyRemember is a great tool but I am struggling 
> figuring out how to set it up. 
>  So far, I have  done the following: 
>
>1. Dragged the plugin into my existing Wiki in Google Drive
>2. Set up node on Linux Ubuntu 20.04.1 LTS
>3. Installed TiddlyWiki 
>4. Created an empty Wiki
>5. Installed Anki and added the Anki plugin
>
> I would like to know how I can continue hosting my Wiki on Google Drive 
> while using TiddlyRemember. If it's not possible, what would be the most 
> ideal (read: easiest) way to set it up. 
>
> Thanks in advance for the help.
>
> On Wednesday, 18 November 2020 at 02:48:45 UTC soren.b...@gmail.com wrote:
>
>> As Sebastián says, you can use links to external images that will be 
>> accessible from Anki, but image transclusion is not supported...for now. 
>> I'd like to support it in the future, but it involves hooking into a whole 
>> new section of Anki's API that I've never used before, so it's not 
>> something I can quickly throw together.
>>
>> On Sunday, November 15, 2020 at 4:18:49 PM UTC-6 Prestige wrote:
>>
>>> Does TiddlyRemember support images in cards? does it have to be links or 
>>> I can drag drop?
>>>
>>> On Monday, 16 November 2020 at 03:35:22 UTC+5:30 Prestige wrote:
>>>
>>>> Thanks
>>>> This is cool.
>>>>
>>>>
>>>> On Monday, 16 November 2020 at 01:07:55 UTC+5:30 mehequeda...@gmail.com 
>>>> wrote:
>>>>
>>>>> You can add an anki_tag field to any tiddler. Then, questions in 
>>>>> tiddlers tagged with the first tiddler would get synced.
>>>>>
>>>>> For example, in TiddlyRemember I have:
>>>>> [image: image.png]
>>>>> Then I get this synced:
>>>>> [image: imagen.png]
>>>>>
>>>>> --
>>>>> Sebastián
>>>>>
>>>>>
>>>>> On Sun, 15 Nov 2020 at 18:35, Prestige  wrote:
>>>>>
>>>>>> Any way to add tags to the cards?
>>>>>>
>>>>>> On Saturday, 14 November 2020 at 00:59:28 UTC+5:30 si wrote:
>>>>>>
>>>>>>> >>> I’d suggest you post this on the Anki forums at 
>>>>>>> https://forums.ankiweb.net since it’s an Anki issue at this point. 
>>>>>>>
>>>>>>> Will do. Thanks for your help.
>>>>>>> On Friday, 13 November 2020 at 18:10:15 UTC soren.b...@gmail.com 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Pretty sure it’s 64-bit. VM on Parallels on my MacBook with the 
>>>>>>>> default license and settings. Can’t imagine why it would matter 
>>>>>>>> anyway. 
>>>>>>>>
>>>>>>>> I’m stumped. I’d suggest you post this on the Anki forums at 
>>>>>>>> https://forums.ankiweb.net since it’s an Anki issue at this point.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, November 13, 2020 at 9:42:30 AM UTC-6 si wrote:
>>>>>>>>
>>>>>>>>> Hi Soren.
>>>>>>>>>
>>>>>>>>> >>> Do other links to

[tw5] Confused about reference to an empty variable in a filter

2020-11-22 Thread soren.b...@gmail.com
I'm trying to create a template that will take a value from a variable, if 
present, or from a field of the current tiddler if the variable isn't 
defined. My first try was this filter:

{{{ [else{!!myarticle}] }}}

To my surprise, the *else* doesn't work -- the filter works as expected if 
articleName is defined (the value of the variable articleName is output), 
but the output is just empty if articleName isn't defined, instead of 
containing the value of the *myarticle* field.

But this does work as expected:

{{{ [!is[blank]else{!!myarticle}] }}}

I don't follow *why* this works and the first version doesn't, though, and 
I couldn't find much in the manual about this, so I would be grateful if 
someone could enlighten me. Is there a difference between an empty-string 
item and an empty list, and the title constructor yields an empty-string 
item when used this way? Are there other situations when I should have this 
in mind?

-- 
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/ff9df5bf-e0fc-4019-ba0b-dcc69296859cn%40googlegroups.com.


[tw5] Re: Seeking suggestions for my use case

2020-11-20 Thread soren.b...@gmail.com
Author of TiddlyRemember here. Si is correct, you don't have to *host your 
wiki *on Node. You just have to have TiddlyWiki's Node version installed on 
your computer, so that TiddlyRemember can process your single-file wiki and 
extract the Anki questions.

On Sunday, November 15, 2020 at 7:25:37 AM UTC-6 Prestige wrote:

> Hello all!
>  First of all, wish you all a happy festive season (as it is here in 
> India). I use TiddlyWiki is for my notes and use ANKI for Spaced 
> repetition. I wanted to put forward my use case, and seek suggestions from 
> anyone and everyone :)
>
> Current Requirement:
>
>1. Multi-Device Access
>   1. Since I use Android and Ipad along with PC, it would be 
>   beneficial if I can read and/or edit my wiki on any of these devices.
>   2. Currently, I use a bulky way to do so. Sync on Github (single 
>   file) -- It doesn't feel feasible as my wiki already going big.
>2. ANKI Sync
>   1. I found that there is a plugin called 'TiddlyRemember' which 
>   seems to fit my use.
>   2. But it needs to TW to be installed on the node and if I do that 
>   I will lose the cross-platform editing capability.
>   3. I am willing to make sync on the PC, but I would love to keep 
>   the multi-device access. I don't know how to work it out.
>3. Export my notes
>   1. I would be great if I could export my tiddlers/notes in some 
>   format like Markdown. 
>   2. Also, if it's possible can I, somehow, make my notes to be 
>   available in my 'tiddlers' folder as markdown files instead of .tids?
>4. Backlinks of course.
>   1. I see that TiddlyResearch uses TiddlyRemember and Backlinking 
>   quite well.  
>   2. Also, there is a plugin someone mentioned here 
>    
> which 
>   can help create cards while annotating!! I couldn't find it yet. But I 
>   wonder if it works with TiddlyResearch?
>5. Free?!
>
>
> From what I can see from my own points above, I basically have problems in 
> setting up Tiddlywiki on Node while making it accessible to all my devices 
> (Maybe through Github).
>
> I will try installing TW on the node with TiddlyResearch and 
> TiddlyRemember and get back here :)
> Please help me if possible to make it cross-platform.
>
> THANKS for reading a rather long post.
>
> Regards,
> Prestige
>
>

-- 
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/53cb42b3-1664-45d4-8bc4-7889816b0cb4n%40googlegroups.com.


[tw5] Re: WikiWords vs Double Brackets

2020-11-19 Thread soren.b...@gmail.com
I use WikiWords in my Zettelkasten . 
Besides saving a couple of keystrokes, I actually like them aesthetically 
-- maybe because I'm a programmer, or just because I'm weird. And I think 
the restrictions in form 
 help me 
come up with concise names for things.

That said, I think it depends a lot on your application. I think my 
Zettelkasten just about hits the sweet spot for WikiWords:

   - Pages usually describe things or specific ideas, so concise nouns or 
   phrases are usually the titles
   - Extensive wiki I spend a lot of time in, so getting used to a more 
   complicated naming convention is not an issue
   - Mostly personal -- any utility it has to other people is accidental

I would use titles with spaces if I were formally publishing something with 
TiddlyWiki, or sharing a wiki with others.

Ed mentioned the weirdness of having to write names like "BookMarks." It's 
not just a little weird, it also means you're a lot more likely to 
accidentally create a duplicate tiddler by adding the capitals a different 
way the next time (IIRC, Wikipedia started out with WikiWords titles at the 
very beginning, and this was one of the main reasons they nixed it). So if 
something doesn't naturally contain multiple words, I don't try to force 
the issue and just use the brackets when I need to.

I think Tones was alluding to the fact that you don't necessarily have to 
use the titles for display if they don't look pretty. You can always use 
the double-bracket form and enter a different link text than the name 
(e.g., [[MyTiddler|a description of what this tiddler is]]). If it's 
defined, the *caption* field on tiddlers is used by most of the 
table-of-contents features and a great number of other places in 
TiddlyWiki, in place of the title. I use the caption field pretty 
extensively in the customizations I make too. For instance, for book 
titles, I come up with a short slug with the most important couple of words 
and the year of publication and use that as the title, but then in *caption 
*I fill in the complete title and subtitle, and that's what shows up in the 
infobox at the top of the tiddler and in collected bibliographies. (Here's 
a good example 
.)

Even a bit more on this 
 over in the 
informational notes in my Zettelkasten itself.

On Wednesday, November 18, 2020 at 1:05:34 PM UTC-6 Ed Heil wrote:

> As a relatively new tiddlywiki user, I'm always interested in the opinions 
> of people who have been TiddlyWiki'ing for a long time, and this topic came 
> to mind.
>
> When I first started using TW (earlier this year), I tended to use 
> WikiWords for titles.  I've since gone almost entirely to double brackets 
> (meaning titles may be single words or may have spaces in them).  When you 
> start using titles as tags, and use things like Table-Of-Contents plugins, 
> it seems like an obvious move to remove the "multiple words, no spaces" 
> restriction from titles.
>
> I'm curious though if any experienced tiddlywikists still use WikiWords, 
> and if so what they find valuable about them.
>
>
>

-- 
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/1c265319-07f5-409f-94df-8eae40bc97fen%40googlegroups.com.


[tw5] No-op filter expression

2020-11-19 Thread soren.b...@gmail.com
Is there a best practice for creating a filter step (or entire filter run) 
that doesn't do anything (passes inputs through to outputs)?

My use case: I'm using the *subfilter* operator where the subfilter is 
pulled from a temp tiddler controlled by a checkbox. When the checkbox is 
checked, I want to apply an additional filter; when it's unchecked I want 
no additional criteria on top of what's already in the filter run before 
coming to *subfilter*. I tried just leaving the temp tiddler blank, but 
that causes there to be no results since an empty filter always has no 
output.

I got it to work using *search[] *for the no-filter condition, but I'm not 
sure if there's a cleaner way to do this. Instinctively it feels like that 
could be a bit slow, too, depending on the implementation.

-- 
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/8aad5fb2-3001-4603-b04f-6a729e8abcfen%40googlegroups.com.


Re: [tw5] Re: Introducing TiddlyRemember, a tool for integrating TiddlyWiki with Anki spaced-repetition flashcards

2020-11-17 Thread soren.b...@gmail.com
As Sebastián says, you can use links to external images that will be 
accessible from Anki, but image transclusion is not supported...for now. 
I'd like to support it in the future, but it involves hooking into a whole 
new section of Anki's API that I've never used before, so it's not 
something I can quickly throw together.

On Sunday, November 15, 2020 at 4:18:49 PM UTC-6 Prestige wrote:

> Does TiddlyRemember support images in cards? does it have to be links or I 
> can drag drop?
>
> On Monday, 16 November 2020 at 03:35:22 UTC+5:30 Prestige wrote:
>
>> Thanks
>> This is cool.
>>
>>
>> On Monday, 16 November 2020 at 01:07:55 UTC+5:30 mehequeda...@gmail.com 
>> wrote:
>>
>>> You can add an anki_tag field to any tiddler. Then, questions in 
>>> tiddlers tagged with the first tiddler would get synced.
>>>
>>> For example, in TiddlyRemember I have:
>>> [image: image.png]
>>> Then I get this synced:
>>> [image: imagen.png]
>>>
>>> --
>>> Sebastián
>>>
>>>
>>> On Sun, 15 Nov 2020 at 18:35, Prestige  wrote:
>>>
>>>> Any way to add tags to the cards?
>>>>
>>>> On Saturday, 14 November 2020 at 00:59:28 UTC+5:30 si wrote:
>>>>
>>>>> >>> I’d suggest you post this on the Anki forums at 
>>>>> https://forums.ankiweb.net since it’s an Anki issue at this point. 
>>>>>
>>>>> Will do. Thanks for your help.
>>>>> On Friday, 13 November 2020 at 18:10:15 UTC soren.b...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> Pretty sure it’s 64-bit. VM on Parallels on my MacBook with the 
>>>>>> default license and settings. Can’t imagine why it would matter anyway. 
>>>>>>
>>>>>> I’m stumped. I’d suggest you post this on the Anki forums at 
>>>>>> https://forums.ankiweb.net since it’s an Anki issue at this point.
>>>>>>
>>>>>>
>>>>>> On Friday, November 13, 2020 at 9:42:30 AM UTC-6 si wrote:
>>>>>>
>>>>>>> Hi Soren.
>>>>>>>
>>>>>>> >>> Do other links to websites work in Anki? Perhaps your default 
>>>>>>> browser is configured wrong and Anki can't figure out what to do with 
>>>>>>> links.
>>>>>>>
>>>>>>> I have no problem with Anki opening websites. Anything with the 
>>>>>>> prefix "https://; will open in the browser, but when I use "file://" 
>>>>>>> nothing happens.
>>>>>>>
>>>>>>> I also tried this on a totally different Windows 10 machine with an 
>>>>>>> almost fresh install and still it wouldn't work. It also didn't work 
>>>>>>> when I 
>>>>>>> tried clicking the link from AnkiWeb. This was all with me creating the 
>>>>>>> link exactly as you describe above (the file opens if I copy the path 
>>>>>>> directly into the browser).
>>>>>>>
>>>>>>> Did you try it on a 64 bit Windows 10, or some earlier version (no 
>>>>>>> idea if that would matter)?
>>>>>>>
>>>>>>> On Friday, 13 November 2020 at 13:20:43 UTC soren.b...@gmail.com 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I just tried it on Windows and it works fine for me. Downloaded an 
>>>>>>>> HTML to my desktop and added to the card:
>>>>>>>>
>>>>>>>> link
>>>>>>>>
>>>>>>>> Click the link and test.html opens in the browser.
>>>>>>>>
>>>>>>>> I'm on Anki 2.1.34 (a couple versions behind, but can't think of 
>>>>>>>> anything that would have changed here).
>>>>>>>>
>>>>>>>> Do other links to websites work in Anki? Perhaps your default 
>>>>>>>> browser is configured wrong and Anki can't figure out what to do with 
>>>>>>>> links.
>>>>>>>>
>>>>>>>> On Friday, November 13, 2020 at 6:18:22 AM UTC-6 si wrote:
>>>>>>>>
>>>>>>>>> Hi Soren thanks for your reply.
>>>>>>>>>
>>>>>>>>> >>> The URL you list is not a valid file: URL, however -- 

Re: [tw5] Re: Introducing TiddlyRemember, a tool for integrating TiddlyWiki with Anki spaced-repetition flashcards

2020-11-13 Thread soren.b...@gmail.com
Pretty sure it’s 64-bit. VM on Parallels on my MacBook with the 
default license and settings. Can’t imagine why it would matter anyway. 

I’m stumped. I’d suggest you post this on the Anki forums at 
https://forums.ankiweb.net since it’s an Anki issue at this point.


On Friday, November 13, 2020 at 9:42:30 AM UTC-6 si wrote:

> Hi Soren.
>
> >>> Do other links to websites work in Anki? Perhaps your default browser 
> is configured wrong and Anki can't figure out what to do with links.
>
> I have no problem with Anki opening websites. Anything with the prefix 
> "https://; will open in the browser, but when I use "file://" nothing 
> happens.
>
> I also tried this on a totally different Windows 10 machine with an almost 
> fresh install and still it wouldn't work. It also didn't work when I tried 
> clicking the link from AnkiWeb. This was all with me creating the link 
> exactly as you describe above (the file opens if I copy the path directly 
> into the browser).
>
> Did you try it on a 64 bit Windows 10, or some earlier version (no idea if 
> that would matter)?
>
> On Friday, 13 November 2020 at 13:20:43 UTC soren.b...@gmail.com wrote:
>
>> I just tried it on Windows and it works fine for me. Downloaded an HTML 
>> to my desktop and added to the card:
>>
>> link
>>
>> Click the link and test.html opens in the browser.
>>
>> I'm on Anki 2.1.34 (a couple versions behind, but can't think of anything 
>> that would have changed here).
>>
>> Do other links to websites work in Anki? Perhaps your default browser is 
>> configured wrong and Anki can't figure out what to do with links.
>>
>> On Friday, November 13, 2020 at 6:18:22 AM UTC-6 si wrote:
>>
>>> Hi Soren thanks for your reply.
>>>
>>> >>> The URL you list is not a valid file: URL, however -- it needs to 
>>> use forward slashes even on Windows.
>>>
>>> Thanks, I wasn't sure which to use here but I had tried every 
>>> combination and it still didn't work.
>>>
>>> >>> It does appear that the permalink generation in TiddlyRemember 
>>> applied during the sync is incorrectly putting a backslash at the end of 
>>> URLs that can't accept one there.
>>>
>>> I had noticed this, but I have tested with the correct permalink and it 
>>> still won't work. I've also tried putting the HTML directly into the card 
>>> (>> href="file:///C:/Users/Si/Desktop/file.html">link using 
>>> Ctrl+Shift+X), but again when I click the link while viewing the card 
>>> nothing happens.
>>>
>>> I've noticed that there is an add-on 
>>> <https://ankiweb.net/shared/info/879473266> for opening files in an 
>>> external program. I got it to work with an HTML file, but because it looks 
>>> for a specific extension at the end of the path, it doesn't work with 
>>> permalinks that end in "#tiddler".
>>>
>>> Is it possible that Anki just can't open external HTML files on Windows?
>>> On Friday, 13 November 2020 at 00:08:42 UTC soren.b...@gmail.com wrote:
>>>
>>>> Si,
>>>>  
>>>> It works for me when I just paste an  tag into the HTML editor 
>>>> directly on a card (Ctrl-Shift-X while you have a field selected). The URL 
>>>> you list is not a valid file: URL, however -- it needs to use forward 
>>>> slashes even on Windows. It's possible that is the issue, but I don't have 
>>>> a Windows machine handy at the moment to test on and see if that breaks 
>>>> something.
>>>>
>>>> It does appear that the permalink generation in TiddlyRemember applied 
>>>> during the sync is incorrectly putting a backslash at the end of URLs that 
>>>> can't accept one there. On my first try I ended up with 
>>>> "/home/soren/test.html/#TiddlerName" as the permalink, which is invalid 
>>>> since an HTML file is not a directory, and this resulted in nothing 
>>>> happening when I clicked the link. I opened an issue 
>>>> <https://github.com/sobjornstad/TiddlyRemember/issues/31> for that. To 
>>>> see if this is what's causing your problem, you can try manually changing 
>>>> the text in the Permalink field of a card and removing that extra slash.
>>>>
>>>> On Thursday, November 12, 2020 at 3:55:47 PM UTC-6 si wrote:
>>>>
>>>>> Hi Soren.
>>>>>
>>>>> This might be more of an Anki question, but I have been unable to get 
>>>>

Re: [tw5] Re: Introducing TiddlyRemember, a tool for integrating TiddlyWiki with Anki spaced-repetition flashcards

2020-11-13 Thread soren.b...@gmail.com
I just tried it on Windows and it works fine for me. Downloaded an HTML to 
my desktop and added to the card:

link

Click the link and test.html opens in the browser.

I'm on Anki 2.1.34 (a couple versions behind, but can't think of anything 
that would have changed here).

Do other links to websites work in Anki? Perhaps your default browser is 
configured wrong and Anki can't figure out what to do with links.

On Friday, November 13, 2020 at 6:18:22 AM UTC-6 si wrote:

> Hi Soren thanks for your reply.
>
> >>> The URL you list is not a valid file: URL, however -- it needs to use 
> forward slashes even on Windows.
>
> Thanks, I wasn't sure which to use here but I had tried every combination 
> and it still didn't work.
>
> >>> It does appear that the permalink generation in TiddlyRemember applied 
> during the sync is incorrectly putting a backslash at the end of URLs that 
> can't accept one there.
>
> I had noticed this, but I have tested with the correct permalink and it 
> still won't work. I've also tried putting the HTML directly into the card ( href="file:///C:/Users/Si/Desktop/file.html">link using 
> Ctrl+Shift+X), but again when I click the link while viewing the card 
> nothing happens.
>
> I've noticed that there is an add-on 
> <https://ankiweb.net/shared/info/879473266> for opening files in an 
> external program. I got it to work with an HTML file, but because it looks 
> for a specific extension at the end of the path, it doesn't work with 
> permalinks that end in "#tiddler".
>
> Is it possible that Anki just can't open external HTML files on Windows?
> On Friday, 13 November 2020 at 00:08:42 UTC soren.b...@gmail.com wrote:
>
>> Si,
>>  
>> It works for me when I just paste an  tag into the HTML editor 
>> directly on a card (Ctrl-Shift-X while you have a field selected). The URL 
>> you list is not a valid file: URL, however -- it needs to use forward 
>> slashes even on Windows. It's possible that is the issue, but I don't have 
>> a Windows machine handy at the moment to test on and see if that breaks 
>> something.
>>
>> It does appear that the permalink generation in TiddlyRemember applied 
>> during the sync is incorrectly putting a backslash at the end of URLs that 
>> can't accept one there. On my first try I ended up with 
>> "/home/soren/test.html/#TiddlerName" as the permalink, which is invalid 
>> since an HTML file is not a directory, and this resulted in nothing 
>> happening when I clicked the link. I opened an issue 
>> <https://github.com/sobjornstad/TiddlyRemember/issues/31> for that. To 
>> see if this is what's causing your problem, you can try manually changing 
>> the text in the Permalink field of a card and removing that extra slash.
>>
>> On Thursday, November 12, 2020 at 3:55:47 PM UTC-6 si wrote:
>>
>>> Hi Soren.
>>>
>>> This might be more of an Anki question, but I have been unable to get 
>>> permalinks to work in the way that you describe here 
>>> <https://sobjornstad.github.io/TiddlyRemember/#Configuring%20the%20Anki%20add-on>
>>> .
>>>
>>> It seems to me that Anki won't open files that are outside of the 
>>> "collection.media" folder. I've been trying all sorts of permutations of >> href="file:///C:\path\to\file.html">link but when I click the link 
>>> nothing happens.
>>>
>>> Is there some trick to get this to work that I'm not aware of?
>>>
>>> On Saturday, 30 May 2020 at 14:13:39 UTC+1 soren.b...@gmail.com wrote:
>>>
>>>> It's a thought. A simple SR algorithm is not particularly hard, so that 
>>>> would be doable. But recently I've been seeing sites pop up that all do 
>>>> their own spaced-repetition implementation, and the result is if you use 
>>>> more than one of them, pretty soon you have 8 places to go every day to 
>>>> review flashcards. I'd rather not be responsible for a fifteenth 
>>>> competing standard <https://xkcd.com/927/>.
>>>>
>>>> Anki also has a really nice mobile app, which is something TW still 
>>>> struggles with.
>>>>
>>>>
>>>> On Saturday, May 30, 2020 at 5:07:12 AM UTC-5, TonyM wrote:
>>>>>
>>>>> Build the whole solution in tiddlywiki would do it.
>>>>>
>>>>> Tony
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/24b834c2-a3ab-4852-b43b-ef4666f4da87n%40googlegroups.com.


[tw5] Re: Improved references in TiddlyRemember flashcards

2020-11-12 Thread soren.b...@gmail.com
This looks really cool, thanks for sharing!

On Monday, November 9, 2020 at 7:01:18 AM UTC-6 si wrote:

> Hi Soren et al.
>
> I've been playing around with the dynannotate plugin recently and in my 
> opinion it combines really nicely with TiddlyRemember so I thought I'd 
> share.
>
> You can highlight text then attach flashcards directly to that bit of 
> highlighted text. See this gif for an illustration:
>
> https://imgur.com/zzgCtEk
>
> You can get the dynannotate plugin from the official library.
>
> Si
>
> On Sunday, 2 August 2020 17:29:34 UTC+1, Soren Bjornstad wrote:
>>
>> Hi all,
>>
>> In the follow-up around the web to the release of TiddlyRemember 
>> ,
>>  
>> some people took issue with the approach of putting questions in macro 
>> calls, wishing instead questions could be placed in individual tiddlers. 
>> Well, it turns out this was actually possible the whole time and neither I 
>> nor anyone asking ever thought of it! All you have to do is create a sort 
>> of "aggregation" tiddler with a list snippet like this:
>>
>> <$list filter="[tag[TiddlyRememberNote]]">
>>   <$macrocall $name=rememberq id={{!!created}} question={{!!question}} 
>> answer={{!!answer}}/>
>> 
>>
>> Then you just create tiddlers with question and answer fields tagged with 
>> *TiddlyRememberNote*, and all the questions will show up in this 
>> tiddler. Make sure that the filter pulling the tiddlers that should be 
>> searched to retrieve notes matches this tiddler, and you're set. Of course, 
>> this is just one example – any data you can retrieve with filters can be 
>> used to generate TiddlyRemember notes in the same fashion.
>>
>> There's one issue with the version above: the reference on each Anki note 
>> would just point back to the aggregation tiddler, which isn't very useful. 
>> TiddlyRemember 1.1.0 (released today) now supports an optional fourth
>> * reference* parameter to the macro, which causes the reference to point 
>> back to a specified tiddler instead of the tiddler the macro call is found 
>> in. In the example above, we could say *reference={{!!title}}* and the 
>> references would then point back to the actual question tiddler instead.
>>
>> This can also be used to fix a problem that occasionally arose in the 
>> previous version, where if you needed to transclude a tiddler containing 
>> TiddlyRemember questions into another tiddler, the source would randomly 
>> oscillate between the two since either one looked like it contained the 
>> question!\
>>
>> For more, see Dynamically generating TiddlyRemember notes 
>> 
>>  and 
>> Soft and hard references 
>> .
>>
>

-- 
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/5758faa0-6866-4ce5-904f-5a590d7d38e8n%40googlegroups.com.


Re: [tw5] Re: Introducing TiddlyRemember, a tool for integrating TiddlyWiki with Anki spaced-repetition flashcards

2020-11-12 Thread soren.b...@gmail.com
Si,
 
It works for me when I just paste an  tag into the HTML editor 
directly on a card (Ctrl-Shift-X while you have a field selected). The URL 
you list is not a valid file: URL, however -- it needs to use forward 
slashes even on Windows. It's possible that is the issue, but I don't have 
a Windows machine handy at the moment to test on and see if that breaks 
something.

It does appear that the permalink generation in TiddlyRemember applied 
during the sync is incorrectly putting a backslash at the end of URLs that 
can't accept one there. On my first try I ended up with 
"/home/soren/test.html/#TiddlerName" as the permalink, which is invalid 
since an HTML file is not a directory, and this resulted in nothing 
happening when I clicked the link. I opened an issue 
<https://github.com/sobjornstad/TiddlyRemember/issues/31> for that. To see 
if this is what's causing your problem, you can try manually changing the 
text in the Permalink field of a card and removing that extra slash.

On Thursday, November 12, 2020 at 3:55:47 PM UTC-6 si wrote:

> Hi Soren.
>
> This might be more of an Anki question, but I have been unable to get 
> permalinks to work in the way that you describe here 
> <https://sobjornstad.github.io/TiddlyRemember/#Configuring%20the%20Anki%20add-on>
> .
>
> It seems to me that Anki won't open files that are outside of the 
> "collection.media" folder. I've been trying all sorts of permutations of  href="file:///C:\path\to\file.html">link but when I click the link 
> nothing happens.
>
> Is there some trick to get this to work that I'm not aware of?
>
> On Saturday, 30 May 2020 at 14:13:39 UTC+1 soren.b...@gmail.com wrote:
>
>> It's a thought. A simple SR algorithm is not particularly hard, so that 
>> would be doable. But recently I've been seeing sites pop up that all do 
>> their own spaced-repetition implementation, and the result is if you use 
>> more than one of them, pretty soon you have 8 places to go every day to 
>> review flashcards. I'd rather not be responsible for a fifteenth 
>> competing standard <https://xkcd.com/927/>.
>>
>> Anki also has a really nice mobile app, which is something TW still 
>> struggles with.
>>
>>
>> On Saturday, May 30, 2020 at 5:07:12 AM UTC-5, TonyM wrote:
>>>
>>> Build the whole solution in tiddlywiki would do it.
>>>
>>> Tony
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5870e2d5-c75d-43ee-8f55-31962a4ddca4n%40googlegroups.com.


[tw5] Re: I'm looking for a quote

2020-09-15 Thread soren.b...@gmail.com
I'm pretty sure Florian has it. And I bet you encountered it one step out 
from the Zettelkasten bibliography I pointed you to a few weeks ago:
https://zettelkasten.sorenbjornstad.com/#ZettelkastenDetailsTrap

On Tuesday, September 15, 2020 at 6:29:01 PM UTC-5 janflor...@gmail.com 
wrote:

> Hi Bimba,
>
> I feel like this is coming from Bret Victor: “The Future of Programming”
>
> https://vimeo.com/71278954
>
> at 31′ 22″
>
> “The most dangerous thought you can have as a creative person is to
> think you know what you're doing.”
>
> and at 32′ 22″
>
> “I think the first step is you have to say to yourself: ‘I don't know
> what I'm doing. We as a field don't know what we're doing.’ I think
> you have to say: ‘We don't know what programming is. We don't know
> what computing is. We don't even know what a computer is.’ And once
> you truly understand that and once you truly believe that then you're
> free and you can think anything.”
>
> See the slides at http://worrydream.com/dbx/
>
> Regards,
> Florian
>
> Am 29.08.20 um 12:12 schrieb bimlas:
> > I’ve read a quote before about programming, but if I remember correctly, 
> I 
> > found it about note-taking methods. Does anyone know? Where does this 
> quote 
> > come from?
> > It was similar, if I remember correctly:
> > "When we start programming, we have to forget what programming is, what 
> a 
> > computer is, and that's the only way we can be really creative."
> > 
>

-- 
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/d45021f4-05f2-4e61-b590-936920c0d8f7n%40googlegroups.com.


[tw5] Re: Improved references in TiddlyRemember flashcards

2020-09-11 Thread soren.b...@gmail.com
Mark,

The links in my original post and in si's reply work, but in the quoted 
portion of your message, the %20's are replaced with +'s. I'm guessing 
there's a bug either in the new Google Groups or in your mail client (not 
sure how you're reading). If you can't figure out what's going on, try just 
replacing + with %20 in the address bar once you click the link.

On Friday, September 11, 2020 at 12:28:47 PM UTC-5 Mark S. wrote:

> There doesn't seem to be any content at either of these two links. 
> Thanks!
>
>
> On Sunday, August 2, 2020 at 9:29:34 AM UTC-7, Soren Bjornstad wrote:
>>
>> Hi all,
>>
>> In the follow-up around the web to the release of TiddlyRemember 
>> ,
>>  
>> some people took issue with the approach of putting questions in macro 
>> calls, wishing instead questions could be placed in individual tiddlers. 
>> Well, it turns out this was actually possible the whole time and neither I 
>> nor anyone asking ever thought of it! All you have to do is create a sort 
>> of "aggregation" tiddler with a list snippet like this:
>>
>> <$list filter="[tag[TiddlyRememberNote]]">
>>   <$macrocall $name=rememberq id={{!!created}} question={{!!question}} 
>> answer={{!!answer}}/>
>> 
>>
>> Then you just create tiddlers with question and answer fields tagged with 
>> *TiddlyRememberNote*, and all the questions will show up in this 
>> tiddler. Make sure that the filter pulling the tiddlers that should be 
>> searched to retrieve notes matches this tiddler, and you're set. Of course, 
>> this is just one example – any data you can retrieve with filters can be 
>> used to generate TiddlyRemember notes in the same fashion.
>>
>> There's one issue with the version above: the reference on each Anki note 
>> would just point back to the aggregation tiddler, which isn't very useful. 
>> TiddlyRemember 1.1.0 (released today) now supports an optional fourth
>> * reference* parameter to the macro, which causes the reference to point 
>> back to a specified tiddler instead of the tiddler the macro call is found 
>> in. In the example above, we could say *reference={{!!title}}* and the 
>> references would then point back to the actual question tiddler instead.
>>
>> This can also be used to fix a problem that occasionally arose in the 
>> previous version, where if you needed to transclude a tiddler containing 
>> TiddlyRemember questions into another tiddler, the source would randomly 
>> oscillate between the two since either one looked like it contained the 
>> question!\
>>
>> For more, see Dynamically generating TiddlyRemember notes 
>> 
>>  and 
>> Soft and hard references 
>> .
>>
>

-- 
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/a81c9c3f-ea5e-4f78-9ba1-e30d633098bdn%40googlegroups.com.