[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread Mohammad
Thanks Mario,
 I would appreciate to notify community!

Best
Mohammad

On Tuesday, June 11, 2019 at 1:43:47 AM UTC+4:30, PMario wrote:
>
> Hi, 
> I'm creating a new PR atm. ... 
>
> An official "exclude" parameter will be part of the fix. 
>
> The "focused-tiddler" plugin will not be part of the PR. It will be a new 
> wikilabs plugin.
>
> -mario
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa122e8b-505c-40ef-afd4-54853268eda9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [tw] [TW5] using highlight.js for transcluded code

2019-06-10 Thread leoperbo
Your answer pushed me to verify and I found a custom general stylesheet 
which includes a custom color for "code", commented it and then the 
transclusion via codeblock widget worked honoring the standard.

It's curious that had been working without double quotes too...

Thank you and sorry for the false "bug"!

El lunes, 10 de junio de 2019, 15:29:16 (UTC-5), Jeremy Ruston escribió:
>
> Hi Leoperbo
>
> That shouldn’t be the case. I wonder if there’s something else going on: I 
> can't duplicate the problem on 
> https://tiddlywiki.com/editions/full/index.html
>
>
> Best wishes
>
> Jeremy
>
>
> For what is worth, in TW *5.1.19* I tried:
>
> <$codeblock language="bash" code={{my_bash_script.sh}}/>
>
>
> And didn't get highlights, but when I tried without doble quotes arround 
> language value:
>
> <$codeblock language=bash code={{my_bash_script.sh}}/>
>
> And the highlights appeared.
>
> El domingo, 4 de octubre de 2015, 16:46:01 (UTC-5), Jeremy Ruston escribió:
>>
>> Hi Tobias
>>
>>
>> Using highlight plugin 
>> , how would I 
>> actually highlight the source of a core tiddler rather than the code to 
>> retrieve it?
>>
>> For example:
>>
>> ```javascript
>> <$view tiddler="$:/core" subtiddler="$:/core/modules/startup/info.js"/>
>> ```
>>
>> The *codeblock* widget appears to be missing any documentation.
>>
>> Trying to decipher it, I noticed that this won't work:
>>
>> <$codeblock language="javascript"><$view tiddler=<> 
>> subtiddler={{!!subtiddler}}/>
>>
>> So, how would I do...
>>
>> <$codeblock language="javascript" code=?!?>/>
>>
>>
>> Try:
>>
>> <$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>> Best wishes,
>>
>> — tb
>>
>> -- 
>> 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 tiddl...@googlegroups.com.
>> To post to this group, send email to tiddl...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/a846ef32-9f1f-4540-b721-c84849cef90b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f4ec7cbe-f445-47d5-91eb-c3750616f824%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6080abb1-782f-4995-a229-d82ab3d60987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Update of Archipel : TiddlyWiki toc based on D3JS

2019-06-10 Thread Jan

Dear Silverfox,
I just rediscovered your great Archipel-Knowledgemap 
onhttp://archipel.tiddlyspot.com

I would definitively like to use it but I still have some desiderata:
It would be great...
- if the last step opend the tiddler or triggered a modal.
- it the labels one level below were also shown and clickable
- if there was a Fullscreen view

But again I have to say: Great Work!

Cheers Jan





Am 03.11.2018 um 21:17 schrieb AlexHough:

Silverfox,

I really like it.

What I would like is a feature TiddlyMap has: double click on the map 
and open the tiddler.


I happen to know Jeremy is a big fan of the zoomable interface. I 
wonder .. how might this development fit into wider ambitions for ZUIs 
in TW


best wishes
Alex

On Friday, 2 November 2018 13:58:26 UTC, Silverfox wrote:

Tony,

Thanks for your comments,
I imagine to be able to use different types of criteria to sort
and graph the tiddlers.

I keep your comment in mind, even if my time to work on it is limited.

Regards
Silverfox


On Thursday, November 1, 2018 at 11:54:44 PM UTC+1, TonyM wrote:

Silverfox,

This looks like a very powerful way to represent information.

Do you expect to have more labels/names appearing so
navigation is not only visual?

I would be interested if I can apply such a tool on top of my
existing TiddlyWikis with various kinds of data, and would
perhaps need to use field references rather than tag
hierarchies. Please keep this in mind as you work on this.

Thanks for sharing this could really help visualising
information knowledge.

Regards
Tony

On Friday, 2 November 2018 01:54:36 UTC+11, Silverfox wrote:

A quick mail to share my last update of "Archipel" which
uses D3JS to visualize the table of content of TiddlyWiki
using different knowledge maturity levels
http://archipel.tiddlyspot.com

Do not hesitate to comment

Silverfox

--
You received this message because you are subscribed to the Google 
Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to tiddlywiki+unsubscr...@googlegroups.com 
.
To post to this group, send email to tiddlywiki@googlegroups.com 
.

Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b4e5966c-e462-4884-8e5a-f465b513%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5CFECDB0.7030704%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread PMario
Hi, 
I'm creating a new PR atm. ... 

An official "exclude" parameter will be part of the fix. 

The "focused-tiddler" plugin will not be part of the PR. It will be a new 
wikilabs plugin.

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b0edb190-a321-4862-8933-af43be984676%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: SourceStorm experiment

2019-06-10 Thread David Gifford
Hi Eric

Wow, it has been a long time since I looked at that SourceStorm!

You probably want to just add tag macros for each menu item you want in
your topmenu. See
https://tiddlywiki.com/#tag%20Macro:%5B%5Btag%20Macro%5D%5D%20%5B%5Btag%20Macro%20(Examples)%5D%5D

<>


Another approach would be to download the appear plugin (
http://tobibeer.github.io/tw5-plugins/#appear), then write something like
this in a top menu:

<$appear show="slide down" $state="pink-button" selectedClass="pink">

<<$list-links filter:"[tags[b12]]">>





By the way, thanks for asking - I was not aware of the very simple tag
macro. Your question led to me learning something, too.

Blessings,

David Gifford
Mexico team leader, Mexico City

*Resonate Global Mission*
*Engaging People. Embracing Christ.*
A Ministry of the Christian Reformed Church
resonateglobalmission.org



On Mon, Jun 10, 2019 at 3:29 PM Eric Kofoid  wrote:

> Hi David,
>
> I am transitioning a lab wiki from TWC to TW5. The original interface had
> several drop-down menu items at the top of the page which showed lists of
> tiddlers according to tags. For instance, one menu item had the title
> "B12". When clicked, it presented a list of tiddlers with the tag B12. If
> an item in the list was clicked, then the menu closed and that tiddler was
> opened (I've attached an image of the opened menu). This provided a useful
> and attractive set of shortcuts frequently used by my colleagues.
>
> I uploaded your "topmenu" plugin and its dependents. Immediately, two
> sample menus appeared, "tagpill1" and "tagpill2". I am encouraged, as this
> is the format I wish to emulate. However, I can't figure out how to add or
> subtract them, or how to edit them. How, for instance, would I create a
> "B12" menu such as I described above.
>
> Thanks very much for all the excellent work you've done in creating tools
> for interface design. All I need now is to learn how to use them!
>
> Cheers,
>
> Eric
>
>
> On Saturday, January 7, 2017 at 8:40:40 PM UTC-8, David Gifford wrote:
>>
>> Hi all,
>>
>> This is probably the first time I have come up with a new TiddlyWiki
>> adaptation without asking for help! Yay!
>>
>> SourceStorm is an adaptation I did for myself to
>>
>> 1) create indexes of where to find topics in the books and ebooks in my
>> library and files on my Cloud Drive
>> 2) keep track of what chapters or pages I have read in each book
>> 3) Also add highlights I add to webpages using Genius
>> 4) Pin the tab in Firefox or open in the sidebar with a sidebar extension
>> in Firefox
>>
>> Link: http://giffmex.org/experiments/sourcestorm.html
>>
>> Most of my adaptations are for actual quotes and notes. This adaptation
>> is for briefly summarizing the thrust of a highlight in a book, followed by
>> the source.
>>
>> I create empty *source tiddlers* whose existence tells me I have
>> consulted the source in question, and whose titles tell me what pages or
>> chapters I have added to this file, and tiddlers listed as having an UNF
>> tag tell me I have not finished the notetaking process for them. The
>> Sources search tiddler shows me all tiddlers tagged source, and the UNF
>> tiddler shows me all tiddlers tagged UNF.
>>
>> The *project tiddlers* are either broad topics under which the
>> subprojects appear, or subprojects in which the notes are placed.
>>
>> Both source tiddlers and project tiddlers are created with new here
>> buttons
>>
>> In edit template I have a kind of place holder for adding the source I am
>> workig from at the moment, which I then copy and paste after each note in
>> the tiddler.
>>
>> The topmenu lets me alternate between viewing links to children tiddlers
>> in a list search mode, and viewing the titles and text of children tiddlers
>> as a printable index on that topic. (Open the tiddler John and experiment
>> with the topmenu buttons to see the difference).
>>
>> So this will be a growing index of all the info in my library. I can add
>> content by book chapters, or as a project where I research a given topic.
>>
>> My expected process will be:
>>
>> 1. Read a book chapter and take written notes as brief summaries, with
>> page #
>> OR
>> 1. Read a webpage, highlight with Genius if needed, and grab the link
>>
>> 2. Transfer the summaries to the subprojects to which they belong
>>
>> 3. Copy and paste the source (author and title) from the edit template
>> place holder, after the summary
>> OR
>> or copy and paste the URL after the summary
>>
>> 4. Create an empty source tiddler under the broad topic entitled with the
>> book title abbreviation, the author if need be, and the chapters or pages I
>> have read
>>
>> 5. Open a given broad topic, close the Links view template tiddler and
>> open the Contents view template tiddler from the topmenu. This will give me
>> a viewable, printable index of the topic with all its subtopics.
>>
>> I did not create an empty version, so you would need to import the system
>> tiddlers (tiddlers with the $:/ prefix), 

