[tw] Re: How to build a tag list for comsuption by <$action-sendmessage $message="tm-new-tiddler" ... />?

2018-02-20 Thread Stephan Hradek
Do I understand correct, that the main question is, how to concatenate 
$:/state/project-number with the word "project"?

Should it be one tag or 2?

For concatenation you usually require a macro. Try this

\define projecttags() project $(projectnumber)$

<$set name="projectnumber" value={{$:/state/project-number}}>
<$button>
   <$action-sendmessage
  $message="tm-new-tiddler"
  title={{$:/state/project-number}}
  tags=<>
   />
   New project




-- 
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/6db2e82d-0a5d-418e-9669-15bb3602e042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to build a tag list for comsuption by <$action-sendmessage $message="tm-new-tiddler" ... />?

2018-02-20 Thread markhylton2
I want to generate a new tiddler from entered data 
(<$button><$action-sendmessage ... /> /> from <$edit-text ... />). I'm 
having problems generating a tag list that is to consist of one of the 
entered values plus a text literal (two tags total).

But I can't figure out how to concatenate something for consumption by 
<$action-sendmessage ... />.

Below are the three tiddlers I'm using (simplified). Probably only the 
third tiddler "newProjectButton" is important here, but I don't have a good 
handle yet on substitution and transclusion, so the whole simplified series 
is presented.

Tiddler one:
title=hostTiddler
text=hostTiddler: displays all projects, including a tabbed interface. Tabs 
are for projects, or ticklers, or statuses, et cetra.

{{transcludedTiddler}}

Tiddler two:
title=transcludedTiddler
text=transcludedTiddler: displays a tab page. In this case it would show a 
list of projects (not included in this sample). It also hosts a button for 
starting a new project.

{{newProjectButton}}

Tiddler three:
title=newProjectButton
text=newProjectButton: provides entries and control necessary for starting 
a new project.

Need a new project? Click this [[button|newProjectButton]] and a tiddler 
will be created and tagged with the project number and  //''project''// and 
will have the following fields and values:

> Project number: <$edit-text tiddler="$:/state/project-number" tag="input" 
default=""/>
> Project title (from the [[Project number]], will be used as the new 
project tiddler's title): {{$:/state/project-number}}
> Tag list: <$edit-text tiddler="$:/state/project-taglist" tag="input" 
default=""/> Don't want to have to manually enter these tags for the new 
project tiddler; the tags should be derived from the 
//''$:/state/project-number''// entered above plus the text literal 
"//''project''//". How to do this?

<$button>
   <$action-sendmessage
  $message="tm-new-tiddler"
  title={{$:/state/project-number}}
  tags={{$:/state/project-taglist}}
  projectnumber={{$:/state/project-number}}
   />
   New project


Thanks much, everyone!

Mark Hylton
markhylt...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/56d97aaa-0d12-4610-94b8-d42b67948f9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] three queries. problems adding a checkbox to TOC, how to create a template for checklists that works with any tiddler and creating a checklist that opts for the title when no caption ex

2018-02-20 Thread ceridout3
Jed

Thanks for your reply. I will keep a look out for future posts.

Charles

On Monday, February 19, 2018 at 3:17:33 AM UTC-5, Jed Carty wrote:
>
> The way that the TOC runs recursively means that it is a bit more complex 
> to do what you are asking than it may seem.
>
> I have made another list type that may help with what you want though:
>
> https://ooktech.com/TiddlyWiki/CategoryLists/
>
> I also made a library tracker but it doesn't have everything you want. 
> http://inmysocks.tiddlyspot.com/#%24%3A%2Fplugins%2Finmysocks%2FLibraryTracker%2FLibrary%20Tracker
>
> I am working on something more like what you are talking about that is a 
> combination of the two but I don't think I have it online anywhere. I will 
> post in the group when it is 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 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/015c570a-c0aa-4739-8da3-caa9f27cdbb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Just a little starting help

2018-02-20 Thread 'Surya' via TiddlyWiki
Hi Davide,

