[tw] [TW5] Tag shortener macro

2016-11-23 Thread The Bo
Hey,

I want to display tags of tiddlers in a list. Now I need a solution to 
shorten the tag name.
I tried to build a macro similar to a macro I used before but I don't know 
how to get the "tag-variable".

Maybe someone can help me with this.

So far I have got this code:
/*\
title: $:/macros/tag_shortener.js
type: application/javascript
module-type: macro

Shorten a tag

\*/
(function(){

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

/*
Information about this macro
*/

exports.name = "tag_shortener";

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

/*
Run the macro
*/
exports.run = function(end_string) {
return this.getVariable("currentTiddler").substring(0, end_string);
};

})();


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


[tw] Re: Tiddlywiki node.js backups?

2016-11-23 Thread PMario
On Wednesday, November 23, 2016 at 4:48:16 PM UTC+1, leeand00 wrote:
>
> If I'm doing a backup of Tiddlywiki 5.1.13, is it necessary to stop the 
> tiddlywiki node.js daemon first?
>
> If it was a database that didn't support hot backup this would be 
> necessary, but I'm uncertain about it considering it uses text files.
>

There is no database involved. So as long as you don't change stuff while 
the backup task runs, it should be no problem. 

-m 

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


[tw] Re: [TW5] Another way to make multiple tag-like fields

2016-11-23 Thread Jon
Hi Riz,

That's closer - the right colour for the tag pills and there is a drop down 
to show the name of the tiddler (as the tag) but it doesn't show the 
tiddlers with the tag.

Thanks
Jon

On Wednesday, 23 November 2016 12:46:31 UTC, Riz wrote:
>
>
>
> Are you looking for:
> <$list filter={{!!myfield}}>{{||$:/core/ui/TagTemplate}}
>
>

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


Re: [tw] Re: [TW5] Iframe does not show up using Internet Explorer 11 / Edge

2016-11-23 Thread Jeremy Ruston
Hi Christophe

Interesting. It certainly sounds like a security measure on Microsoft’s part to 
restrict iframes targeting local files. I wonder if you can turn the TW HTML 
file into some kind of privileged app by adding a manifest file?

Best wishes

Jeremy


> On 23 Nov 2016, at 18:46, Christophe Magnard  wrote:
> 
> I continued to look for a solution, found something not really usable, but 
> maybe it can help someone understand...
> 
> If I modify my dummy.html file by adding , the iframe shows up using IE / Edge 
> (after restarting the browser).
> 
> dummy.html is then:
> 
> 
> 
> 
>   
> 
> Test
>   
>   
> Test
>   
> 
> 
> I also have no problem showing iframes of external webpages using IE / Edge. 
> And I also have no problem displaying iframes in normal html files (not 
> TiddlyWiki).
> 
> Note that I have this behavior on two different computers, with both a 
> heavily modified TiddlyWiki as well as with the newly downloaded empty 
> TiddlyWiki.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/976af103-7266-446c-b7c1-ca1cc31916c0%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

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


[tw] Re: [TW5] Iframe does not show up using Internet Explorer 11 / Edge

2016-11-23 Thread Christophe Magnard
I continued to look for a solution, found something not really usable, but 
maybe it can help someone understand...

If I modify my *dummy.html* file by adding , the iframe shows up using IE / Edge 
(after restarting the browser).

*dummy.html* is then:




  

Test
  
  
Test
  


I also have no problem showing iframes of external webpages using IE / 
Edge. And I also have no problem displaying iframes in normal html files 
(not TiddlyWiki).

Note that I have this behavior on two different computers, with both a 
heavily modified TiddlyWiki as well as with the newly downloaded empty 
TiddlyWiki.

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


[tw] Re: [TW5] Popup transclusion on mouse over?

2016-11-23 Thread leeand00
Okay thanks Mat!