[tw5] Re: SourceStorm experiment

2019-06-10 Thread Eric Kofoid
Hi David,

I am transitioning a lab wiki from TWC to TW5. The original interface had 
several drop-down menu items at the top of the page which showed lists of 
tiddlers according to tags. For instance, one menu item had the title 
"B12". When clicked, it presented a list of tiddlers with the tag B12. If 
an item in the list was clicked, then the menu closed and that tiddler was 
opened (I've attached an image of the opened menu). This provided a useful 
and attractive set of shortcuts frequently used by my colleagues.

I uploaded your "topmenu" plugin and its dependents. Immediately, two 
sample menus appeared, "tagpill1" and "tagpill2". I am encouraged, as this 
is the format I wish to emulate. However, I can't figure out how to add or 
subtract them, or how to edit them. How, for instance, would I create a 
"B12" menu such as I described above.

Thanks very much for all the excellent work you've done in creating tools 
for interface design. All I need now is to learn how to use them!

Cheers,

Eric


On Saturday, January 7, 2017 at 8:40:40 PM UTC-8, David Gifford wrote:
>
> Hi all,
>
> This is probably the first time I have come up with a new TiddlyWiki 
> adaptation without asking for help! Yay!
>
> SourceStorm is an adaptation I did for myself to 
>
> 1) create indexes of where to find topics in the books and ebooks in my 
> library and files on my Cloud Drive
> 2) keep track of what chapters or pages I have read in each book
> 3) Also add highlights I add to webpages using Genius
> 4) Pin the tab in Firefox or open in the sidebar with a sidebar extension 
> in Firefox
>
> Link: http://giffmex.org/experiments/sourcestorm.html
>
> Most of my adaptations are for actual quotes and notes. This adaptation is 
> for briefly summarizing the thrust of a highlight in a book, followed by 
> the source.
>
> I create empty *source tiddlers* whose existence tells me I have 
> consulted the source in question, and whose titles tell me what pages or 
> chapters I have added to this file, and tiddlers listed as having an UNF 
> tag tell me I have not finished the notetaking process for them. The 
> Sources search tiddler shows me all tiddlers tagged source, and the UNF 
> tiddler shows me all tiddlers tagged UNF.
>
> The *project tiddlers* are either broad topics under which the 
> subprojects appear, or subprojects in which the notes are placed.
>
> Both source tiddlers and project tiddlers are created with new here buttons
>
> In edit template I have a kind of place holder for adding the source I am 
> workig from at the moment, which I then copy and paste after each note in 
> the tiddler.
>
> The topmenu lets me alternate between viewing links to children tiddlers 
> in a list search mode, and viewing the titles and text of children tiddlers 
> as a printable index on that topic. (Open the tiddler John and experiment 
> with the topmenu buttons to see the difference).
>
> So this will be a growing index of all the info in my library. I can add 
> content by book chapters, or as a project where I research a given topic.
>
> My expected process will be:
>
> 1. Read a book chapter and take written notes as brief summaries, with 
> page #
> OR
> 1. Read a webpage, highlight with Genius if needed, and grab the link
>
> 2. Transfer the summaries to the subprojects to which they belong
>
> 3. Copy and paste the source (author and title) from the edit template 
> place holder, after the summary
> OR
> or copy and paste the URL after the summary
>
> 4. Create an empty source tiddler under the broad topic entitled with the 
> book title abbreviation, the author if need be, and the chapters or pages I 
> have read
>
> 5. Open a given broad topic, close the Links view template tiddler and 
> open the Contents view template tiddler from the topmenu. This will give me 
> a viewable, printable index of the topic with all its subtopics.
>
> I did not create an empty version, so you would need to import the system 
> tiddlers (tiddlers with the $:/ prefix), plus the tiddlers Projects, 
> Sources search and UNF to an empty TW file.
>
> Feel free to pilfer anything helpful you find in this experiment, for your 
> own projects. Blessings
>
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/71b294ff-1569-429a-8243-8d97750b9775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [tw] [TW5] using highlight.js for transcluded code