I am a beginner too (since about 2 months).

I downloaded now about 10 or 15 times an empty TW (for several private 
wikis and for testing purposes). *All of them* had after downloading 1,9MB.
And *never* the control panel was empty.

I think, you should start again just from the beginning.
When you got to https://tiddlywiki.com, scroll a little bit down, then you 
are at the "GettingStarted"-Tiddler. There is a green button with "Download 
empty". Klick that. Your empty TW gets downloaded, if you click ok. It will 
have 1,9MB and the control panel won't be empty.

In the control panel you can set many first settings (style, fonts, sizes, 
colours and so on).
In my opinion you should end there for the beginning with stylings.
I would then start learning TW with creating tiddlers, tagging them, make 
them visible in the sidebar (if you want) for example with TableOfContents.
And so on.
Just to make yourself familiar with TW. Very much later I would go deeper 
to the styling options.
But that's just my opinion.

TW is hard to learn (for me), but it's fantastic!! :-)
Best wishes, Surya

-- 
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/99d2cabd-e1a5-437a-9185-08eb3363e120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] three queries. problems adding a checkbox to TOC, how to create a template for checklists that works with any tiddler and creating a checklist that opts for the title when no caption ex

2018-02-20 Thread ceridout3
Mark

In my attempt to create the hierarchical list of books by author I only 
concentrated on the my-toc-selective-expandable macro that Jed provided, 
since that seemed like it would produce the desired outcome. Initially I 
ignored the other part of his post on the other macros. In trying those I 
am able to produce, a linear checklist of all Authors and all Books not a 
checklist showing Parent (author)/child (book) with checkboxes next to each 
child.. My
programming skills are not very good. Perhaps you could show me what you 
did to produce your results.

Thank you for taking the time to look into my situation and responding.

Charles

