[twdev] Re: How set focus?

2019-07-22 Thread Simon Huber
The best way to use it would probably be giving the input a unique class


The docs for widgetmessage tm-focus-selector 
> 
>  reads
>
>
> The tm-focus-selector message sets the focus to the DOM element 
> identified by the selector in the param parameter.
> NameDescription
> param Selector identifying the DOM element to be focussed
>
> how do I know what DOM element it is? And exactly how to I give this as an 
> argument ( param="" )
>
> Is it possible to use an ID attribute for this? If "no", would it make 
> sense to propose this as an option for the widgetmessage? (I would think 
> more people can create CSS IDs than manage DOM elements.)
>
> What I'm trying to achieve is setting focus on a edit-text field after 
> I've set another thing.
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0fb7c4fc-3bd0-4ea8-a190-865bc174f96e%40googlegroups.com.


[twdev] Re: How set focus?

2019-07-22 Thread Simon Huber
Hi Mat,

look at the Advanced search Keyboard Shortcut 

 
in the current prerelease, it uses the tm-focus-selector message by using a 
[data-tiddler-title="..."] selector,

It should work the same way using an id

The docs for widgetmessage tm-focus-selector 

 reads

>
> The tm-focus-selector message sets the focus to the DOM element 
> identified by the selector in the param parameter.
> NameDescription
> param Selector identifying the DOM element to be focussed
>
> how do I know what DOM element it is? And exactly how to I give this as an 
> argument ( param="" )
>
> Is it possible to use an ID attribute for this? If "no", would it make 
> sense to propose this as an option for the widgetmessage? (I would think 
> more people can create CSS IDs than manage DOM elements.)
>
> What I'm trying to achieve is setting focus on a edit-text field after 
> I've set another thing.
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cc962bd9-d2e9-49a7-abed-9a6c39962fd8%40googlegroups.com.


[twdev] Re: Pre-release failure Today GMT 05:00? 15/07/2019

2019-07-15 Thread Simon Huber
Hi Tony,

I've introduced this bug, it's going to be fixed soon, see this PR: 
https://github.com/Jermolene/TiddlyWiki5/pull/4110


I quick download of the empty.html from tiddlywiki.com using everything 
> else the same had no problem
>
> Regards
> Tony
>
> On Monday, July 15, 2019 at 6:28:18 PM UTC+10, TonyM wrote:
>>
>> Folks,
>>
>> I just downloaded a fresh copy of the prerelease empty for testing.
>>
>> In the latest general release firefox I changed the sidebar layout,  
>> added some page toolbar items.
>>
>> Then I click + for new tiddler. When I move my mouse to click in the new 
>> tiddlers edit text area I get
>>
>> Internal JavaScript Error
>> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
>> by refreshing your browser
>> TypeError: eventInfo.handlerObject[eventInfo.handlerMethod] is undefined
>>
>> I have downloaded twice, the second time with no plugin install and it 
>> reoccured
>>
>> Everything seems to work until I click in the edit text field.
>>
>>- I can rename tiddler
>>- Select a tag
>>- Use an editor Toolbar button
>>- Add a field but not click on edit.
>>
>> I can tab my way to the trest field but not edit it.
>>
>> It would be nice if there were  download empty button to the previous 
>> sub-release.
>>
>> Regards
>> Tony
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7f3a2129-8929-4161-a971-3d0c9dc9ef0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Will state likes tab-1749438307 change in the future?

2019-05-02 Thread Simon Huber
Hello @LinOneTwo,

in the tiddlywiki core these state titles are generated by the <> 
macro or <$qualify/> widget. they use a mechanism that creates a hash 
string based on the "transclusion variables" found through walking up the 
widget tree (which is something like an analogue to the html tree, but 
built starting with the rootwidget "at the top" [see 
$:/core/modules/rootwidget.js])

such a state title will not always reliably be the same

there's a discussion over at the github repo 
 where I've posted 
some hacks that allow remodelling of the state at any position in the DOM, 
but it's a bit complicated

best wishes,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/464658da-464f-472d-8b34-43c161e24c63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Packaging a Plugin on Node

2019-03-12 Thread Simon Huber
I'll add a short how-to list:


   - make a plugin-folder anywhere
   - add a "plugin.info" file in this folder, format and fill it, see an 
   example: 
   
https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/codemirror/plugin.info
   - the plugin.info "list" can contain a number of tiddler titles that 
   will show up as tabs in your plugin tiddler
   - add them as ".tid" files in your plugin-folder, format them in the 
   ".tid" format
   - you can create sub-folders that contain ".tid" files, they will be 
   included in your plugin
   - for javascript tiddlers create a "files" folder in your plugin-folder
   - create a "tiddlywiki.files" file within the "files" folder
   - see an example "tiddlywiki.files" : 
   
https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/codemirror/files/tiddlywiki.files
   - use this format to add your javascript tiddlers / js tiddlers that 
   overwrite core tiddlers and your own js tiddlers
   - the "file" parameter in tiddlywiki.files is a relative path, relative 
   to where the tiddlywiki.files file is located
  - if you put a js tiddler in files/modules/widgets/tiddler.js it's 
  "modules/widgets/tiddler.js
   - that's it

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/9e94324f-4068-4994-b50c-91d233fab3fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: rudimentary find-on-page support for TD

2019-02-28 Thread Simon Huber
it's pretty slow with many matches ...

Here's a second link to play around with highlight-all-found-words 
> functionality
>
> http://find-on-page-test2.tiddlyspot.com/
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/bde941cd-aba4-48f6-98ab-9208dce00400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: rudimentary find-on-page support for TD

2019-02-28 Thread Simon Huber
Here's a second link to play around with highlight-all-found-words 
functionality

http://find-on-page-test2.tiddlyspot.com/


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/a54c3fd1-c00f-4c79-b1d4-e0052799a4ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: rudimentary find-on-page support for TD

2019-02-28 Thread Simon Huber
I'm making good progress with this, now I can highlight all matches through 
a surrounding span which gets removed at every new search.

A global handler, like the keyboardmanager, does the handling, an 
action-widget provides access to the search functionality


The tiddlyspot page isn't updated, I don't remember the pass anymore. I 
don't know, shall I make this a PR so that we can work together?

If so, what should this be, a tiddlydesktop extension?

I don't know if I can make it work crossbrowser, some information I found 
suggests it's possible.
One could get the bounding rects from matches, which could be useful to use 
elsewhere, so it could be extended in its use.

Anyway, first I'd like to have the functionality working for TiddlyDesktop

best wishes,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2fcba27b-40e1-4123-8877-b26ccd7681f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: rudimentary find-on-page support for TD

2019-02-27 Thread Simon Huber

>
> Just to clarify, I'm all in favour of having find-in-page in 
> TiddlyDesktop, and welcome any help. I think Simon's approach is a 
> promising one: to make a find-in-page that works in a standalone TW. The 
> other approach is to extend TiddlyDesktop itself with the functionality.
>

That's cool, thanks Jeremy!

Extending TiddlyDesktop itself is cumbersome I found. On the nw.js repo 
there are some questions about it, but it doesn't seem to be clear if it 
works using webview or how to do it ... so I thought maybe it's better 
doing it this way ...

best wishes back
 

>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> jer...@jermolene.com 
> https://jermolene.com
>
> On 27 Feb 2019, at 16:23, Simon Huber  > wrote:
>
> Simon Huber wrote:
>>>
>>> I've created this little demo here: 
>>> http://find-on-page-test.tiddlyspot.com/
>>>
>>> It allows to find words on the page using a very simple action-widget
>>>
>>>  what I've noticed is that matches on tags are found but the 
>>> selection isn't visible.
>>>
>>  
>> Right. I'm doubtful its workable without visual feedback. I tried. I 
>> failed.
>>
>> Josiah
>>
>
> I have a solution for that, it's just not updated online. The problem is 
> that elements that are draggable (that have the draggable attr. ="true") 
> cannot be found.
>
> My solution is to change the TagTemplate and put a condition inside that  
> shows tags without dragFilter (which removes the draggable attr.) when the 
> search panel is open.
> That would probably work best when it would be a popup, so the condition 
> would be: when that popup state tiddler is present, no dragFilter for tags.
> problem: we cannot create popups using keyboard shortcuts, which would be 
> very useful here.
> solution: I could add my action-popup widget here
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywikide...@googlegroups.com .
> To post to this group, send email to tiddly...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/04c03038-d9bb-4a0c-a0a1-b1b2e165a402%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/04c03038-d9bb-4a0c-a0a1-b1b2e165a402%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

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


[twdev] Re: rudimentary find-on-page support for TD

2019-02-27 Thread Simon Huber

>
> Simon Huber wrote:
>>
>> I've created this little demo here: 
>> http://find-on-page-test.tiddlyspot.com/
>>
>> It allows to find words on the page using a very simple action-widget
>>
>>  what I've noticed is that matches on tags are found but the 
>> selection isn't visible.
>>
>  
> Right. I'm doubtful its workable without visual feedback. I tried. I 
> failed.
>
> Josiah
>

I have a solution for that, it's just not updated online. The problem is 
that elements that are draggable (that have the draggable attr. ="true") 
cannot be found.

My solution is to change the TagTemplate and put a condition inside that  
shows tags without dragFilter (which removes the draggable attr.) when the 
search panel is open.
That would probably work best when it would be a popup, so the condition 
would be: when that popup state tiddler is present, no dragFilter for tags.
problem: we cannot create popups using keyboard shortcuts, which would be 
very useful here.
solution: I could add my action-popup widget here

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/04c03038-d9bb-4a0c-a0a1-b1b2e165a402%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: rudimentary find-on-page support for TD

2019-02-27 Thread Simon Huber