2019-06-10 Thread Jeremy Ruston
Hi Leoperbo

That shouldn’t be the case. I wonder if there’s something else going on: I 
can't duplicate the problem on https://tiddlywiki.com/editions/full/index.html 




Best wishes

Jeremy


> For what is worth, in TW 5.1.19 I tried:
> 
> <$codeblock language="bash" code={{my_bash_script.sh}}/>
> 
> 
> And didn't get highlights, but when I tried without doble quotes arround 
> language value:
> 
> <$codeblock language=bash code={{my_bash_script.sh}}/>
> 
> And the highlights appeared.
> 
> El domingo, 4 de octubre de 2015, 16:46:01 (UTC-5), Jeremy Ruston escribió:
> Hi Tobias
> 
> 
>> Using highlight plugin 
>> , how would I actually 
>> highlight the source of a core tiddler rather than the code to retrieve it?
>> 
>> For example:
>> 
>> ```javascript
>> <$view tiddler="$:/core" subtiddler="$:/core/modules/startup/info.js"/>
>> ```
>> 
>> The codeblock widget appears to be missing any documentation.
>> 
>> Trying to decipher it, I noticed that this won't work:
>> 
>> <$codeblock language="javascript"><$view tiddler=<> 
>> subtiddler={{!!subtiddler}}/>
>> 
>> So, how would I do...
>> 
>> <$codeblock language="javascript" code=?!?>/>
> 
> Try:
> 
> <$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>
> 
> Best wishes
> 
> Jeremy.
> 
> 
>> 
>> Best wishes,
>> 
>> — tb
>> 
>> -- 
>> 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 tiddl...@ <>googlegroups.com .
>> To post to this group, send email to tiddl...@ <>googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/tiddlywiki 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/a846ef32-9f1f-4540-b721-c84849cef90b%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f4ec7cbe-f445-47d5-91eb-c3750616f824%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/F3202D58-6521-49CD-9DC2-0C3CD02CA113%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread Mohammad
Hi Mario,
 Is there any chance to have this refactored toc macro in TW 5.1.20?
