[tw] Ghostwriter theme by Rory Gibson adapted for TW5

2016-11-01 Thread Riz
Ghostwriter is a popular, minimalist and mobile responsive theme for the blogging platform ghost. Recently I adapted it for TW5 Screenshots http://imgur.com/a/5XReS Demo https://ibnishak.github.io/ghostwriter/ If you want to try it out, backup your wiki, download this json, drag and drop it

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread Philippe Le Toquin
Brilliant! Thanks a lot Mark. It now all works. I just had to tweak the macro. The javascript function Date() count month and day from zero!!! so I subsctracted one for each of them in the macro and now it all works. I still would like to understand why passing parameters the way Eric (and I)

[tw] [Off topic/twederation] Mastodon is a new open federated twitter-like social network (I hope to make it play well with twederation)

2016-11-01 Thread Jed Carty
So there is a new twitter-like social network called mastodon that works off of distributed federated servers. It looks like it should be able to work nicely with xmlhttprequests which means that it could work well with twederation. I need to look into oAuth to see if we can make posts as well

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread 'Mark S.' via TiddlyWiki
This works on my system. Here's how the list is set up: <$list filter="[!has[draft.of]tag[Stocks]]"> <$set name=bestbefore value={{!!bestbefore}}> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" default=<> text="YES"> @@color:red;( to be discarded )@@ This is basicall

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread 'Mark S.' via TiddlyWiki
Hi Philippe, I've never had any luck passing parameters into a javascript macro the way Eric shows. What's happening, is that the macro is seeing the literal string "{{!!bestbefore}}". What format are you using for your dates? Hmm ... looks like you're using the TW format. Not my first choic

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread Philippe Le Toquin
Hello Here is my macro /*\ title: $:/_ppmt/macros/day-left.js type: application/javascript module-type: macro Takes current day and best before date and return their difference in days \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread 'Mark S.' via TiddlyWiki
Hi Philippe, Can you share your version of the day-diff.js macro? I notice that there is a small typographical error in Eric's post. It's the double arrow at the end of the first <$reveal> widget. Perhaps you caught that? Good luck! Mark On Tuesday, November 1, 2016 at 5:36:43 AM UTC-7, Phili

Re: [tw] Autosave in Safari

2016-11-01 Thread Jeremy Ruston
Hi Ollie > On 31 Oct 2016, at 11:49, Ollie wrote: > > I really want to like this program but I cannot for the life of me figure out > how to make autosave work in Safari 10.0.1 (latest stable as of today). It > just tells me that I must save manually which is a deal-breaker for me. Is > there

Re: [tw] TW5 : How to link to specific tiddlers from another app (i.e: iWork numbers; evernote...)

2016-11-01 Thread Jeremy Ruston
Hi Pablo > I use currently VoodooPad as a personal wiki, which I like since it allows to > just drop a page name to a blank Numbers spreadsheet and get a link to that > page. This is very helpful to create mind maps; where every term is a link > that opens a VP page. > > I have recentrly disco

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread Philippe Le Toquin
HI Eric, I have tried you method but it is still not working. It is better in the sense that it doesn't print the part I only want to print when it matches but even when it is matching it still stays invisible. The only way to reveal is to set type to nomatch. :( Philippe On Tuesday, 1 Novem

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread Philippe Le Toquin
Hi Mark, I am not sure I understand what you are saying (I am not a real programmer!) so until I understand it, I will try Eric solution. Philippe On Monday, 31 October 2016 23:39:53 UTC, Mark S. wrote: > > Macros will drive you nuts, because they look for all the world like > regular programm

[tw] Re: Can I use the result of a macro in the state of the RevealWidget?

2016-11-01 Thread BJ
HI Philippe, In addition to what Eric says, I think you need to use a macro like so: \define stocks (bestbefore) <$reveal type="match" default=<> text="YES">> @@color:red;( to be discarded )@@ /end On Monday, October 31, 2016 at 10:45:29 PM UTC, Philippe Le Toquin wrote: > > Hello, >