>
> Simon,
>
> Jeremy is the author of tiddlydesktop. It uses a cutdown browser to 
> opperate, I know he was reluctant to add more and more such that it would 
> become a browser but you may be able to persuade him to add this if its 
> practical to do so in a future release.
>
> Regards
> Tony
>

Hi Tony, yeah I know about this little interest conflict. But 
search-on-page is not a browser-only thing. An address bar would be I 
guess, this is just functionality for the notebook/application itself 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b88fea95-d66f-46f0-8486-63dcbe23ccd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: a video widget that plays videos without interruption

2019-02-27 Thread Simon Huber

>
> Simon,
>
> Perhaps off topic but I wonder if we could timestamp points in time on a 
> video and trigger a responce in tiddlywiki at that time? Perhaps in 
> reverse, search tiddlers that then jump to a point in time in a video.
>
> I have some compelling applications if this were possible.
>
> Regards
> Tony
>

Hi Tony, the root of this is that videos embedded within tiddlers stop 
playing when the DOM changes, like when I open a new tiddler above the one 
with the playing video

the idea is to append the video to the page, put a placeholder into the 
tiddler and match both positions. In my example I'm overdoing it to the 
point that the video refreshes every time the placeholder refreshes which 
is unintended ...

for something like this we'll have to focus on this problem first

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e5ef5a5e-1c4b-4963-a34f-b8aadd4307a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: rudimentary find-on-page support for TD

2019-02-26 Thread Simon Huber

>
> Simon,
>
> I am not sure what problem this is solving. In Both Chrome and FireFox 
> Ctrl-f opens find, F3 moves to the next and shift-f3 moves to the last.
>
> Was it just you did not know about f3 so created ctrl-g ? or is F3 not 
> working on TiddlyDesktop?
>

:o) did you try to search on the page in TiddlyDesktop?

Sure, this tries to emulate browser-behavior and finally I'd also like to 
have a count with matches.
It's for our main tiddlywiki browser without search-on-page working ... 
TiddlyDesktop. I should have probably stated that more precisely  ^^


Firefox even tells you the number found.
>
> Regards
> Tony
>
> On Tuesday, 26 February 2019 12:03:21 UTC+11, Simon Huber wrote:
>>
>>
>>
>> Hi there,
>>
>> I've created this little demo here: 
>> http://find-on-page-test.tiddlyspot.com/
>>
>> It allows to find words on the page using a very simple action-widget
>>
>> it uses window.find() which isn't supported by all browsers but it works 
>> in TiddlyDesktop
>>
>>
>> ctrl-f opens a search panel,
>> ctrl-g / ctrl-shift-g cycle through the matches
>>
>>
>> what I've noticed is that matches on tags are found but the selection 
>> isn't visible
>>
>>
>> I'd like to make this work similar to the browser native behavior, that 
>> shows all matches selected and the "cycle-match" in a highlight color, but 
>> I'm not sure if that's that easy
>>
>> ... anyway, I think many users would be happy about a small tiddlydesktop 
>> upgrade in this direction
>>
>>
>> what do you think?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0c2b3415-a871-4eec-842a-0bf6f4034d20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] rudimentary find-on-page support for TD

2019-02-25 Thread Simon Huber


Hi there,

I've created this little demo here: http://find-on-page-test.tiddlyspot.com/

It allows to find words on the page using a very simple action-widget

it uses window.find() which isn't supported by all browsers but it works in 
TiddlyDesktop


ctrl-f opens a search panel,
ctrl-g / ctrl-shift-g cycle through the matches


what I've noticed is that matches on tags are found but the selection isn't 
visible


I'd like to make this work similar to the browser native behavior, that 
shows all matches selected and the "cycle-match" in a highlight color, but 
I'm not sure if that's that easy

... anyway, I think many users would be happy about a small tiddlydesktop 
upgrade in this direction


what do you think?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/d4b82a86-e40a-427c-af1d-34725480644f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: a video widget that plays videos without interruption

2019-02-24 Thread Simon Huber
Hi again,

I've created a much better working Demo: 
http://videoplayerwidget.tiddlyspot.com

Its code is clean(er) :) ... it uses PR #3798 , the part that adds 
resizeListeners only + there's no complicated widget-id anymore

have a nice weekend,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/1e769b8a-8a52-439a-ba67-4ffa2135e4a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: Help with saving a widget's tiddler content from external library code

2019-02-22 Thread Simon Huber

>
> The easiest way of doing all this would be using the way the codemirror 
engine does it (have a look at tiddlywiki.com/prerelease and look at 
$:/plugins/tiddlywiki/codemirror/edit-codemirror.js)

* clone the edit-codemirror.js tiddler, make it export edit-sftype (for 
example)
* it will be used when you have a editor type mapping 
($:/config/EditorTypeMappings/application/sftype) that contains sftype (in 
its text field ... if you export edit-sftype ... if you export 
edit-myengine, put myengine inside) ... that will automatically call the 
edit-sftype widget (or the edit-myengine widget), when editing a tiddler 
with type application/sftype
* then the basic handling is done by factory.js
* and you create your engine javascript tiddler with the title you defined 
above (your clone of edit-codemirror.js)
* for the content of your engine you can use 
$:/core/modules/editor/engines/simple.js as the easiest template to build 
on top , and you can have a look at the codemirror engine how it 
incorporates the codemirror library (probably too complicated for your case)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7b910a8f-413b-46f3-bd06-8875520578a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: Help with saving a widget's tiddler content from external library code

2019-02-22 Thread Simon Huber

>
>
> On Fri, Feb 22, 2019 at 2:20 PM Simon Huber  > wrote:
>
>> I am having some trouble understanding how to update the text and other 
>>> fields of a tiddler my  widget editor works on. 
>>>
>>> I am at the point where the editor is holding 
>>> (1) editor.widget, a ref to the widget it was called from and 
>>> (2) fieldUpdates,  an object with field/value pairs  for all the 
>>> tiddler's fields I want to update. My problem is which function to use to 
>>> get the task done.
>>>
>>
>> If you're editing a tiddler with your editor and you want its title, the 
>> widget calling your editor must have it (...) ?
>>  
>> what does console.log(editor.widget) say? is there no editTitle?
>>
>> is your editor called the standard tw way using factory.js?
>>
>
> No it isn't. Sorry for using a confusing terminology. Here is my scenario:
>
> I have a widget plugin that creates a new Div element and then passes it  
> to  an external library. The latter builds a complete specialized editor 
> inside the Div. I also give the library a ref to the widget that calls it. 
> To be clearer, I have:
>
> 1. A tiddler with some specialized text format. Call it SF-Tiddler of type 
> text/SF-type
> 2. A widget that reads the content of tiddlers of type text/SF-type and 
> passes it to a specialized editor mini app
>

so the widget reads the content of tiddlers, so it must know the tiddler 
title

somewhere there is the hidden egg

inside that widget
 

> 3. A specialized editor mini app, Call it SF-EditorApp, which starts out 
> with a copy of the text content of (1) and holds on to a ref to the calling 
> widget (2)
> 4. Editing operations within SF-EditorApp that need the internal copy of 
> the text to be written back to the text of (1) as soon as they are carried 
> out.
>
> My problem is how to to reach (1) from a ref to (2).  SF-EditorApp has a 
> property "widget". IO have been looking at all the methods of Widget, as 
> well as staring at the object in the debugger, and I cannot find a ref to 
> the tiddler the widget is open on. I was expecting either something like:
>
> SF-EditorApp.widget.getTiddler()
>
> or 
>
> SF-EditorApp.widget.tiddler
>
> Instead, after many trips through  the debugger, all I could find was:
>
> SF-EditorApp.widget.parentWidget.transcludeTitle 
>
> which indeed points to the title of my tiddler (1), but has me even more 
> confused (to get from widget to tiddler I need to go up a level and descend 
> to a transclusion?)
>
> What I am looking for is the reference chain that leads from (2) to (1) or 
> to (1)'s title. 
> And the fact I cannot find it after spending two hours looking at the code 
> can only mean I ma still fundamentally confused about TW's data model.
>
>
> -- 
> __
> Stefano Franchi
>
> stefano...@gmail.com 
> http://stefano.cleinias.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/babeabd7-c030-4f1d-aaa2-59a520664af2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] a video widget that plays videos without interruption

2019-02-16 Thread Simon Huber

>
> Hi Simon
>
> The interruption of playing videos is definitely an issue and I've thought 
> along similar lines. I'd be interested to see your hack.
>
> I like the idea of supporting a playlist of videos that play one after the 
> other so that we could use TW to assemble fragments of video, using TW as a 
> non-linear video editor.
>
> Best wishes
>
> Jeremy.
>
>
Hi Jeremy, I'll make a tiddlyspot wiki and put it online, I just need to 
find the time to reassemble all parts

I'll leave the link here

best wishes 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/94883016-22c3-4b22-a246-c6fdf42346ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] a video widget that plays videos without interruption

2019-02-16 Thread Simon Huber
Hi there,

the following is the same for audio content (+anything heavily depending on 
the time-dimension)

I often embed videos in my wikies, mostly youtube, music and educational 
stuff.

There's a problem when we want to play a video without interruption...

Anytime the tiddler containing the video makes a full refresh (story list 
changes and others) the video (or audio) makes a full refresh, too and 
starts from the beginning


I gave it a shot in creating a video widget that appends the video to the 
page's body, adds a dummy node (div) where the video widget is and keeps 
the position of the video synchronized with the position of the dummy node.
It workes with some conditions missing when to refresh (adjust positions)

It's a hack, but a useful one if it works. Can you imagine making this work 
correctly and having such functionality in the core?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/209238f2-ef68-4678-a5ae-01e7fd2b6615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: How to build a settings panel for a plugin