Some features are really demanding by many users (like exclude,...)
Also the focused item and colored  toc item are really helpful!

--Mohammad

On Monday, May 6, 2019 at 12:54:42 AM UTC+4:30, PMario wrote:
>
> On Sunday, May 5, 2019 at 5:50:03 PM UTC+2, Mohammad wrote:
> ...
>
>>  I have two comments
>>
>
> Thx for testing.
>  
>
>>
>>1. By default when you open a tiddler from TOC on the sidebar it is 
>>open at top of story list and this makes confusion. You clicked on TOC 
>> item 
>>from top to bottom but you see tiddler from bottom to top and when scroll 
>>focused tiddlers is the reverse direction
>>
>> This setting can be changed in the ControlPanel: Settings: Tiddler 
> Opening Behaviour. ... It's just a test version, where I did test several 
> settings.  
>
>>
>>1. When an item in the TOC is red (means focused-tiddler) by hovering 
>>mouse it gets underline but loses its red color! This makes 
>>secondconfusion. I think focuses tiddler is highlighted even when pointer 
>>is on that.
>>
>> Same here. Just a test CSS. To show the possibilities. ... It needs more 
> refactoring. ... We may even add it to the palette, so users can change the 
> behaviour if they want. 
>
> Keep the feedback coming :)
>
> have fun!
> mario
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cb05a3c2-a028-40fc-9208-cde3b81b73c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Font in Text Editor