On Saturday, 19 November 2016 12:55:49 UTC-5, Mat wrote:
>
> Here's a start. No idea if it is "the best" way and there's probably some 
> more native tw5 way that I can't think of right now because I'm temporarily 
> a bit out of the game. I hope you was the RevealWidget 
> ... which doesn't work for hover 
> straight away but maybe with some fiddling..
>
> <:-)
>
> 
> hover me
> 
> {{HelloThere}}
> 
> 
>
> 
> .foo .bar {
>   display:none;
> }
> .foo:hover .bar {
>   display:block;
>   position:absolute;
>   background:white;
>   border:1px solid gray;
>   padding:10px;
>   z-index:2;
> }
> 
>
>
>

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


[tw] Tiddlywiki node.js backups?

2016-11-23 Thread leeand00
If I'm doing a backup of Tiddlywiki 5.1.13, is it necessary to stop the 
tiddlywiki node.js daemon first?

If it was a database that didn't support hot backup this would be 
necessary, but I'm uncertain about it considering it uses text files.

Thank you,
   Andrew J. Leer

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


[tw] [TW5] Datebook or Journal for the new year

2016-11-23 Thread Greg Davis
Hi all!

With the new year just around the corner, decided build a new 
datebook/journal TW rather than having it grow from scratch through the 
year again. There have been other solutions here including GTDs but just 
wanted something simple. Thought it might be good to share for the new / 
casual users out there who are not into intricate lists and filters. At 
least it might provide them some ideas. It is based on BJ's Extendable 
Calendar. It also includes Danielo's EncryptTiddler Plugin for those 
'secret' diary entries. To add new date entries used BJ's diary option, but 
for regular viewing used the calendar option. If you just add entries each 
day, the New Journal button could be added to the left and right toolbars.

http://datebook.tiddlyspot.com

Making the story river / tiddler wider might be able to add pictures to the 
month tiddlers for a custom picture calender on desktops or laptops.

Don't have a smartphone to try it but using Firefox's Responsive Design 
Mode looks like might be useable if switch to right menu bar and use 
months, rather than year, to navigate.

For multiple enties on single date the timestamp might be a useful addon: 
https://groups.google.com/d/msg/TiddlyWiki/UHt6GsMpyAQ/SAU-Os2jAQAJ

Enjoy!
Greg


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


[tw] [TW5] Iframe does not show up using Internet Explorer 11 / Edge

2016-11-23 Thread cmagnard
I'm using iframes inside tiddlers to show local html documents. This works 
without issue using Firefox, Chrome or Safari. With Internet Explorer 11 or 
Microsoft Edge, the iframe content stays empty. Does someone have an idea 
how to solve it?

For example:

In the tiddler:




In *dummy.html* :



  

Test
  
  
Test
  


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


[tw] Re: [TW5] Another way to make multiple tag-like fields

2016-11-23 Thread Riz


Are you looking for:
<$list filter={{!!myfield}}>{{||$:/core/ui/TagTemplate}}

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


[tw] [TW5] Portability of a TW referencing external files

2016-11-23 Thread Bob Flandard
Hi,

I'd like my TW to have a tiddler that contains a list of all the external 
files that are referenced within the TW. I'd like the TW to write that 
tiddler itself by searching within the text fields for all instances of 
[img[]], [ext[]],  and searching for 
tiddlers tagged with "myTag" to extract the fields "path" and "filename", 
concatenate them and add those to the list. The list would need to remove 
any duplicates and preferably pre-pend each file path/name with a system 
command like copy (in Windows) so that the tiddler text could be saved as a 
batch script. Not all the external files would be in the same directory (or 
sub-directory) of the TW.

This would be useful for sending a TW to someone and gathering all the 
external files required, or for archiving a TW and its referenced files.

Any thoughts on how to do this?, or maybe I'd be better trying a scripting 
language like Python to parse the TW directly.

Thanks, Bob

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


[tw] Re: Nested lists using tiddler titles as tags

2016-11-23 Thread Ivan Aparicio
I've been trying to make the an improvement; do you know how I could get 
the quarter tiddler to only display the areas for which there are tasks? 
I'm not sure how to put a conditional statement to trigger the line 
<$link>''{{!!title}}''.

On Thursday, November 10, 2016 at 9:52:10 AM UTC, Jed Carty wrote:
>
> Since it is inside a list widget the currentTiddler variable is set to the 
> title of the current item in the list in the same way that {{!!title}} 
> shows the title of the current list item, not the containing tiddler.
>

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