2019-02-14 Thread Simon Huber
Hi Stefano,

I can provide you some information:

* a widget is based on $:/core/modules/widgets/widget.js ... all the 
methods defined there are also accessible in your widget (and work with 
values based on your widget, like the refreshSelf method, that works with 
your parentDomNode defined on top with this.parentDomNode = parent), or you 
provide your own which will be used instead of the one in widget.js
* for your configuration panel this will be useful so that the widget 
refreshes its configuration whenever one of its configuration tiddlers 
changes:

YourWidget.prototype.refresh = function(changedTiddlers) {
//here, decide what to do, how to refresh when a configuration tiddler 
changes
if(changedTiddlers["$:/plugins/myname/myplugin/config/myconfig"] || 
changedTiddlers["$:/plugins/myname/myplugin/config/myotherconfig"]) {
//maybe when these tiddler change the widget needs a full refresh - depends 
on how your widget works. note that the refreshSelf method depends on 
this.parentDomNode being accessible, that's why it's saved at the top of 
the render method
this.refreshSelf();
return true;
} else if(changedTiddlers["
$:/plugins/myname/myplugin/config/myotherotherconfig"]) {
//maybe this config needs just to update a configuration value ...
this.configvalue = this.widget.wiki.getTiddlerText("
$:/plugins/myname/myplugin/config/myotherotherconfig");
//maybe I need to do some other processing / updating / refreshing based on 
an external library, maybe there's a way to update ... otherwise the 
refreshSelf method updates everything,
//given that somewhere, like in the execute method (which is usually called 
in the render method and used to get attributes and make child widgets), 
you get those values from the configuration tiddlers
}
}
//if none of our configuration tiddlers is contained within the array of 
all changed tiddlers (or if it's the otherotherconfig), just refresh the 
children based on this widget and the changed tiddlers
//see widget.js how the refreshChildren method looks like
return this.refreshChildren(changedTiddlers);
};



So, the refresh method basically makes changes in your configuration in 
user-land update the configuration in your widget

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/d27fd685-4e6f-48ee-9d8d-b542c276066f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread Simon Huber

>
>
>
> On Wed, Feb 13, 2019 at 3:56 PM Simon Huber  > wrote:
>
>> Hi stefano,
>>
>> from within the render method it should be possible to access the parent 
>> if I recall correctly,
>>
>> could you post a bit of code to work with?
>>
>>
> Well, it is all very rudimentary still, but the idea is the following:
> In my plugin I import the library and instantiate it, then create the div 
> to pass to it. Then I call the constructor of my library's main object with 
> the div as its argument:
> 
> (function(){
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
> varWidget = require("$:/core/modules/widgets/widget.js").widget;
>
> //The library I use, besogo:
> var besogoPlayer = 
> require("$:/plugins/cleinias/SgfEditor/besogo").besogo
>
> var GoGameWidget = function(parseTreeNode,options) {
> this.initialise(parseTreeNode,options);
> };
>
> GoGameWidget.prototype = new Widget();
> 
> /*
> Render this widget into the DOM
> */
> GoGameWidget.prototype.render = function(parent,nextSibling) {
> this.parentDomNode = parent;
> this.computeAttributes();
> var div = this.document.createElement("div");
> this.goGamePlayer = besogoPlayer;
>

Stefano, here you should be able to get dimensions of the parent domnode by

var rect = this.parentDomNode.getBoundingClientRect();

for example ...

var width = rect.width;

hope this helps

//
> // This is where I would need to know the width of the future widget, so I 
> can pass it to the create function
> //   this.goGamePlayer.create(div);
> var twSgfFile = this.getAttribute("sgfFile");
> parent.insertBefore(div,nextSibling);
> this.domNodes.push(div);
> };
> 
> he goGamePlayer.create(div) function is the call to the besogo library,  
> where all the magic happens.  Its resizer function computes a bunch of 
> parameters. Withouth going into unnecessary details (I append the function 
> below, relevant lines are bolded and italicized), the width of the 
> parentElement is crucial to determining the overall width of the final 
> widget. For now, I got around the problem in testing by hardcoding a number 
> into the code, but it would really be nice to have a flexible and 
> responsive solution
>
> Cheers,
>
> S.
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3dc56a47-152b-46a2-b923-35900f77d8a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread Simon Huber
Hi stefano,

from within the render method it should be possible to access the parent if 
I recall correctly,

could you post a bit of code to work with?

 

> The library I am adapting for a TW plugin builds a complex SVG structure 
> inside a div and the basic parameter it uses to compute the layout is the 
> width of the parent container it is inserted in, which it gets with:
>
> parentWidth = parseFloat(getComputedStyle(container.parentElement).width)
>
> This of course does not work in the plugin's render function, where I 
> instantiate the new div, because there is no parent yet and in fact there 
> is no widget yet Is there any way to get the width of the widget to be as 
> it is about to be inserted in the story river (or, even better in 
> general)??Is it provided by the theme and is it accessible?
>
> Thanks for the help,
>
> S.
>
> __
> Stefano Franchi
>
> stefano...@gmail.com 
> http://stefano.cleinias.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/dbda1e52-33d9-46c7-b401-5eb659ae8f9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Where is the source code that implements the "tm-new-tiddler" message?

2019-01-14 Thread Simon Huber
Hi all,

how I understand it:
messages have two types of parameters, those that start with a "$" sign and 
those without

I prefer sending a message through the action-sendmessage widget instead of 
using the button-widget's message and param attributes for that, because it 
allows me to distinguish between the message-parameters starting with "$" 
and the parameters without "$" that go into the paramObject (the 
action-sendmessage widget does that for us)

<$action-sendmessage $message="tm-new-tiddler" $param="i-dont-know-atm" 
something="nice" everyone="beautiful"/>

something and everyone will go into the paramObject and then it depends on 
what happens with those variables
as @FrD said, inspect the message you're interested in through searching 
for it in the advanced search -> shadows. it's a journey

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/a013431b-921a-46fc-8c05-2c8ec1b0b603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Problem with TW5.1.19 and Tinka plugin

2019-01-05 Thread Simon Huber


> Hi Simon,
>
> I am not a coder, so the error doesn't ring a bell for me.
>
> Thanks for investigating.
>
>
Does Tinka create a Modal dialog somewhere? I believe the problem is a 
minor issue related with modals or something with going fullscreen, but 
nothing that should cause problems for Tinka itself

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b1591815-7de1-49e2-bade-ab81e3637c47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Problem with TW5.1.19 and Tinka plugin

2019-01-05 Thread Simon Huber


> Hi all,
>
> *Update*
> Repeating what I did yesterday (and better documenting it!), showed one 
> mistake I made yesterday: there was an undefined tiddler in the list to be 
> packed which gave the Javascript error: "TypeError: tiddler is undefined"
>
> *Today*
> TW5.1.19
> With the corrected list I still see a Javascript error: "TypeError: 
> options.event.event.target is undefined" *BUT* the plugin as such is 
> created (and works).
>

Hi Ton, I'll look that up. Looks like something I've added but I don't 
remember where/what

>
> TW5.1.17
> With the corrected list the plugin is packed normally without errors.
>
> After importing the plugin made in TW5.1.17 in a TW5.1.19, I can repack 
> the plugin without errors as well.
>
> So it boils down to the question if "TypeError: options.event.event.target 
> is undefined" is something to be worried about.
> And why is this error in TW5.1.19 and not in TW5.1.17
>
> Cheers,
>
> Ton
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b891d434-97d3-4568-921b-bb9932932cde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: What are 5 most important widgets to learn?

2018-12-20 Thread Simon Huber
opinionated:

1 - LIST widget
2 - TRANSCLUDE widget
3 - SET widget
4 - REVEAL widget && BUTTON widget
5 - ACTION-SENDMESSAGE widget (with all its messages [ search 
tiddlywiki.com for "tm-..." ])



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7ba5c539-bf4d-422d-9243-0477756e89ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Scope of macros

2018-12-17 Thread Simon Huber
Hi, the macros tagged $:/tags/Macro are imported in the page-template 
tiddler ($:/core/ui/PageTemplate) which makes them available within the 
story river and the sidebar and all sub-transcluded tiddlers...

PageTemplate 
import all $:/tags/Macros
set some stuff
transclude all sub-templates (sidebar,story ...)
close stuff
close PageTemplate


you can import a macro defined in "Macro testtiddler" (which isn't tagged 
$:/tags/Macro)
using the <$importvariables filter="[[Macro testtiddler]]">
or 

\import [[Macro testtiddler]]

in another tiddler

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


[twdev] Re: [TW-5 Plugin] New Plugin - TW5-JsonManglerPlugin!

2018-12-03 Thread Simon Huber
Hi Joshua, this is pretty cool 8-) !

When trying some examples I noticed that the action-listops example adds 
"null" to the json when - I think - it should be just "" (empty) ... then, 
when you populate the index again, "null" results as an additional item


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/bb489177-c4af-4b87-b522-cab73294ad9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Rethinking Popups

2018-11-28 Thread Simon Huber
Hi Rob, this is a much needed discussion, thanks for posting!

I think we should try something based on your ideas here, they all sound 
reasonable to me
The action-popup widget is something I would love to see

The popup mechanism should also somehow allow access to the tiddler the 
popup is bound to if it's a tiddler in the story river. Your proposal of 
storing popup states in tiddlers would allow that

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/dd0e4686-c28a-4780-914d-47f44a7ef673%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: KeeBoord plugin and the Keyboard Shortcuts in TW 5.1.18

2018-11-25 Thread Simon Huber
Hi Mohammad, thanks for bringing this up!

In fact, the most important feature of the KeeBoord plugin has now been 
introduced to the TiddlyWiki core and will be part of 5.1.18
I've been busy trying to get as many sensible features as possible to the 
new tiddlywiki release and to fix as many errors as I could in that time,

so I haven't found the time to update the KeeBoord plugin, which is VERY! 
out of date now.
at the moment I recommend not to use it with 5.1.18. I'll have to remove 
all features that are now part of tiddlywiki so that they don't interfere.
I'll leave a big note here in the group when the KeeBoord plugin is updated 
and ready for use with 5.1.18

The tracking of the latest tiddler under focus is something I'm about to 
improve for the KeeBoord plugin. It will update a separate state tiddler I 
think, but it will be less complicate than my current tracker

The differences of the keyboard functionality in 5.1.18 and the KeeBoord 
plugin are under the hood

in 5.1.18 performance is better. the logic how shortcuts get created is the 
same

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0ff3bf7b-5f03-4351-8a8e-1e044d23de1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] is there a way to make storyviews work in new windows?

2018-06-17 Thread Simon Huber
The problem:

I open a new window from within a wiki with its own navigator and story-list
I can display and open tiddlers, but navigation and animations don't work

I suspect that something isn't able to talk to the root window here, the 
$tw.rootWidget doesn't get "tm-scroll" events from this window for example

Does anybody know if this is fixable?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7b99ef93-e915-405e-b006-83e0b1004603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Should TiddlyWiki consider moving to GitLab?

2018-06-04 Thread Simon Huber

>
>
> On Monday, June 4, 2018 at 8:50:56 AM UTC+2, Simon Huber wrote:
>>
>> Hi, with the rumors or facts about MS buying GitHub I've seen projects 
>> discussing moving over to GitLab
>>
>
>  ... Let's wait and see, when they make something official. ... 
>  
>
>> Because TiddlyWiki5 already wants to move to another repo, I'd like to 
>> ask if GitLab is something that could be considered, too?
>>
>
> GitLab is definitely an option. ... but ... There is GitLab Inc, and 
> GitLab the product. 
>
> GitLab the product is open souce, and you can host it yourself. .. If you 
> want to be in hosting business. 
>
> GitLab Inc. is a company that runs GitLab.com. Which is a hosting platform 
> similar to GitHub (see the H). ... So what happens now to GitHub can also 
> happen to GitLab Inc., the company!
>

Yes, will be interesting to observe if/how things change 

>
>
> ... But we (TiddlyWiki community) have a functionality problem. I'm not 
> sure, if GitLab can fix it.
>
>
> Jeremy wants to keep the repository structure. .. Which in my opinion 
> can't be managed with github. ... I personally can't find a way to 
> configure, write-access on the directory level. .. The only way github 
> allows, is per repositroy access configuration. ... Which Jeremy doesn't 
> want. ... So back to step 1.
>

Is this the functionality problem?
What do you mean with repository structure? The folder-structure from the 
base-level up ... write-access for some only on some directories? 

>
> -
>
> IF MS aquires Github, we will need to see, how they behave. 
>
> It may be possible, that they open source the whole thing. So, there may 
> be more possibilities, as now. Some Enterprise edtion features may be free 
> in the future. ... see may be!
>
> They definitely will create closer integration with Microsoft Accounts. 
>  Which not necessarily is a good thing (for me) 
>
> --
>
> At the moment, I'd say, we have a closer look at GitLab workflow, which is 
> 90% the same, since git is the underlaying technology. The existing 
> possibilities are more advanced as GitHub at the moment. ... 
>
> So we can create a new group there. tiddlywiki ... Is already taken!! So 
> we would need to get it back. 
>

> I did grab "tiddlywiki5" and "tiddlywiki.org"
>
> I'll invite you, to the .org and we can play around with it, if you want.
>

Ok, sounds fun. Cannot find them on GitLab atm, I'm BurningTreeC over 
there, too 

>
> I can also invite you to https://github.com/tiddlywiki-org/ at GitHub, if 
> you want.
>

What are the things to explore/do there? 


Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/25f2d204-fcad-4882-b5c4-381cc11e0ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Should TiddlyWiki consider moving to GitLab?

2018-06-04 Thread Simon Huber
Hi, with the rumors or facts about MS buying GitHub I've seen projects 
discussing moving over to GitLab

Because TiddlyWiki5 already wants to move to another repo, I'd like to ask 
if GitLab is something that could be considered, too?


BTC

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/fed4242c-7f51-4554-9a02-19f9e6cfa5ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Anki like SRS in tiddlywiki

2018-04-27 Thread Simon Huber
Hi Ondrej, 

take a look at this thread 

 in 
the tiddlywiki group

there's something like anki, it's a work in progress, not finished. I've 
offered my help there to improve it, maybe we can use some of your ideas, 
too?

all the best,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c42c832d-3ca1-4b13-b553-130c320fce63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: adding Hammer Widgets to hammerjs plugin?

2018-04-14 Thread Simon Huber
The link to the widgets demo page: http://hammerwidgets.tiddlyspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e43805a6-e4a8-458e-8800-4cddfd4b121a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] adding Hammer Widgets to hammerjs plugin?

2018-04-14 Thread Simon Huber
Hi devs, I've made a set of widgets that uses the hammer.js plugin to 
enable actions on swipe, pan, press, tap and pinch

I'd like to ask if there's interest to have them included in the hammerjs 
plugin..

I won't have that much time to maintain them, and moving them over to the 
repo would maybe also assure that they get discussed and modified where 
it's needed


What do you think?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/426766c5-53d1-4c46-9ee6-18bc08c1c4ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5] problems decoding audio/ogg