2019-06-10 Thread Jeremy Ruston
Hi Damon

> Very much appreciated and good to know that it wasn't something I was doing 
> or not doing.

Indeed, it’s very jarring when one runs into the unexpected consequences of the 
nested iframe.

> One question to which you may or may not know the answer. I had been using 
> the plugin edit-comptext which allows for auto completion of internal links. 
> Is there something that can be added to CodeMirror with this functionality? 
> Currently, it seems that you can use edit-comptext  with the default editor, 
> but not with CodeMirror.

There is an autocomplete plugin in the official plugin library that is 
activated with ctrl-space, but I haven’t used it myself:



Best wishes

Jeremy

> 
> Cheers,
> 
> Damon
> 
> 
> On Monday, June 10, 2019 at 3:00:12 AM UTC-5, Jeremy Ruston wrote:
> Hi Damon, h0p3,
> 
> The cause here is that the default editor uses an iframe to wrap the 
> textarea; it’s done so that the textarea focus is retained even if the user 
> clicks on a toolbar button. The problem, of course, is that the custom font 
> isn’t loaded into the iframe, and so isn’t available to the textarea.
> 
> You can workaround it by using the non-framed editor (which lacks the toolbar 
> buttons), but it may be worth trying the CodeMirror plugin.
> 
> Alternately, I think we’d need to add a mechanism for adding stylesheet 
> fragments to the editor iframe.
> 
> Best wishes
> 
> Jeremy
> 
> 
> 
>> On 9 Jun 2019, at 20:13, Damon Pritchett > wrote:
>> 
>> Hello again,
>> 
>> I'm having trouble getting my TW to recognize Google fonts. The font family 
>> and code font family take the fonts just fine, but I can't get the text 
>> editor to do it. I've looked through all of the stylesheets that I know of, 
>> but haven't been able to find the smoking gun. I'm embedding the fonts based 
>>  on the instructions found here: 
>> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
>>  
>> .
>> 
>> Any thoughts on how to get passed this. Right now, I'm using the generic 
>> monospace font, but I would like to use the Roboto Mono font (again, Roboto 
>> Mono works find in code font family, but not text editor).
>> 
>> Thanks,
>> 
>> Damon
>> 
>> -- 
>> 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 tiddl...@googlegroups.com <>.
>> To post to this group, send email to tiddl...@googlegroups.com <>.
>> Visit this group at https://groups.google.com/group/tiddlywiki 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/5d62431f-5f6d-43e5-b7ca-24b36d73325d%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/666c7db8-1f73-4f8b-aa59-6d9e4ee25fab%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/C73BEF55-9077-46ED-8D01-D281B1141937%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Font in Text Editor

2019-06-10 Thread Damon Pritchett
Thanks Jeremy,

Very much appreciated and good to know that it wasn't something I was doing 
or not doing.

One question to which you may or may not know the answer. I had been using 
the plugin edit-comptext which allows for auto completion of internal 
links. Is there something that can be added to CodeMirror with this 
functionality? Currently, it seems that you can use edit-comptext  with the 
default editor, but not with CodeMirror.

Cheers,

Damon


On Monday, June 10, 2019 at 3:00:12 AM UTC-5, Jeremy Ruston wrote:
>
> Hi Damon, h0p3,
>
> The cause here is that the default editor uses an iframe to wrap the 
> textarea; it’s done so that the textarea focus is retained even if the user 
> clicks on a toolbar button. The problem, of course, is that the custom font 
> isn’t loaded into the iframe, and so isn’t available to the textarea.
>
> You can workaround it by using the non-framed editor (which lacks the 
> toolbar buttons), but it may be worth trying the CodeMirror plugin.
>
> Alternately, I think we’d need to add a mechanism for adding stylesheet 
> fragments to the editor iframe.
>
> Best wishes
>
> Jeremy
>
>
>
> On 9 Jun 2019, at 20:13, Damon Pritchett  > wrote:
>
> Hello again,
>
> I'm having trouble getting my TW to recognize Google fonts. The font 
> family and code font family take the fonts just fine, but I can't get the 
> text editor to do it. I've looked through all of the stylesheets that I 
> know of, but haven't been able to find the smoking gun. I'm embedding the 
> fonts based  on the instructions found here: 
> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
> .
>
> Any thoughts on how to get passed this. Right now, I'm using the generic 
> monospace font, but I would like to use the Roboto Mono font (again, Roboto 
> Mono works find in code font family, but not text editor).
>
> Thanks,
>
> Damon
>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/5d62431f-5f6d-43e5-b7ca-24b36d73325d%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/666c7db8-1f73-4f8b-aa59-6d9e4ee25fab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [tw] [TW5] using highlight.js for transcluded code