On Sunday, February 18, 2018 at 9:46:43 PM UTC-5, Mark S. wrote:
>
> Are you sure you got the different pieces of macros from the 2 threads 
> together correctly?
>
> When I try it, I get a checkbox both at the parent and the child level. I 
> also get everything enumerated which might mean that I need a different CSS 
> tiddler.  It looks to me like you would like Jed's code tweaked so that it 
> no longer shows a checkbox at the parent level. I'm thinking this might 
> require marking the parent tiddlers with a "Parent" tag (or maybe there is 
> already an "Author" tag which would be the same thing)
>
> -- Mark
>
> On Saturday, February 17, 2018 at 5:05:08 PM UTC-8, ceri...@gmail.com 
> wrote:
>>
>> Jed:
>>
>> I came across this post while searching for a solution to my current 
>> situation.
>>
>> I have a TW5 wiki that contains my book collection. I have tiddlers for 
>> each author, and tiddlers for each book by that author. I have used the toc 
>> macro: toc-selective-expandable to create my nested listing. What I am 
>> wanting to do is add a checkbox to each book in my list, so that when I 
>> have completed reading it I can check it off,
>> give it a status of "Read" and strike through the title.
>>
>> Your code gave me a start but since I am not a programmer I do not 
>> understand how to get a checkbox next to each book title. This code only 
>> places a checkbox next to
>> the authors name.
>>
>> Example of what I am trying to achieve:
>>
>> > Douglas Preston & Lincoln Child
>> [ ] The Relic
>> [ ]  Riptide
>>
>> > James Rollins
>> [ ]  Ice Hunt
>> [ ]  Excavation
>>
>> What I have today:
>>
>> [ ] > Douglas Preston & Lincoln Child
>> The Relic
>> Riptide
>>
>> [ ] > James Rollins
>> Ice Hunt
>> Excavation
>>
>> How would your code be modified to do what I want?
>>
>> Thank you in advance for your time.
>>
>> Charles
>>
>> On Tuesday, May 19, 2015 at 9:37:40 PM UTC-4, Jed Carty wrote:
>>>
>>> For the first one:
>>>
>>> Looking at the code I gave you now I am a bit embarrassed. The checkbox 
>>> state has no persistent storage, so anytime the toc is refreshed the state 
>>> would be reset like you are seeing. This shouldn't have that problem. It 
>>> may have other problems I haven't seen. Also it is only adding one line to 
>>> the default toc macro:
>>>
>>> \define 
>>> my-toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter)
>>> <$set name="toc-state" value=<>> "$:/state/toc/$tag$-$(currentTiddler)$">>>
>>> <$set name="toc-item-class" filter="""$itemClassFilter$""" 
>>> value="toc-item-selected" emptyValue="toc-item">
>>> >>
>>> <$checkbox tiddler="""$(currentTiddler)$""" tag='done'/>
>>> <$link>
>>> <$list filter="[all[current]tagging[]limit[1]]" variable="ignore" 
>>> emptyMessage="<$button 
>>> class='tc-btn-invisible'>{{$:/core/images/blank}}">
>>> <$reveal type="nomatch" state=<> text="open">
>>> <$button set=<> setTo="open" class="tc-btn-invisible">
>>> {{$:/core/images/right-arrow}}
>>> 
>>> 
>>> <$reveal type="match" state=<> text="open">
>>> <$button set=<> setTo="close" class="tc-btn-invisible">
>>> {{$:/core/images/down-arrow}}
>>> 
>>> 
>>> 
>>> <>
>>> 
>>> <$reveal type="match" state=<> text="open">
>>> <$macrocall $name="toc-selective-expandable" tag=<> 
>>> sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""/>
>>> 
>>> 
>>> 
>>> 
>>> \end
>>>
>>> This will give the the tag 'done' when the box is checked. If you don't 
>>> want to put the tag on the tiddler itself but still have a persistent state 
>>> replace """$(currentTiddler)$""" with 
>>> <>
>>> And you can of course change the checkbox to use a field or another tag.
>>>
>>> I am not sure exactly what you are asking for the second one. Do you 
>>> want a checklist that when each item is checked it gets tagged with the 
>>> current tiddler?
>>> If so you could make a macro like this (this also adds the answer to the 
>>> third part):
>>>
>>> \define makeChecklist(filter)
>>> <$set name='taggingTiddler' value=<>>
>>> <$list filter='$filter$'>
>>> <$checkbox tiddler=<> tag=<>><$view 
>>> field='caption'><$view field='title'/>
>>> 
>>> 
>>> \end
>>>
>>> Put this in a tiddler, tag that tiddler with $:/tags/Macro and then in 
>>> any tiddler you put <> (replace 
>>> [tag[something]] with the filter you want to use to make the checklist) and 

[tw] Re: Just a little starting help

2018-02-20 Thread Paperoga
 


Hi Simon, (from Germany ?) 


thanks for the link, the tutorial are good!

Yes, I mean that control panel, and I download TW just from there, 4.5 Mb 

including documentation. Even the empty.html I've downloaded is with 

..nothing, in the control panel. I've tried to d (import) $:/ControlPanel 
from the site to the copy on my pc, and it ends up in an empty tiddler 
again.

I don't understand.


I'd like to move the sidebar from right to up, or left. Is that possible ?

Better, do you know a simple enough way to do that ?

I shall try to learn some CSS, besides WikiText and a little 

Javascript, little by little.

For now I need the basic to use TW to learn TW. Right ?


Greetings from south ( Venice )

Davide





Il giorno domenica 18 febbraio 2018 17:56:15 UTC+1, BurningTreeC ha scritto:
>
> Ciao Paperoga,
>
> there are others in this group that know more about solid beginner 
> tutorials
> I can give you these links:
>
>- very peaceful youtube tutorials: 
>
> https://www.youtube.com/watch?v=ZMGpAW0z_Bo=PLzZCajspPU_UjFn0uy-J9URz0LP4zhxRK
>- of course: https://tiddlywiki.com for documentation
>
> With control panel you mean this: 
> https://tiddlywiki.com/#%24%3A%2FControlPanel ?
> Where did you download your TiddlyWiki?
>
> In the ControlPanel under "Info" you can click on "retain story ordering" 
> - that saves your open tiddlers and they will be open when you restart 
> after saving
> Where would you like to move the sidebar?
> You can control appearance through so-called Stylesheet Tiddlers - they 
> are tiddlers with the tag $:/tags/Stylesheet where you can put css style 
> definitions into
>
> Saluti dal nord,
> Simon
>
>