2018-03-19 Thread Simon Huber
Update:

I had tried this on FireFox only...  on Chromium it works

I think I need to look for firefox bugs

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/041ffb9c-157f-4982-bf23-0fb617cd612d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW5] problems decoding audio/ogg

2018-03-19 Thread Simon Huber
Hello TW devs!

I'm facing an issue trying to play audio/ogg sounds within TW

I'd like to figure out if I'm doing something wrong or if it is because the 
mimetype is not defined/available/known in tw

Console says this:

Media resource data:audio/ogg;codecs="opus";base64,
T2dnUwACAEVP7KoBE09wdXNIZWFkAQEAD0SsAABPZ2dTAAABVewFUgEYT3B1c1RhZ3MIUmVjb3JkZXIAT2dnUwAEwAMAAgAAAHSiY8oBA
/j//g== could not be decoded, error: Error Code: 
NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)


I'm about to implement music-sheets with midi-playback 
(http://musicsheets.tiddlyspot.com/) - on that page there's a json tiddler 
holding the soundfonts of each note of a grand piano
like:

"A0": "data:audio/ogg;base64,T2dnUwACAAC... ",


Do you have an idea for a quick fix?

best wishes,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ab1f4cc1-7c8d-43f9-ab90-734c615ffcfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW5] tabindexes for tiddler tab-navigation

2018-03-17 Thread Simon Huber
Hi @all,

I'm trying to add tabindexes as attributes to the tiddler title input, the 
tag input and the text input areas

The title field should have tabindex 1
The tag field 2
The text field 3

The index of the current Tiddler in the storyriver should then be added to 
the applied tabindex so that each tiddler has different tabindexes


This allows to use tab to jump directly from the title to the tag input 
(that works also without this), but then jump directly to the text input 
field, ignoring the tool bar

Where I'm struggling is adding the tabindexes from within edit-text.js, 
edit.js, simple.js, framed.js ... it should also work with CodeMirror

What I'm doing at the moment is passing the indexes from the <$edit-text 
widgets within EditTemplate/title (tabindex="1"), macros/tag-picker 
(tabindex="2") and EditTemplate/editor (tabindex="3")

In simple.js I'm adding the tabindex to the title and tag input, that works


What's the right place to look for to add it to the text input (textarea) ?


all the best,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/f8e4874d-2bdc-44df-8108-66c4dacad640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] Bitmap-Editor Cursor: dot

2018-03-14 Thread Simon Huber
Hi Jeremy, 


Hi Simon
>
> I tried setting this in vanilla/base ... canvas.tc-edit-bitmapeditor 
>
> ...
> cursor: url(<>), auto;
> …
>
>
> I like the idea, but I’ve found that custom mouse pointers can look poor 
> quality and grainy on some browsers. Another possibility might be to hide 
> the cursor while the mouse button is down, so that it doesn’t get in the 
> way during painting?
>

 No, hiding isn't good - having nothing to orientate is really weird while 
drawing, even if it's only with the pointer down.
I use the tiddlywiki painting for quick sketches only, so this isn't that 
important, but I'd love to make it mature a bit
The best for sketching is something small and/or pointy
With the various cursor themes and styles that exist out there it's 
difficult to say what the best cursor might be... My crosshair cursor for 
example looks like a bullseye
There's no good universal solution I guess

Many words for a small point - maybe at one point the css cursor reliably 
accepts an svg image?
I was thinking if the drawing app itself can draw a point (small rectangle) 
at the pointer position <- that's just a thougt

Simon


> Best wishes
>
> Jeremy
>
>
>
> this works fine and feels much better - I'm sketching a lot ..
>
> I couldn't get it working with an svg image
>
>
> What do you think, can we have a dot? :)
>
> Simon
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywikide...@googlegroups.com .
> To post to this group, send email to tiddly...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/eb0fab76-0ef8-4b2e-9459-e47e8370fcf3%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ed4bef3f-438f-4548-b8c7-8e06b05f66fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW5] Bitmap-Editor Cursor: dot

2018-03-12 Thread Simon Huber
Hi all,

I'd like to ask if the current bitmap-editor cursor (the crosshair) 
shouldn't better be replaced by a dot like in regular drawing apps