2019-06-10 Thread leoperbo
For what is worth, in TW *5.1.19* I tried:

<$codeblock language="bash" code={{my_bash_script.sh}}/>


And didn't get highlights, but when I tried without doble quotes arround 
language value:

<$codeblock language=bash code={{my_bash_script.sh}}/>

And the highlights appeared.

El domingo, 4 de octubre de 2015, 16:46:01 (UTC-5), Jeremy Ruston escribió:
>
> Hi Tobias
>
>
> Using highlight plugin 
> , how would I 
> actually highlight the source of a core tiddler rather than the code to 
> retrieve it?
>
> For example:
>
> ```javascript
> <$view tiddler="$:/core" subtiddler="$:/core/modules/startup/info.js"/>
> ```
>
> The *codeblock* widget appears to be missing any documentation.
>
> Trying to decipher it, I noticed that this won't work:
>
> <$codeblock language="javascript"><$view tiddler=<> 
> subtiddler={{!!subtiddler}}/>
>
> So, how would I do...
>
> <$codeblock language="javascript" code=?!?>/>
>
>
> Try:
>
> <$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>
>
> Best wishes
>
> Jeremy.
>
>
>
> Best wishes,
>
> — tb
>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/a846ef32-9f1f-4540-b721-c84849cef90b%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f4ec7cbe-f445-47d5-91eb-c3750616f824%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query -- Are we neglecting "Restore" from default "Download Saves"?

2019-06-10 Thread @TiddlyTweeter
Having used this now for a little while I want to comment that I think the 
general idea is really good!

It works.

The main advantage is it works with every wiki scenario the majority of 
users would ever use. Just one method to learn. No plugins needed.

Works with every modern browser. Not limited to Firefox or Chrome. ANY 
browser. ANY version of TW or TWC.

This is very good in: 


(1) not having to be browser focused [why should a user need to choose a 
specific browser brand? They should not have to!] 

(2) Works the same way for all browsers.


In tests it has proved robust.

It builds off the "default HTML5 saver" fallback method--meaning modern 
browsers that save to the "downloads" folder. The work is in how *it 
auto-resurrects saves*.

There are a bunch of directions this could develop into something that 
could go further. 

(*But that is unlikely to happen unless it gets tried more by more people!*) 
At the moment its two men and a three-legged dog using it.