-- 
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/db26d50a-c42d-4def-8b51-ad01bd9382f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Presentation ...a little help needed

2018-02-20 Thread Jan

Hi Dave and everybody...
Sorry, this is not programmed yet... but it shold be possible:
Inducing a transclusion of a $:/slidestyle/ 
myFieldStyle 
tiddler which is referred to by a field into the presentationtemplate 
$:/plugins/JR/slides/Wrapper 
.


Well I tried a bit and could not get it to work...
Can anyone tell where I it is spoiled?


<$list filter='[{$:/HistoryList!!current-tiddler}has[style]]'>
<$set name="slidestyle" value={{!!style}}>

{{$:/slidestyle/$(slidestyle)$}}





Thanks a lot...
Jan



Am 20.02.2018 um 05:06 schrieb Dave:

How do you set a color for the entire set of slides in one tiddler?

If I have this in a tiddler:
<<| light7>>The rain in spain
falls mainly on the plainand then all the 
flowers bloom


and field "keep" as "02"

then the first 2 slices that appear on the same slide are "light7" in 
color, and the 3rd slice on the next slide is black (default).


Is there a way to set the color and have it last a whole multi-slice, 
multi slide tiddler? (e.g. to the 10th slide with "keep" set at "02 04 
06 08")  No big deal if you can't - just wondering

--
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/d0e62300-c0ea-4b88-b399-0d603a42fcdd%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/5A8C898C.401%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A slider which closes itself when clicking elsewhere or closing tiddler

2018-02-20 Thread stefct4
Hi,

On Monday, February 19, 2018 at 7:58:01 PM UTC+1, passingby wrote:
>
> What I want is that content should be revealed upon a click, preferably a 
> button. And that it should close itself when I close the tiddler so that 
> next time I open the tiddler again the content should be hidden by default.
>

This is similar to the tiddler info panel which after opening closes itself 
> upon a click anywhere else and is also closed by default when the tiddler 
> is opened again after closing. 


 
Since nobody else has answered, here are two quick "hacks" that might help, 
even if they aren't exactly what you requested and are quite certainly not 
"polished" enough for a public wiki:

1.) Add the answer to the "Info" panel itself:

<$button>
<$action-listops $tiddler="Display Answer" 
$tags="+[append[$:/tags/TiddlerInfo]]"/>
<$action-setfield $tiddler="Display Answer" caption="Answer"/>
<$action-setfield $tiddler="Display Answer" text="{{!!answer}}"/>
<$action-setfield $tiddler="$:/config/TiddlerInfo/Default" text="Display 
Answer"/>
<$action-setfield 
$tiddler="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info" 
text="show"/>
Make Changes


After executing this code, you can reveal any content from the "answer" 
field of an individual tiddler by clicking its "Info" button. Disadvantage: 
The "Answer" tab will appear in Info panels of tiddlers that aren't part of 
the quiz, too. 

2.) Use a modal to display the 
answers: https://tiddlywiki.com/#WidgetMessage%3A%20tm-modal

Using a modal is maybe not the prettiest solution, but simple and 
straightforward.

Cheers,

Stef 

-- 
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/bd88d6df-0b37-4acf-a902-fd5f3e03b3d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Tech Query: Pecularities of Non-Copying Copy!!

2018-02-20 Thread 'Mark S.' via TiddlyWiki
The counters are generated inside pseudo classes, so they can't be 
selected. I saw a hint that suggested you could use chrome preview to make 
the text selectable, but it loses all line formatting.