I tried setting this in vanilla/base ... canvas.tc-edit-bitmapeditor 

...
cursor: url(<>), auto;
...


this works fine and feels much better - I'm sketching a lot ..

I couldn't get it working with an svg image


What do you think, can we have a dot? :)

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/eb0fab76-0ef8-4b2e-9459-e47e8370fcf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Understanding TW code

2018-03-04 Thread Simon Huber

>
>
> And a followup question.- I searched for semantics evaluation etc. but no 
> hits.
>
> Is there a description of how a tiddler gets turned into HTML?
>
> If I were to implement this I'd be thinking
>
> tokenize -> parse -> transform -> render
>
> After parsing I'd get an abstract syntax tree (AST1) representing the 
> tiddler.
> I'd evaluate this to produce a second AST representing (abstracted HTML)
> then I'd render this.
>
> Is it done like this?
>
> It would be very helpful to see the AST1 after parsing (if this is the way 
> it was done)
>
> Of course it might be implemented by some other means (like directly 
> manipulating the
> DOM) during parsing.
>
>
Hi Joe,

Have a look at the "Tools for exploring the internals of TiddlyWiki" in the 
ControlPanel under Plugins - get more plugins - open plugin library

that gives you new insight looks in the preview panel like "parse tree" or 
"widget tree" 

you can then choose them in the dropdown beneath the "eye" button in the 
editor toolbar

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/55977986-a407-4358-9887-1197b98b6b6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Serving external resources from TW5 node server

2018-03-03 Thread Simon Huber
Hi Joe, I cannot give you an immediate solution, but there's this project 
called TW5-MultiUser on github 

I think it's interesting to watch, I haven't tried it yet

It states that it's able to live-reload when something changes in the wiki 
folder
Maybe it also solves the external files problem that one has to rely on a 
second server

Another project is called TiddlyServer here 
 which allows relative linking of 
external files
I've used this one and liked it a lot

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/9c21ab9e-df94-427e-b3ff-182793e026bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread Simon Huber
my last guess: the node process should be restarted

I like using pm2 for that (npm -g install pm2 or how you do it on your 
machine)

pm2 gracefulReload yourprocess is very handy

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c64df86f-f020-473a-ba10-9f031b43218f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread Simon Huber
oh, sorry! I didn't read you're post well enough

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/615eb1e5-5101-43c9-b81e-a8ed63e5fc48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread Simon Huber


> I'm using the node server version of TW5
>
>
> As an experiment I thought I could just drop new .tid files into the 
> tiddlers sub-directory but the system does not seem to find these files.
>
>
> 1) I made a tiddler called Hello
>
>
> This gets saved in the tiddlers directory in a file Hello.tid
>
>
> 2) I copied this to a file Hello1.tid and edited the title to Hello1
>
>
> So now I have two files Hello.tid and Hello1.tid in the tiddlers sub 
> directory
>
>
> 3) reloaded the top page from 127.0.0.1:8080 In the More/All tab the 
> tiddler Hello1.tid is missing
>
>
> So how does the node version of TW5 know which tiddlers get in the all 
> list? and why does Hello1.tid not 
>
> appear in this list - is node.js storing a list of all tiddlers somewhere??
>
>
> /Joe
>

Hi Joe, have you looked in the "More" sidebar tab under "All" ?
They might show up there

I think this is happens when the created: 201803... timestamp is missing 
but I'm not sure

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b1188f65-10c4-4000-9c1c-864f12f3172b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-23 Thread Simon Huber

>
> Especially the tm-modal message: if I want to delete a tiddler in a new 
> window, the modal to confirm the action appears in the root window, 
> tm-notify acts the same way.
>

Sorry, I meant the alerts for cancelling or deleting tiddlers 

Now I figured out how to register the new window at $tw.openWindows but not 
the main window
As I wrote before, I think that fixing just this leaves thoughts open about 
the alerts, modals, notifications

But I'd like to do step by step anyway

Simon

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


[twdev] [TW5 on TD] framedengine bug?

2018-02-22 Thread Simon Huber
Hi, I'm not sure if this is a bug of if I'm overdoing it - this behaviour 
only appears in TiddlyDesktop:

If I open an external window from within TiddlyDesktop where I can create 
new Tiddlers and edit them because there's a story-river to do so...
everything works fine unless I close the window and open it again and 
create a new tiddler. Then console tells me that in framed.js at new 
FramedEngine it cannot read 'document' of null. After that also factory.js 
throws an error that it cannot read 'fixedHeight' of null.

It seems to me that windows.js (tm-open-window) and framed.js do not 
interact correctly

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/246281b8-cd14-4668-ad12-bfa8227f9917%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-21 Thread Simon Huber
Hi Jeremy, hi Andreas,

I'm sorry that I cannot dig into this myself, I'm not understanding the 
mechanism wel enough right now. But I'll keep investigating so maybe at one 
point I can contribute.

If we think about solving this, maybe we should also think about tm-modal 
and tm-notify not showing in the new window? Especially the tm-modal 
message: if I want to delete a tiddler in a new window, the modal to 
confirm the action appears in the root window, tm-notify acts the same way.

I think such a new window could also be used controlling a presentation or 
similar, where one may want the behaviour, that modals and notifications 
are shown there...

So how about changing both to show up in the window where they got 
triggered and adding an extension like external="no" to show them in the 
root window if desired?


Another thing, not directly related but maybe to include into this process: 
If I create a tiddler in the new window, then open its draft in the root 
window to edit, then save it in the root window - kind of a mess happens. 
I'm using two different Story-lists where I'm testing, that may be the root 
of the problem, but could this behaviour be fixed with the others, too?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0705592e-3e94-4d38-8fd5-87d557e06583%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-21 Thread Simon Huber
No - I'm not having success. Here I depend on help from above

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/31f5df4c-5e0b-4527-be06-7a6133f0f1f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: add viewport macro to core?

2018-02-21 Thread Simon Huber

>
>
>
> I do not mind that either - as long as I do not have to install a plugin 
> just to get access to this piece of info. As in, I recommend this to core - 
> instead of a plugin. 
>

That was my initial idea, too

Now I'm just happy to have it somewhere, but I also think it would be 
better to have it in the core. It adds almost no weight.

Maybe at one point we can have it as a core feature, would be great

Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/f5526563-82f7-4959-a4a8-cfb451180531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-21 Thread Simon Huber
thanks a lot Andreas,

I've now been trying .../startup/windows.js , which handles the 
tm-open-window message
couldn't I also try to register it from within there, when the window gets 
opened?

I'll take a look at your tips, the second seems more appropriate to me, 
changing that much like in (1) is a bit out of my skill-scope and I guess 
it would need to change many other things, too

Hi Simon,
>
> that is almost the right place yes, if you have a look at 
> core/modules/startup/startup.js [1], you will see that it initializes it 
> without the rootElement being given anyway. The next problem is that all 
> widgets regardless of the window they are rendered in will use 
> $tw.popup.triggerPopup(), so we can't have multiple popup handler (i.e. 
> one per window). The actual event listener however will be registered in 
> $tw.popup.show().
>
> As it stands I see two ways you could make the core properly handle this:
>
>- Turn the global window variable in core/modules/startup/window.js 
>into $tw.openWindows and make sure that all open windows including the 
>main one are listed there and then have the Popup mechanism iterate 
> through 
>these and register itself (to all of them). 
>- Have the Popup mechanism use [2] to register itself to the 
>appropriate window by default and only change this if the rootElement 
>option was set. (Not sure how well this would work in other browsers, but 
>it would require the least change) 
>
> [1] 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/startup/startup.js#L118
>
> [2] https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cfae930d-b51a-4e7d-aeef-40ffe06ce056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-21 Thread Simon Huber
Hi, Andreas

I tried hacking a bit in popup.js to see if I can register it to something 
different but my js knowledge is limited,
I don't know what to use. Right now it does 

this.rootElement = options.rootElement || document.documentElement;

on top of popup.js
I think this must be where it can be changed

what I'm looking for is an appropriate way for the core to handle it so 
that I could try making a pr

thanks for your reply,
Simon

Am Mittwoch, 21. Februar 2018 13:26:38 UTC+1 schrieb Andreas Hahn:
>
> Hi Simon, 
>
> unfortunately this is a shortcoming of the current PopupMechanism in 
> TiddlyWiki and will require changes to the core. The only way to open 
> and close the popup seems to be with a button. 
>
> If you happen to know javascript you could in theory write a 
> plugin/widget to fix this by adding $tw.popup as an event listener to 
> the window root dom element. Alternatively I imagine this would be fixed 
> by having $tw.popup.show register the event listener on the ownerElement 
> or on all open windows. 
>
> /Andreas 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8f11d98a-8f0b-4f94-af49-09b6ff1346ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW5] enable cancelling popups in tc-single-tiddler-window

2018-02-21 Thread Simon Huber
Hi all,

Is there a way to cancel popups or dropdowns created in a single-tiddler 
window by clicking in that window, not in the root window?

As you can see here right now tw doesn't handle that: 
http://rocketdock.tiddlyspot.com
you can click the rocket to open a new window and try the search field for 
a dropdown

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3a8e21e9-1bfd-48dc-bc00-8659e1f6854a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: add viewport macro to core?

2018-02-20 Thread Simon Huber
Hi Riz,

IMHO, shouldn't we add them as a part of existing $:/Info tiddlers? That is 
> where it is expected, right? If we do that, third party themes which 
> radically changes outlook by differing Pagetemplates can make use of it. 
> Please consider if not too late already.
>
> I used $:/state tiddlers because they don't trigger a save-wiki process
If you save a wik html file -i in my case on chromium - a bottom download 
bar appears, that causes a page resize and another dimension change which 
causes it to save again
with auto saving enabled this could be bad

