[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 t

[twdev] Re: add viewport macro to core?

2018-02-21 Thread Riz
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. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from t

[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 ti

[twdev] Re: add viewport macro to core?

2018-02-20 Thread 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. sincerely, Riz -- You received thi

[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

[twdev] Re: add viewport macro to core?

2018-02-18 Thread Riz
> > Could you name some? > > > Loading separate page-templates for mobile platform would be a start. -- 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 tiddlywi

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 ema

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

2018-02-16 Thread Jeremy Ruston
Hi Simon > should it do this by default or by enabling it through a config tiddler? Yes, great idea, and a checkbox in the plugin control panel would be nice. Best wishes Jeremy. > > Best wishes > > Jeremy > > Simon > > -- > You received this message because you are subscribed to the Goo

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 DynaVi

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

2018-02-16 Thread Jeremy Ruston
Hi Simon 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 lis

[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 y

[twdev] Re: add viewport macro to core?

2018-02-16 Thread 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? I'm a little bit concerned, that a macro won't be always updat