I'm not familiar with how your regex tools work. Do they re-iterate until 
there are no more changes to be made?

If so, then I'm thinking that rules like this at the very end:

/(.*?)#startmarker#/$1 0001#endmarker#/
/(.*?)#startmarker#/$1 0002#endmarker#/
 etc.

Might brute force what you want. 

(I haven't checked my syntax closely, obviously. Notice that the searches 
aren't global)

-- Mark

On Monday, February 19, 2018 at 6:26:31 AM UTC-8, @TiddlyTweeter wrote:
>
> I just hit a weird issue (to me). I assume its something to do with the 
> DOM-inique thing? 
>
> I generate Tiddlers that include CSS generated counters like this ...
>
>
> BUT when I try to copy-highlight it I get this ...
>
>
> The copy-highlighter skips the CSS generated number content. And when I 
> paste it the numbers are missing.
>
> I looked at the generated HTML and there also the CSS generated numbers 
> are missing. B*mmer.
>
> I guess its not a TW issue so much as a broader issue with DOM-inique? 
>
> BUT its a PITA because I'd dearly like to use CSS to generate lots of 
> indices to help construct tiddler structures like the above.
>
> *MY QUESTION for the truly savvy*:
>
> * Is there ANY way I can get to copy the final surface render that 
> includes the CSS generated numbers?*In hope
> Josiah
>
>
>

-- 
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/6473815a-8c70-49f5-8856-e3c7063b7a11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread passingby
Guys! Stephan, Mathew Thank you for your efforts. I am always impressed 
with all that mathematics! Although I did take up math in my high school, i 
barely passed in it. I remember sine cos theta angles but nothing more than 
names. But there is always a lurking desire to spend some time on improving 
my math skills and knowledge. I secretly think this is going to make me 
smarter. :-)

But thanks again, I shall try out the changes.

On Tuesday, February 20, 2018 at 6:49:17 AM UTC-7, Matthew Lauber wrote:
>
> I've reworked the shuffle operator to use MAth.random and to use 
> https://github.com/davidbau/seedrandom/ to seed Math.random.  So, the 
> issues mentioned earlier should be resolved.
>
>
> On Tuesday, February 20, 2018 at 7:40:02 AM UTC-5, Stephan Hradek wrote:
>>
>>
>>
>> Am Dienstag, 20. Februar 2018 13:37:54 UTC+1 schrieb Matthew Lauber:
>>>
>>> Dang!  I go to sleep for 8 hour and your guys pick apart my code.  
>>> Seriously though, thanks guys.  I'll take a look at improving the 
>>> randomness of my shuffle operator.  I seem to recall not using the 
>>> javascript math.random function because I wanted to be able to seed the 
>>> function and get a list ordering that only changed when I clicked a 
>>> button.  I'll see what I can find for that.  
>>>
>>
>> If you want something seedable, checkout 
>> davidbau.com/archives/2010/01/30/random_seeds_coded_hints_and_quintillions.html
>>  
>>
>

-- 
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/871efee3-4ace-498f-a6b8-1acda3aec9d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Tech Query: Pecularities of Non-Copying Copy!!

2018-02-20 Thread coda coder


On Tuesday, February 20, 2018 at 2:52:23 AM UTC-6, @TiddlyTweeter wrote:
>
>  I read around the issue and then discovered that there are proposals in 
> CSS to change the behaviour but they somewhat in conflict with existing DOM 
> approach ... https://drafts.csswg.org/css-ui-4/#content-selection. I 
> haven't tested if any browsers adopted the proposal--the point is that the 
> default setting is "uncopyable" but the proposal is to permit copying using 
> a "user-select" property with several different available settings.
>
>
I'm not sure if I've understood correctly, but, that draft seems to suggest 
that in Firefox you *may* be able to set user-select, either in the parent 
element or in the before/after pseudo element itself:

Note: As of the time of writing, experimental implementations do not all 
behave like this. Firefox does. 

So, in essence, something like:

element::before {
 user-select: text;
 ...
}