I think it's not too late to change anything but the $:/state tiddlers 
seemed best to me

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/1cccb817-2eb1-4769-9cd0-41dd4577f0a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber


> Looks interesting.  How is that meant to be used?
>
 
I don't know ¯\_(ツ)_/¯
I'll have to explore it deeper
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/003a43de-8227-4478-b81f-2a36a45840ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber


>
> Kudos. Nice bit of tech-sloothing, Simon.
>
>
> Thanks :)

I guess something like this then could wrap it in a sidebar?
https://gist.github.com/Noitidart/8728393 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2c0120a7-6051-499a-a051-fc788d8bfee6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber




*The settings that appear to make it work faster when tab is in background, 
for chrome/chromium and firefox:firefox (58) (goto about:config [do it at 
your own risk])*
dom.min_background_timeout_value ... change from 1000 to something low (I 
tried 50)

dom.timeout.enable_budget_timer_throttling ... false



*chrome/chromium (goto chrome://flags [do it at your own risk])*
Pause background tabs ... disabled
Throttle expensive background timers ... disabled
(these settings would be accessible on TD , too - just in case)


sherlock H.

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


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
I have to correct: works on TiddlyDesktop , too

I don't get those js errors anymore, don't know why I got them before...

they may come back though...

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b7e613ea-79ba-44a8-95cc-5d8847eb3161%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
for chromium (and chrome) I found something that works:
https://www.askvg.com/how-to-enable-disable-background-tabs-throttling-feature-in-google-chrome-and-opera-web-browsers/


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ccf82f01-fb9c-49ec-81ed-21954dca3cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
I've tried firefox, chromium and TiddlyDesktop

chromium is a bit faster than ff

TD throws javascript errors when trying to create Tiddlers - because of its 
framed nature maybe?
But TD wouldn't be the target anyway

For desktop browsers there should be some hidden settings somewhere to 
prevent them from throttling background tabs
I'll make some detective work

Am Montag, 19. Februar 2018 19:02:52 UTC+1 schrieb coda coder:
>
>
>
> On Monday, February 19, 2018 at 11:34:42 AM UTC-6, Simon Huber wrote:
>>
>> Another issue is that its operation slows down a lot when one changes 
>> browser tab to other pages (and that's what this should be good for)
>>
>> does anybody know a why and a how for that?
>>
>
> The new window belongs to the original TW browser tab.  Browsers 
> "optimize" performance on the current *forward*  tab (actually, I think 
> they "downgrade" performance on the non-forward tabs).  So even though your 
> floating window is essentially "forward", it's suffering the same downgrade 
> in performance because it belongs to a background tab.
>
> It's a matter of debate as to whether that's "a bug".  :/  It's certainly 
> undesirable.  Did you try a few different browsers?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/f1896939-6bfb-450d-812f-d720816ecb42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
Another issue is that its operation slows down a lot when one changes 
browser tab to other pages (and that's what this should be good for)

does anybody know a why and a how for that?

all the best,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ab9b1eea-2b6a-4fa0-af6c-3507772353f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
This would be a way I think: http://rocketdock.tiddlyspot.com/

It's a stripped-down view you can open in a new window, add tiddlers, edit 
them, there's also a dropzone to drag stuff into.
I'm not happy that the address bar shows up on top - I think I could make 
some pull requests for the tm-new-window message, some parameters... maybe 
also a solution for docking the window? Is that possible?

BTC

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/1602b031-2f0c-401e-a047-8085c114cef3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber


> np. And again, a regular textfile bookmarklet is generally better (for the 
> OP solution).  File/SaveAs is good enough (sans images).  And it doesn't 
> *need* to be in the sidebar, either... create two, one of each.
>
> my intention was not having something just good enough, I was thinking 
more in the "good" direction ;)

I think having a wiki open, but being able to edit tiddlers from a panel 
docked to other pages would be nice, having the wiki simultaneously updated.

Now I think a button from within a wiki that opens an editor panel in a new 
window can already do that - I did something like that with the sidebar once

let me see if I find that solution, then I'll tinker something in my 
alchemy laboratory

BTC

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ffb3c834-d6bc-4f23-93bf-22dda3d47dbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
@Coda,

the nodejs part works, but it doesn't work with local files

Am Montag, 19. Februar 2018 16:35:24 UTC+1 schrieb coda coder:
>
>
>
> On Monday, February 19, 2018 at 9:19:06 AM UTC-6, Simon Huber wrote:
>>
>> hm... how do you do that with local files?
>>
>>
> This one is a bit prettier too...
>
> data:text/html;charset=utf-8,%20Textfilebody, 
> .vw-iframe{margin:0;border:none;height:100%;width:100%;} class="vw-iframe" src="file:///path/mywiki.html"> 
>
> Or node/Tiddlyserver...
>
> data:text/html;charset=utf-8,%20Textfilebody, 
> .vw-iframe{margin:0;border:none;height:100%;width:100%;} class="vw-iframe" src="http://127.0.0.1:99/path/my-wiki.html;>
>

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


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
hm... how do you do that with local files?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/099d5f21-716c-4fd9-96d9-917bbb0697ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
great @coda coder, any ideas how to take this further to edit tiddlers?

I think this should just integrate any editor toolbar and then we should 
try to make it edit tiddlers.

How can we take this short sentence to reality?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/280022f0-1bdd-4aeb-a944-5ed579b6b1bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [Idea?]Browser sidebar panel for TW notes

2018-02-19 Thread Simon Huber
Hi all,

I've recently stumbled upon this firefox-panel for quick notes, called 
"NOTES"

This is the github repo: https://github.com/mozilla/notes ... it uses the 
popular WYSIWYG quill editor https://github.com/quilljs/quill

This panel is the same as the "notes" FireFox Test-Pilot experiment: 
https://testpilot.firefox.com/experiments


I've tried both and I've tried quill's capabilities on https://quilljs.com

I think such a panel would be great for editing tiddlers while browsing 
other web content, pasting stuff directly ... to just name two

I haven't looked deeper into the code and I haven't done something like 
this before, but it looks doable.

I'd like to ask you here - you are more experienced, you maybe can tell me 
immediately if it's not worth investigating further

Or maybe it's a great thing that could be done?

all the best,
BTC

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0cf28ca2-935e-4597-89f0-5eb982110112%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: add viewport macro to core?

2018-02-19 Thread Simon Huber

>
>
>
>> Could you name some?
>>
>>
>>
> Loading separate page-templates for mobile platform would be a start. 
>

 yes, great Idea!

The dynaview plugin now adds an option to save viewport dimensions 
dynamically :) !

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/f8dd6e6f-4e68-497a-bf73-10828aeba263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: add viewport macro to core?

2018-02-16 Thread Simon Huber
Thanks Jeremy,

I've made a pull request 
here: https://github.com/Jermolene/TiddlyWiki5/pull/3126

best wishes,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/725cd878-4674-4971-b86f-71d613c9c4fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: [TW plugin library] - a gesture library in the TW plugin library?

2018-02-16 Thread Simon Huber
Hi Jeremy,

I made a PR here: https://github.com/Jermolene/TiddlyWiki5/pull/3125, 
hoping that I did it right

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/10707324-599a-4fa3-9287-a11a730f0d30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: add viewport macro to core?

2018-02-16 Thread Simon Huber
Thank you Jeremy,


> I think the way to do this is as a startup module that listens for 
> viewport size changes and then updates a couple of state tiddlers with the 
> values. The changes to those tiddlers would then trigger any necessary 
> rerendering via the refresh process.
>
> The new DynaView plugin already listens for scroll and resize events, and 
> so it might be reasonable to extend it with these features:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/dynaview/dynaview.js
>

yes this looks perfect,
should it do this by default or by enabling it through a config tiddler?

>
> Best wishes
>
> Jeremy
>
> Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/de94fa0f-bd17-4029-ac84-11bf9019964b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW plugin library] - a gesture library in the TW plugin library?

2018-02-16 Thread Simon Huber
Hi Mario,
 

>
> If you have a closer look, how jszip is implemented, you should be able to 
> use the same mechanism.
>

yes, I use it the same 'require("...hammer.js");' way

>
> TiddlyWiki uses the "commonjs" modul loader convention. The hammer.js checks 
> for this mechanims 
> 
>  
> and should do the right things.
>
> So it should be possible to include hammer.js as a library, that can be 
> used similar too: JSZip = require("$:/plugins/tiddlywiki/jszip/jszip.js") 
> .. as in xlsutils 
> .
>  
> <- click!
>

I've seen that the JSZip plugin contains the license, a description and the 
minified library without further modifications. That would do it the 
hammer.js case, too

>
> There will be some testing needed. But imo this should be a starting point.
>

I'd test it, sure thing! Beyond the starting point, what else is expected 
from my point?

>
> -m
>
>
> Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c34debdd-ed0d-42b5-bbb4-c99c3ae0a538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: add viewport macro to core?

2018-02-16 Thread Simon Huber


Am Freitag, 16. Februar 2018 11:29:38 UTC+1 schrieb PMario:
>
> Hi,
>
> On Friday, February 16, 2018 at 10:21:26 AM UTC+1, Simon Huber wrote:
>>
>> I'd like to propose adding a macro to the TW core functionality that 
>> returns the viewport dimensions
>> The use-cases can be many 
>>
>
> Could you name some?
>

executing, revealing, listing different things if the viewport width/height 
is lower than x, something else if higher
one can do things in css with vw of media queries, but inside macros or 
widgets I couldn't find a way to get the viewport dimensions

>
> I'm a little bit concerned, that a macro won't be always updated. ... 
> Since they are only calculated, if rendered. ... But I may be wrong here, 
> without tests. 
>