And, it could, in theory, be used as a complementary method to other 
approaches (TiddlyDesktop, Timimi, PMario's saver). Its not in conflict 
with other approaches. Its additive and freeing.

The approach is focused on "Restore" rather than "Save", which is left to 
the browser. 

By focusing on "Restore" it solves a bunch of problems. That also opens the 
way to a "pan-restore system" that could, in principle, work with different 
existing backup systems used in TW.

*Its a different approach to keep your updated. *

One that has great merit because of its wide functionality. And deserving 
exploration.

At the moment its a Windows based solution only, but could be converted for 
Mac & Unix pretty easily by the look of it. 

Best wishes
Josiah



On Monday, 20 May 2019 23:41:19 UTC+2, Mark S. wrote:
>
> I'm not a PowerShell aficionado, so even a short script takes some time. 
> If you're feeling daring, and have *backups*, you can try.
>
> At the top of the script is a list of your file stem names. They should 
> match the capitalization of your real files because sometimes Windows gets 
> confused.
>
> The second list is the list of the directories those respective stems go 
> in. There should be a one-to-one correlation. Maybe tomorrow I will learn 
> how to split out file name/paths so that two lists are not necessary ;-)
>
> There's a variable that sets how many seconds to wait before checking the 
> files again. I have it set to 10 seconds.
>
> To launch, open a powershell, go to the downloads directory used by your 
> browser, which should also be where you put the script, and type 
> ./launch_all_tw.ps1 
>
> To launch from a regular batch file would take a magic invocation, so 
> that's why I'm starting with the powershell.
>
> I had to add a kludge factor of 1 second to get the datestamp to compare 
> correctly. Possibly this would mean that if you did two rapid-fire changes 
> in a row, the 2nd one might not be picked up. But I don't know. It might be 
> fine.
>
> A script for Linux would be similar, but need completely different code.
>  
> -- Mark
>
>
>
>
> # File Stem names. Capitalize per actual file name.
> # Stem must be absolutely unique! Otherwise it might detect wrong file.
> $stemlist = @("notes","Todo")
>
> # List of target directories in same order as stem names
> $dirlist = @("D:\data\Wikis\notes","D:\data\TW2014")
>
> # How many seconds to wait before checking again.
> $waitSeconds = 10
>
> #-- SOURCE DIRECTORY -- NOT USED YET --
> $downloaddir = "C:\Users\Mark\Downloads"
>
>
> while(1) {
> for($i=0;$i -lt $stemlist.Length; $i++) {
>   $stem = $stemlist[$i]
>   $stem
>   $dir = $dirlist[$i]
>   #$dir
>   $copyme = ls $stem*.html | sort LastWriteTime | select -last 1
>   $copyme = $copyme.FullName
>   #$copyme
>   $destination = Get-Item  "$dir\$stem.html"
>   $source = Get-Item "$copyme" 
>   #echo Source: $source.LastWriteTime
>   #echo Destination: $destination.LastWriteTime 
>   If($source.LastWriteTime -gt $destination.LastWriteTime.addSeconds(1
> ) ) {
>   #echo "Source: " $source.LastWriteTime "greater than " 
> $destination.LastWriteTime.addSeconds(1) 
> Copy-Item $copyme -Destination "$dir\$stem.html"
> echo "Copying $copyme to $dir\$stem.html"
>   } Else {
> echo "Will not be copying"
>   }
> }
> echo "Going to sleep..."
> start-sleep -seconds $waitSeconds 
> }
>
>
>
>
>
>
> On Monday, May 20, 2019 at 6:05:35 AM UTC-7, @TiddlyTweeter wrote:
>>
>> At the moment, on modern browsers, saving TW without any custom saver, 
>> means the save ends up in "Downloads".
>>
>> We have no tool to "auto resurrect" and copy back that save for those 
>> kinds of saves. Copying back has to be manual and can get complicated in a 
>> forest of downloads.
>>
>> The more I think about this the more odd it seems.
>>
>> I mean, with an "AUTO-RESTORE" from saves in Download to a wiki directory 
>> ANY browser could be 

[tw5] Re: Get Tiddler information in a Macro

2019-06-10 Thread BJ

you can take a look here:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/wiki.js#L410


On Friday, June 7, 2019 at 6:09:08 PM UTC+2, Milind wrote:
>
> Is there any sample code that shows how to get to the tree from say the 
> tiddler object? 
> It is quite time consuming to go through and understand the code 
> especially if you are not a javascript programmer. I have already spent a 
> couple of hours on this and seem to be getting nowhere. The documentation 
> is hard to find and sometimes I cant find anything.
>It would be tremendously helpful if there is a sample code that 
> shows how to say iterate over the headings of a given tiddler or something 
> like that.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1eb58b34-973d-4d37-b009-19f48fbae85d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Font in Text Editor

2019-06-10 Thread Jeremy Ruston
Hi Damon, h0p3,

The cause here is that the default editor uses an iframe to wrap the textarea; 
it’s done so that the textarea focus is retained even if the user clicks on a 
toolbar button. The problem, of course, is that the custom font isn’t loaded 
into the iframe, and so isn’t available to the textarea.

You can workaround it by using the non-framed editor (which lacks the toolbar 
buttons), but it may be worth trying the CodeMirror plugin.

Alternately, I think we’d need to add a mechanism for adding stylesheet 
fragments to the editor iframe.

Best wishes

Jeremy



> On 9 Jun 2019, at 20:13, Damon Pritchett  wrote:
> 
> Hello again,
> 
> I'm having trouble getting my TW to recognize Google fonts. The font family 
> and code font family take the fonts just fine, but I can't get the text 
> editor to do it. I've looked through all of the stylesheets that I know of, 
> but haven't been able to find the smoking gun. I'm embedding the fonts based  
> on the instructions found here: 
> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
>  
> .
> 
> Any thoughts on how to get passed this. Right now, I'm using the generic 
> monospace font, but I would like to use the Roboto Mono font (again, Roboto 
> Mono works find in code font family, but not text editor).
> 
> Thanks,
> 
> Damon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/5d62431f-5f6d-43e5-b7ca-24b36d73325d%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B2579453-7A09-4DFB-9E87-294B1CF844EE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.