You could also try moz-user-select but try the above first.

Again, I'm not sure I've read enough of the draft to gain complete 
understanding. The fact it's a draft is a red flag -- indeed, the entire 
section is denoted "at risk".

Here's the MDN article, for reference (no mention of pseudo elements)  
https://developer.mozilla.org/en-US/docs/Web/CSS/user-select


-- 
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/5f035542-6245-45e6-8408-0c921ff81b1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Matthew Lauber
I've reworked the shuffle operator to use MAth.random and to use 
https://github.com/davidbau/seedrandom/ to seed Math.random.  So, the 
issues mentioned earlier should be resolved.


On Tuesday, February 20, 2018 at 7:40:02 AM UTC-5, Stephan Hradek wrote:
>
>
>
> Am Dienstag, 20. Februar 2018 13:37:54 UTC+1 schrieb Matthew Lauber:
>>
>> Dang!  I go to sleep for 8 hour and your guys pick apart my code.  
>> Seriously though, thanks guys.  I'll take a look at improving the 
>> randomness of my shuffle operator.  I seem to recall not using the 
>> javascript math.random function because I wanted to be able to seed the 
>> function and get a list ordering that only changed when I clicked a 
>> button.  I'll see what I can find for that.  
>>
>
> If you want something seedable, checkout 
> davidbau.com/archives/2010/01/30/random_seeds_coded_hints_and_quintillions.html
>  
>

-- 
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/b83f8fb8-ae29-4959-8216-df3cc9437ca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek


Am Dienstag, 20. Februar 2018 13:37:54 UTC+1 schrieb Matthew Lauber:
>
> Dang!  I go to sleep for 8 hour and your guys pick apart my code.  
> Seriously though, thanks guys.  I'll take a look at improving the 
> randomness of my shuffle operator.  I seem to recall not using the 
> javascript math.random function because I wanted to be able to seed the 
> function and get a list ordering that only changed when I clicked a 
> button.  I'll see what I can find for that.  
>

If you want something seedable, checkout 
davidbau.com/archives/2010/01/30/random_seeds_coded_hints_and_quintillions.html 

-- 
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/ee553bd2-41f4-481a-8923-093fdc1dc57c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Matthew Lauber
Dang!  I go to sleep for 8 hour and your guys pick apart my code.  
Seriously though, thanks guys.  I'll take a look at improving the 
randomness of my shuffle operator.  I seem to recall not using the 
javascript math.random function because I wanted to be able to seed the 
function and get a list ordering that only changed when I clicked a 
button.  I'll see what I can find for that.  

On Tuesday, February 20, 2018 at 7:25:30 AM UTC-5, Stephan Hradek wrote:
>
>
>
> Am Dienstag, 20. Februar 2018 09:00:13 UTC+1 schrieb passingby:
>>
>> But i am seeing that it repeats one or two tiddler a lot. At first i 
>> thought maybe my tiddlers were not enough in numbers but then i have around 
>> 25 tiddlers and it still repeats a couple initial tiddlers it picks up, a 
>> lot.
>
>
> Please see issue #2 https://github.com/mklauber/tiddly-shuffle/issues/2 
>

-- 
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/5b3cdf07-54f7-4ddc-a3f6-51dd15a137f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek


Am Dienstag, 20. Februar 2018 09:00:13 UTC+1 schrieb passingby:
>
> But i am seeing that it repeats one or two tiddler a lot. At first i 
> thought maybe my tiddlers were not enough in numbers but then i have around 
> 25 tiddlers and it still repeats a couple initial tiddlers it picks up, a 
> lot.


Please see issue #2 https://github.com/mklauber/tiddly-shuffle/issues/2 

-- 
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/5a3beaf2-de62-4024-a65b-4506665e9e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
Hooray! Issue #1 is mine ;) 
https://github.com/mklauber/tiddly-shuffle/issues/1