no you're right! it doesn't update. Should I go the widget way?

>
> -m
>

thanks Mario!

Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e751f885-5861-476c-9ae6-358a6ab1ecaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] add viewport macro to core?

2018-02-16 Thread Simon Huber
Hello,

I'd like to propose adding a macro to the TW core functionality that 
returns the viewport dimensions
The use-cases can be many - there's no such thing in the core right now, 
I'd be happy if you can proof me wrong

I already use this small set of code:

(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

exports.name = "viewport";

exports.params = [
  { name: "property" }
];

/*
Run the macro
*/
exports.run = function(property) {
  var viewPortWidth = Math.max(document.documentElement.clientWidth, 
window.innerWidth || 0);
  var viewPortHeight = Math.max(document.documentElement.clientHeight, 
window.innerHeight || 0);
  if (property === "height") {
return viewPortHeight.toString();
  } else if (property === "width") {
return viewPortWidth.toString();
  } else {
return false;
  }
};
})();

How are my chances? I'd like to create a PR with documentation

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/1ee22497-006c-44be-830d-fa63e316e4c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW plugin library] - a gesture library in the TW plugin library?

2018-02-16 Thread Simon Huber
Hello TW devs & maintainers,

I'm using the hammer.js library a lot for different widgets or plugins. It 
provides/handles gestures like swipe, pan, tap, press, rotate and pinch
If one wants to use them, it requires to get the hammer.js library from one 
of my widgets/plugins
But that's very inconsistent - say I'd like to pack two different plugins 
all using that library, I'd have to pack the library twice or refer to the 
library tiddler from one of my plugins, so that they get that, too
This forces to either use two plugins or just one with a part from another

The TW plugin library already includes the JSZip, XMLDOM and async.js 
wrappers that are used by some plugins, that's why I'd like to ask:

Could the hammer.js library be included like that?

It could be a different library with similar functionality - though I think 
hammer.js is pretty stable. But I'd be happy to investigate about the best 
solution


kind regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/f122126e-6c85-425f-97ac-cfa483c508f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Controlling plugin order

2018-02-11 Thread Simon Huber
Hello Matthew,

this could be because TW loads the stylesheet before the vanilla base 
stylesheet, so that the latter overrides your styles. I had that problem, 
too

For me it worked adding the field "list-after" with this content: 
$:/themes/tiddlywiki/vanilla/base

Simon

Am Montag, 12. Februar 2018 00:43:02 UTC+1 schrieb Matthew Lauber:
>
> I've got some tweaks I like on all my wikis (breakpoint, story river 
> width, etc).  I tried to pack them into a plugin so I can move them from 
> wiki to wiki easily, but what I discovered is that once I pack them into 
> the plugin, they no longer work.  I can see them inside the plugin, so what 
> I think is happening is that my preference plugin is being loaded before 
> the theme plugin itself, and thus the theme overwrites my tweaks.  
>
> Can anyone shed light on what controls plugin load order?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/eb75f2e0-7ac8-455c-bf3c-1811b367d56e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TiddlyDesktop] launching nwjs with some flags

2018-02-11 Thread Simon Huber
Hi Jeremy,

thank you, that's great! I don't now either if the restart button is safe, 
I didn't think about it and already clicked it more times, until now 
nothing strange happened
I'll report if something bad comes up that could be related.

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/4814b5b7-d599-4535-954c-26df2cdeb611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TiddlyDesktop] in linux app stores

2018-02-11 Thread Simon Huber
sort of a fail here: the app must be a native gtk3 app

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/5658811d-c1c4-478a-8a72-cfaab7c37b80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TiddlyDesktop] in linux app stores

2018-02-11 Thread Simon Huber
Hello @devs, @Jermolene,

I don't know if there's already been discussion about providing easier 
access to TiddlyDesktop through app stores

I've recently tried a very popular linux distribution called elementary os 
(which is ubuntu-based), https://elementary.io -
It has an app-store that allows voluntary donations when installing apps 
and I thought that could be something for TD. The deployment is handled by 
connecting a dedicated github repo (https://developer.elementary.io/) , 
which seems suitable.

I think TW could benefit from having TD right there in a (linux) app-store, 
and (linux) TD users, too

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2d20c0ed-590e-4962-8cd2-23e6c56547e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TiddlyDesktop] launching nwjs with some flags

2018-02-09 Thread Simon Huber
HERE 's 
a link to the chromium project with a how-to about running it with flags

I've added my flags to the package.json in the source folder after cloning 
the TD repo. After that I built TD and the flags were enabled.

Alternativelly one can open chrome://flags frome within TD using the 
developer console and entering this.document.location = "chrome://flags"
 ... (or chrome://gpu)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2154006a-06cd-429e-b273-5d371adb047c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TiddlyDesktop] launching nwjs with some flags

2018-02-09 Thread Simon Huber
Hello there,

I've set some chromium flags in TiddlyDesktop and some of them could be 
interesting to set by default.

There's a flag to show scrollbars as more narrow overlays so that they 
don't resize the content if it overflows
I've also set some flags to enable hardware acceleration where it wasn't 
enabled by default. I couldn't measure an improvement in performance, but 
subjectively I tend to experience a slight one.

I think it's interesting to explore some of the tweaks we can do with these 
chromium built-ins, maybe some make sense for everyone and can find their 
way into a future release?


just my thoughts, I like TD a lot and want to help improve where I can


all the best,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3baeca2a-1583-4117-8757-fd86fdbaa2af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] TiddlyDesktop top unused MenuBar

2018-01-26 Thread Simon Huber
Hello devs,

I've figured out that by commenting out line nr. 66 "this.window_nwjs.menu 
= $tw.desktop.utils.menu.createMenuBar();" in "wiki-file-window.js" hides 
the grey top menubar in TiddlyDesktop

This bar isn't used by anything and takes away some valuable space on 
smaller screens
Is this a necessary feature for something or is it a placeholder for some 
coming features? I'd like to create a pr for this, making it configurable

Simon


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/67fd9031-ab24-4554-9b9c-794282365f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: page background goes to nirwana with fullscreen button

2018-01-22 Thread Simon Huber


Am Dienstag, 23. Januar 2018 07:02:32 UTC+1 schrieb Simon Huber:
>
> Hello, what is the reason that the pagebackground gets unset with the 
> fullscreen button?
>
> BurningTreeC
>

edit: I got it, it's the tc-body background color that hides background 
attachments

I made a pr and cross fingers,

have a nice day @all 

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


[twdev] page background goes to nirwana with fullscreen button

2018-01-22 Thread Simon Huber
Hello, what is the reason that the pagebackground gets unset with the 
fullscreen button?

BurningTreeC

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/044e253c-0496-4648-986a-8ad28502e5cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
sure, it's just testing!
 

> If that's you just testing, that's fine.  Otherwise you (the middle man) 
> are stealing a click from me (user) targeting YT itself -- in my view, 
> naughty ;)
>
> On Tuesday, January 16, 2018 at 9:42:01 AM UTC-6, Simon Huber wrote:
>>
>> Ah but... trying to go fullscreen on the yt video fails -- the video 
>>> disappears.
>>>
>>> that's what it should do, as in the stylesheet there's .tw5-burning-tree 
>> .tc-tiddler-frame iframe { display: none; } ... to see if it happens with 
>> yt fullscreen, too
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8cdae018-0226-4fd9-bf19-945260818891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber

>
> Ah but... trying to go fullscreen on the yt video fails -- the video 
> disappears.
>
> that's what it should do, as in the stylesheet there's .tw5-burning-tree 
.tc-tiddler-frame iframe { display: none; } ... to see if it happens with 
yt fullscreen, too

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/934a3ffd-94fa-4554-80c8-c89ca8ddfd7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
that's good news! maybe as Jeremy said, css support is not far away.
thanks for trying it out @coda coder,

@Jeremy I've tried different approaches now and it can be done better than 
the first fast tries but it's a bit a mess and I can't get my head around 
it, too.

not giving up on this, but enough for today

thanks both of you

Am Dienstag, 16. Januar 2018 16:31:42 UTC+1 schrieb coda coder:
>
> Tried FF on Win10 too.  Same.
>
> However (brace yourself) it works on FF 59.0a1, Win7
>
> Can't try Win10 (don't have FF 59).
>
> On Tuesday, January 16, 2018 at 9:26:05 AM UTC-6, coda coder wrote:
>>
>> No, sorry. Same as before.
>>
>> On Tuesday, January 16, 2018 at 8:09:11 AM UTC-6, Simon Huber wrote:
>>>
>>> thanks @coda coder,
>>>
>>> that's bad news, I really want this :D
>>>
>>> I changed something I should have done earlier, if you want to give it 
>>> another try
>>>
>>> I'll investigate further, maybe i get this working, maybe not
>>>
>>> thanks for your help,
>>> Simon
>>>
>>> Am Dienstag, 16. Januar 2018 14:55:23 UTC+1 schrieb coda coder:
>>>>
>>>> Simon,
>>>>
>>>> I'm assuming your class addition to the body element should be toggling 
>>>> as I toggle F11?  If so, it's not working here. Your class 
>>>> "tw5-burning-tree" once applied, is never removed.  Your console message 
>>>> always says "not fullscreen" regardless of the actual state.  Also, your 
>>>> class is never applied to the body element of "tc-body 
>>>> tc-single-tiddler-window" windows.
>>>>
>>>> Win 7, Firefox 57.0.3
>>>>
>>>> Codacoder
>>>>
>>>>
>>>> On Tuesday, January 16, 2018 at 7:26:07 AM UTC-6, Simon Huber wrote:
>>>>>
>>>>> @Jeremy,
>>>>>
>>>>> I don't want to bother you too much with this, I've just put something 
>>>>> together that works here:
>>>>>
>>>>> http://tw5fullscreen.tiddlyspot.com
>>>>>
>>>>> it prevents the F11 key's default event so that we're able to detect 
>>>>> the key again when in fullscreen mode, then requests fullscreen and 
>>>>> toggles 
>>>>> the class. another eventlistener listens for fullscreenchange events and 
>>>>> toggles the class
>>>>>
>>>>> what I need to know for testing and  preparing a pull request if this 
>>>>> is reliable is where to put this, would a separate startup module be 
>>>>> correct?
>>>>>
>>>>> thank you,
>>>>> Simon
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cb2969e8-a50b-4445-8f73-c9433f14a9af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
thanks Jeremy,