-- 
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/4ec21add-5f80-4f9f-a8a9-e2136613be3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
Update: Upon inspecting the code a bit more: seed cannot be a multiple of 
pi + pi/2 as it's always a 32 bit integer.

Still I think randomness of |sin| isn't the best.

-- 
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/03b03d3c-f3b4-43d0-a7ac-c4af8d33b442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] presenting TWRocketDock

2018-02-20 Thread PMario
On Monday, February 19, 2018 at 10:40:53 PM UTC+1, BurningTreeC wrote:
>
> Hi, I'm making this little TW companion that let's you edit tiddlers while 
> browsing on other websites, dragging stuff into your wiki and more
>
> I hope you like it, and find it useful!
>

If you would tell potential users, what it should do and how to use it.

-m

-- 
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/aa576b47-d770-44a6-b8a0-0cf4178415d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
I think there is a big flaw in Matthew's code.

Instead of using a real random function there is this code:

Math.floor(Math.abs(Math.sin(seed++)) * currentIndex);

There are 2 flaws here I think:
1. sin isn't very "random"
2. sin goes from 0 to 1. This will lead to a just shuffled element being 
shuffled a second time. Even worse it can lead to array index out of bounds 
if the seed is (n * pi)+(pi/2). Try it with seed= 3.14159265359/2 ;)

will open an issue on github

-- 
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/e5210bfe-82b6-4c5f-92aa-01d3590b1db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Tech Query: Pecularities of Non-Copying Copy!!

2018-02-20 Thread @TiddlyTweeter
Ciao Jeremy & all ...

This has been an interesting, useful discussion. A footnote ...

Jeremy: This is a common issue, I’m afraid. Here’s one of many 
> StackOverflow answers about it ...
>

Thanks for that. I read around the issue and then discovered that there are 
proposals in CSS to change the behaviour but they somewhat in conflict with 
existing DOM approach ... 
https://drafts.csswg.org/css-ui-4/#content-selection. I haven't tested if 
any browsers adopted the proposal--the point is that the default setting is 
"uncopyable" but the proposal is to permit copying using a "user-select" 
property with several different available settings.

I also discovered a trick to get round the problem which is to PRINT to 
FILE (in Windows) the Tiddler with the "un copyable" content using 
customised settings that eliminate margins. For my specific purpose this 
might work out okay. My interest in the CSS counters is simply for aiding 
conversion of very large documents into a TW import format. CSS counters 
are very flexible and easy to setup and can help you generate indices and 
populate fields you need filling out in a JSON structure so I'll continue 
to experiment to see if its viable for what I need.

Best wishes
Josiah

-- 
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/9e37a07d-2fe2-42c7-a38c-7537cf16db6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Issue: Auto-Enumeration. I have no idea how.

2018-02-20 Thread @TiddlyTweeter
Ciao Stephan & Riz

Thank you both! 

I'm as happy as a sandboy! 


J, x

Riz wrote:
>
> Expanded to include Stephen's input. If you set $initval as 004 now, it 
> will add suffixes as 005, 006...
>
>
> plugin and demo. 
> 
>
> https://ibnishak.github.io/Tesseract/
>
 
Stephan Hradek wrote:
>
> Am Montag, 19. Februar 2018 16:16:14 UTC+1 schrieb Riz:
>>
>>
>> - Performance: To correctly pad, say 1 or 00019 etc, you need to 
>>
>
> do it like this for example:
>
> counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
>
> Example run from webconsole ...
>

-- 
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/4786ec45-901d-4a21-9c97-cb4aaac5a1bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread passingby
Matthew
I tried the plugin. Its a wonderful code in that it is not a macro but a filter 
operator, which is very interesting!

And it does work as intended. But i am seeing that it repeats one or two 
tiddler a lot. At first i thought maybe my tiddlers were not enough in numbers 
but then i have around 25 tiddlers and it still repeats a couple initial 
tiddlers it picks up, a lot.

Could you suggest anything for this?

Thank you for your code.

-- 
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/6a3aa0b0-5403-44ec-ade8-7c2b7de0a206%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.