maybe one day :P

best wishes, Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/6c025cc6-f3a1-40af-a588-f8b445087b51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
now i tried it on firefox, too. there it behaves as you report @coda coder

works for me on chromium

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b74b9463-7d22-4e59-aff7-930b6b6e1c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
thanks @coda coder,

that's bad news, I really want this :D

I changed something I should have done earlier, if you want to give it 
another try

I'll investigate further, maybe i get this working, maybe not

thanks for your help,
Simon

Am Dienstag, 16. Januar 2018 14:55:23 UTC+1 schrieb coda coder:
>
> Simon,
>
> I'm assuming your class addition to the body element should be toggling as 
> I toggle F11?  If so, it's not working here. Your class "tw5-burning-tree" 
> once applied, is never removed.  Your console message always says "not 
> fullscreen" regardless of the actual state.  Also, your class is never 
> applied to the body element of "tc-body tc-single-tiddler-window" windows.
>
> Win 7, Firefox 57.0.3
>
> Codacoder
>
>
> On Tuesday, January 16, 2018 at 7:26:07 AM UTC-6, Simon Huber wrote:
>>
>> @Jeremy,
>>
>> I don't want to bother you too much with this, I've just put something 
>> together that works here:
>>
>> http://tw5fullscreen.tiddlyspot.com
>>
>> it prevents the F11 key's default event so that we're able to detect the 
>> key again when in fullscreen mode, then requests fullscreen and toggles the 
>> class. another eventlistener listens for fullscreenchange events and 
>> toggles the class
>>
>> what I need to know for testing and  preparing a pull request if this is 
>> reliable is where to put this, would a separate startup module be correct?
>>
>> thank you,
>> Simon
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ab50b863-63d5-4eb3-9b3b-9703b92e3f78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
@Jeremy,

I don't want to bother you too much with this, I've just put something 
together that works here:

http://tw5fullscreen.tiddlyspot.com

it prevents the F11 key's default event so that we're able to detect the 
key again when in fullscreen mode, then requests fullscreen and toggles the 
class. another eventlistener listens for fullscreenchange events and 
toggles the class

what I need to know for testing and  preparing a pull request if this is 
reliable is where to put this, would a separate startup module be correct?

thank you,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c991f23b-7e73-4dba-9309-d3eac3eb3396%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber

>
> and it does what I expect from this, it adds the class to the body if 
> fullscreen.
>
> could this be implemented correctly in the core?
>
>
> A change along those lines wouldn’t cover the situation where the user 
> uses a browser control like the F11 key to enter full screen mode.
>

it's the wrong place there, I guessed so ... :) it was handy to put it 
there. I haven't figured out where the best place could be for detecting 
this

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/d8a3c5e9-8094-42a0-a064-fe2c6a6c8657%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
thank you, Jeremy!

I'm going to give it a try, when I find a solution I'll make the pull 
request

all the best,
Simon

Am Dienstag, 16. Januar 2018 09:32:29 UTC+1 schrieb Jeremy Ruston:
>
> Hi Simon
>
> and it does what I expect from this, it adds the class to the body if 
> fullscreen.
>
> could this be implemented correctly in the core?
>
>
> A change along those lines wouldn’t cover the situation where the user 
> uses a browser control like the F11 key to enter full screen mode.
>
> It appears that this is one of those tricky challenges in web development, 
> and there may not be a good solution:
>
>
> https://stackoverflow.com/questions/21461890/browser-f11-fullscreen-does-not-register-with-webkit-full-screen-or-javascript
>
> If there is a workable solution out there I’d be happy to accept a pull 
> request,
>
> Best wishes
>
> Jeremy.
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywikide...@googlegroups.com .
> To post to this group, send email to tiddly...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/30ea0b01-7601-4436-ac0d-e047b1a45105%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/02c63b9f-53f0-4868-8507-c82841eeca12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-16 Thread Simon Huber
In the saver-handler.js I just added

if( window.innerHeight == screen.height) {
// browser is fullscreen
$tw.utils.toggleClass(document.body,"tc-fullscreen",true);
}

and it does what I expect from this, it adds the class to the body if 
fullscreen.

could this be implemented correctly in the core?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/30ea0b01-7601-4436-ac0d-e047b1a45105%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] [TW5][REQUEST] window fullscreen - applying CLASS on

2018-01-15 Thread Simon Huber
Hello Developers,

could TiddlyWiki apply a class like "*tc-fullscreen*" to the  node 
when the browser is in fullscreen with F11 or TW's fullscreen button?

that would increase the number of possibilities for addressing elements 
with css

I've seen how the tc-dirty class gets toggled in saver-handler.js and like 
this another class for fullscreen would be very useful


is there a chance to make this possible?

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8542824c-b04d-4808-a4e7-e82c1add9ced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Lists of numbers in core tiddlers

2018-01-11 Thread Simon Huber
Hey Evan,

oh man, it's really worth looking a bit deeper into what you made there - 
this is perfect,
thank you for pointing this out!

Am Donnerstag, 11. Januar 2018 18:21:09 UTC+1 schrieb Evan Balster:
>
> Hey, Simon —
>
> See my range operator:  
> http://evanbalster.com/tiddlywiki/formulas.html#range%20Operator
>
> eg.  [range[-100,100,.5]] produces -100, -99.5, -99 ... 99, 99.5, 100.
>
> It generates evenly-spaced numbers in an arbitrary range, and can deal 
> with whatever step-size you're interested in.  The numbers produced never 
> have more decimal points than the arguments and the range is always 
> inclusive.
>
> This is a more robust and high-performance implementation than can be 
> managed with TiddlyWiki's built-in mechanisms.  It's part of my math & 
> formulas plugin (which I'm designing as a "universal" computation plugin) 
> but it can be used separately.  See the attached JSON file.
>
>  
now this is gonna be my new allrounder

thanks, Evan!

all the best,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3cb3a691-0414-45c4-95b2-0fd661abaa8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Lists of numbers in core tiddlers

2018-01-11 Thread Simon Huber
@PMario,

Am Donnerstag, 11. Januar 2018 14:26:11 UTC+1 schrieb PMario:
>
> On Thursday, January 11, 2018 at 1:38:33 PM UTC+1, Simon Huber wrote:
>>
>> negative and floating numbers with a certain limitation in accuracy would 
>> also be great
>>
>
> IMO negative numbers can be created with [addprefix[-]]
>

you're right, that works for me 

>
> floating point will be a problem. eg: 0 -> 99.99 will create about 10,000 
> numbers. So users will create endless loops, without being aware. 
> But you could use nested INTs.
>

that'd be ok 

>
> I was thinking about a syntax like: [create[1..100#04]] ... which would 
> mean:
>
> start: 1 .. including 1
> stop: 100 .. including 100
>
> format: #04 means
>  use leading zeros
>  use 4 digits
>
> which would result in 0001 ... 0100 with every number in between
>
> format: 1..100#03 means 001 ... 100
>
> format: 1..100 means 1 ... 100
>
> format: 33..55#03 means 033 ... 055
>
> and so on. 
>

I like this syntax, it would offer pretty good flexibility 

>
> Just some thoughts. No promises.
>

thanks, I can work around this with my own lists but with what you proposed 
I imagine that all kinds of things could be made easier / possible

>
> The problem now is, that "start" stop may be variables. ... like 
> [create..#] ... which is ugly, complex and the parser 
> can't handle it at the moment.
>

I'd be totally fine with this if the parser could handle it, I'm lacking 
ideas and knowledge tbh to propose something myself at this point
 
Grüße,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/9a9a6519-383c-40e8-9699-799539a3170b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Lists of numbers in core tiddlers

2018-01-11 Thread Simon Huber
negative and floating numbers with a certain limitation in accuracy would 
also be great

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cadf05d3-d82b-4c1d-8dd2-a8543ea1822c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Lists of numbers in core tiddlers

2018-01-11 Thread Simon Huber
Hello @PMario,

Am Donnerstag, 11. Januar 2018 13:13:33 UTC+1 schrieb PMario:
>
> Hi Simon,
>
> I think that's a very specific usecase and therefor plugin territory. ... 
> Can you describe your usage of this list a bit closer. ... So we may be 
> able, to dynamically create "virtual" lists, that don't stop at 
>

 is the max i could store in a field. virtual lists would be much 
better, that would be a nice feature, it would add a lot of flexibility I 
think

   - for listing like [listlimit[100]] when I want to do something 
   100 times
   - for getting the next (previous) value of a variable with 
   [next[numbertiddler]] if I need to count something that happens 
   various times
   - various other things with lists

it would be great if something like filter="[[1 - 100]]" could be done and 
also [next[1 - 100]]


> My first question was: "What if I need 1?" ... 
>

doesn't happen in my cases but you're absolutely right, it's limiting

>
> -m
>

thanks for your reply,
Simon 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/369fdf00-e335-4c42-98a7-0a2bba89eb85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >