[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Hans Maulwurf
c pa, thanks for your help. This seems to do nearly what I need. But it's 
the point, that I have an input-field <$edit-text 
tiddler='$:/isms/tmp/NewISMSElement' field='name_base' 
class='tc-edit-texteditor'/> and when I use
<>

it doesn't recognise the text of the input, it uses "{{$}". So the 
space is not removed. I think this is the point Jed mentioned before that 
macros work by substitution.

-- 
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/25946963-7cf8-4f11-9c8d-d0092de0359a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Announcing TiddlyWiki v5.1.12

2016-07-14 Thread Jon
.I deleted all references to 'edit-comptext' from using the search but 
message continues.

Might I be better off starting from scratch with an empty 5.1.12 version 
and then import the tiddlers from the defective wiki into it, perhaps using 
Jed's "Tiddler Bundles" http://ooktech.com/jed/ExampleWikis/TiddlerSchools/?

If so, what filter would I use?

Thanks
Jon



On Thursday, 14 July 2016 22:02:20 UTC+1, Jon wrote:
>
> Hi Jeremy,
>
> I've disabled all the plugins but still no joy - text editor not present  
> and now when tiddler is in edit mode "Undefined widget 'edit-comptext'" 
> message appears (and not possible to edit tiddler).
> I'll carry on rooting around to see what might be causing it.
>
> Regards
> Jon
>
> On Thursday, 14 July 2016 08:42:34 UTC+1, Jeremy Ruston wrote:
>>
>> Hi Jon
>>
>> Some more info: if I disable the Text Slicer plugin first before 
>> attempting the upgrade, the wiki goes through the upgrade process without 
>> the Java Script error and shows the new version number (from 5.1.10) 
>>
>>
>> The TextSlicer plugin in 5.1.12 depends on the Dom-Parser plugin 
>> ($:/plugins/tiddlywiki/xmldom/dom-parser). It’s a bug that it crashes when 
>> the plugin isn’t present; it should just give a warning. As you discovered, 
>> the workaround is to exclude the TextSlicer plugin from the upgrade by 
>> unchecking it in the upgrade wizard.
>>
>> but the new text editor isn't present.
>>
>>
>> That’s strange; perhaps you are using another plugin that disrupts the 
>> editor machinery?
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>> Regards
>> Jon
>>
>> On Wednesday, 13 July 2016 12:04:57 UTC+1, Jeremy Ruston wrote:
>>>
>>> I'm delighted to announce that TiddlyWiki version 5.1.12 has finally 
>>> been released to:
>>>
>>> http://tiddlywiki.com/
>>>
>>> Remember to keep careful backups before upgrading existing 5.x.x wikis 
>>> at:
>>>
>>> http://tiddlywiki.com/upgrade.html
>>>
>>> This is a much bigger release than usual:
>>>
>>> * New text editor toolbars
>>> * New bitmap editor toolbars with usable drawing tools
>>> * Upgraded KaTeX and CodeMirror plugins
>>> * Experimental Evernote import by dragging .enex files
>>> * Added a bulk delete button to advanced search "Filter" tab
>>> * Introduction of the new WikifyWidget
>>> * New "internals" plugin that allows results of parsing and rendering to 
>>> be previewed
>>> * Many bug fixes
>>>
>>> See the release note at http://tiddlywiki.com/#Release%205.1.12 for 
>>> more details.
>>>
>>> Once again, this release has more contributors than ever before, 
>>> including quite a few first time contributors. My sincere thanks to 
>>> everyone for their help. 
>>>
>>> As usual, feedback and questions are gratefully received.
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>> -- 
>>> Jeremy Ruston
>>> mailto:jeremy...@gmail.com
>>>
>>
>>

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


[tw] Re: [TW5] Plugins files not saved

2016-07-14 Thread Sylvain Dangin
I go in control Panel / Plugins
Install the language,
Save when check button pass from red to grey,
Refresh,

And if i kill the server and restart i have this : 

undefined:1

SyntaxError: Unexpected end of input
at Object.parse (native)
at $tw.modules.define.application/json 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1296:23)
at $tw.Wiki.deserializeTiddlers 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1218:23)
at $tw.loadTiddlersFromFile 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1449:23)
at $tw.loadTiddlersFromPath 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1527:22)
at /usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1522:40
at $tw.utils.each 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:69:12)
at $tw.loadTiddlersFromPath 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1520:15)
at $tw.loadWikiTiddlers 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1686:21)
at $tw.loadTiddlersNode 
(/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:1754:27)

(The crash is on JSON.parse on empty text string)


Le vendredi 15 juillet 2016 00:43:46 UTC+2, c pa a écrit :
>
> Also you need to manually save your tiddler before exiting.
>

-- 
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/8669926a-b20c-4e45-935b-985602e0ae53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Plugins files not saved

2016-07-14 Thread 'c pa' via TiddlyWiki
Also you need to manually save your tiddler before exiting.

-- 
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/57e8bb61-cbc7-4dfb-ab65-46ae0e7843f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread 'c pa' via TiddlyWiki
Try something like the following:

\define Do_Some_Buttons(item_one, item_two)
<$list filter="[all[$item_one$$item_two$]is[tiddler]]" emptyMessage="""
   Button to create tiddler named "$item_one$$item_two$"

   """>
 Hey it exists already

\end

\define Make_Something(text)
<$set name="Item_One" filter="$text$ +[nth[1]]">
<$set name="Item_Two" filter="$text$ +[nth[2]]">
<> <>

<$macrocall $name="Do_Some_Buttons" 
item_one=<>
item_two=<>
/>



\end

`<>`
<>

-- 
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/75e59a68-e652-40fd-b59b-21b4690ba877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Plugins files not saved

2016-07-14 Thread Sylvain Dangin
Debian Jessie with nginx, launched as root.

Le jeudi 14 juillet 2016 16:41:33 UTC+2, Sylvain Dangin a écrit :
>
> Hi, i'm new on TW5 (5.1.12) and i have a problem.
> If i install a plugin (like language), no problem, all works fine.
> But if i stop the server and restart it, all plugins doesn't works.
>
> I have looking for a solution and i have found that all plugins files are 
> empty in the tiddlers directory.
> Are they special rights to set to the folders ?
>

-- 
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/4543d419-c170-4fba-957c-bde3723e62aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Announcing TiddlyWiki v5.1.12

2016-07-14 Thread Jon
Hi Jeremy,

I've disabled all the plugins but still no joy - text editor not present  
and now when tiddler is in edit mode "Undefined widget 'edit-comptext'" 
message appears (and not possible to edit tiddler).
I'll carry on routing around to see what might be causing it.

Regards
Jon

On Thursday, 14 July 2016 08:42:34 UTC+1, Jeremy Ruston wrote:
>
> Hi Jon
>
> Some more info: if I disable the Text Slicer plugin first before 
> attempting the upgrade, the wiki goes through the upgrade process without 
> the Java Script error and shows the new version number (from 5.1.10) 
>
>
> The TextSlicer plugin in 5.1.12 depends on the Dom-Parser plugin 
> ($:/plugins/tiddlywiki/xmldom/dom-parser). It’s a bug that it crashes when 
> the plugin isn’t present; it should just give a warning. As you discovered, 
> the workaround is to exclude the TextSlicer plugin from the upgrade by 
> unchecking it in the upgrade wizard.
>
> but the new text editor isn't present.
>
>
> That’s strange; perhaps you are using another plugin that disrupts the 
> editor machinery?
>
> Best wishes
>
> Jeremy.
>
>
>
> Regards
> Jon
>
> On Wednesday, 13 July 2016 12:04:57 UTC+1, Jeremy Ruston wrote:
>>
>> I'm delighted to announce that TiddlyWiki version 5.1.12 has finally been 
>> released to:
>>
>> http://tiddlywiki.com/
>>
>> Remember to keep careful backups before upgrading existing 5.x.x wikis at:
>>
>> http://tiddlywiki.com/upgrade.html
>>
>> This is a much bigger release than usual:
>>
>> * New text editor toolbars
>> * New bitmap editor toolbars with usable drawing tools
>> * Upgraded KaTeX and CodeMirror plugins
>> * Experimental Evernote import by dragging .enex files
>> * Added a bulk delete button to advanced search "Filter" tab
>> * Introduction of the new WikifyWidget
>> * New "internals" plugin that allows results of parsing and rendering to 
>> be previewed
>> * Many bug fixes
>>
>> See the release note at http://tiddlywiki.com/#Release%205.1.12 for more 
>> details.
>>
>> Once again, this release has more contributors than ever before, 
>> including quite a few first time contributors. My sincere thanks to 
>> everyone for their help. 
>>
>> As usual, feedback and questions are gratefully received.
>>
>> Best wishes
>>
>> Jeremy
>>
>> -- 
>> Jeremy Ruston
>> mailto:jeremy...@gmail.com
>>
>
>

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


Re: [tw] [TW5] syntax [img[imagefile.jpg]] in node.js

2016-07-14 Thread Rustem
I was about to volunteer creating an issue for this, but turns out there is 
already one: #1000 ! 
:)

On Thursday, July 14, 2016 at 4:54:07 AM UTC-7, Jeremy Ruston wrote:
>
> Hi Martin
>
> Any update on this? What would be the current best way to manage images in 
> a nodejs TW? Thanks! 
>
>
> There’s no update at the moment, I’m afraid.
>
> Best wishes
>
> Jeremy
>
> Martin
>
> On Thursday, October 16, 2014 at 5:23:20 AM UTC+2, Michele Zaffalon wrote:
>>
>> Hi Kyrylo,
>>
>> The answer is not yet for node.js. I am also waiting for it.
>> michele
>>
>> On Wed, Oct 15, 2014 at 6:47 PM, Jeremy Ruston  
>> wrote:
>>
>>> Hi Kyrylo
>>>
>>> > Hi! Have things changed? It seems like I still cannot reference local 
>>> images, which is annoying.
>>>
>>> The [img[url]] syntax has indeed been implemented:
>>>
>>> http://tiddlywiki.com/#Images%20in%20WikiText
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>> On Wed, Oct 15, 2014 at 5:43 PM, Kyrylo Silin  
>>> wrote:
>>>
 Hi! Have things changed? It seems like I still cannot reference local 
 images, which is annoying.

 % tiddlywiki --version
 5.1.2


 On Tuesday, June 3, 2014 3:14:45 PM UTC+3, Jeremy Ruston wrote:
>
> Hi Michele
>
>
>> I take it that "(yet)" means there is the plan to support it in the 
>> future. Will it be near future? Will the syntax be 
>> [img[path/to/local/file]]?
>>
>
> Yes, it should be working in the next couple of months. The syntax 
> will definitely use [img[]], and the plan would be to set up the base 
> path 
> so that images can be referenced directly by their tiddler title.
>
> Best wishes
>
> Jeremy
>
>  
>
>> By the way for me also the link syntax > href="file:///home/michele/imagefile.jpg">image 
 is not working for me (see https://groups.google.com/d/
 msg/tiddlywiki/EmJFLV1XAD0/ZL7_W8Jsa18J)

>>>
>>> Does it work if you link to a http:// website?
>>>
>>
>> Yes, http://...;>link works on 5.0.12 for me.
>>
>> Best regards,
>> michele
>>
>>
>> -- 
>> 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+...@googlegroups.com.
>> To post to this group, send email to tiddl...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com
>

>>>
>>>
>>> -- 
>>> Jeremy Ruston
>>> mailto:jeremy...@gmail.com
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tiddlywiki+...@googlegroups.com.
>>> To post to this group, send email to tiddl...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@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/66026372-e24c-488d-b7d3-b8dc8b9b13d4%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/e9a8967b-80d1-4bc9-a0cf-71aa0987b9a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Plugins files not saved

2016-07-14 Thread Hans Maulwurf
Which operating system are you using? The user that is running 
tiddlywiki/nodejs must have write-access to the directories.

-- 
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/7955544b-68eb-42c5-960e-e4282ebe25e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Hans Maulwurf
Really? Wow, I'm trying for almost 4 days to do this with filtering. I'm 
looking forward for your hints :)

-- 
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/a19f1b46-9b9a-4478-a224-d887e84d548f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] javascript macro for this purpose?

2016-07-14 Thread László Zsigmond
Hi Jeremy!

Thank you for your nice guidance, have looked into the tags tiddler and got
me convinced that doing this tiddlywiki extension is beyond the efforts I
planed to invest in it, it's not for me :/. For this this project I'll go
with a more familiar set of tools.


Best wishes,
Laci

On Thu, Jul 14, 2016 at 4:39 PM, Jeremy Ruston 
wrote:

> Hi Laci
>
> I would like to extend the functionality of a plugin called Library
> Tracker . so to have an
> autocomplete dropdown list on titles with the help of the google books api,
> similar to this:
> https://www.librarieshacked.org/tutorials/autocompletewithapi .
> This would be the final goal, now I just would like to transform the
> api_url when the input box is edited so that in the next step I could do an
> ajax request... but thats not for today, I have no idea how to do that in
> TiddlyWikki but with some research and the help of the community, with
> small steps I hope to get there soon. :)
>
>
> OK, you’ve chosen a goal that will be quite demanding :)
>
> The user interface of TiddlyWiki is built out of wikitext; for example,
> the autocompletion of tags in the editor looks like this:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/EditTemplate/tags.tid
>
> Off the top of my head, this is what would be needed to build an API-based
> autocomplete along the same principles:
>
> * Introduce a new message handler that can retrieve entries from the
> autocomplete API and store them as temporary tiddlers
> * Figure out a way to trigger that message whenever the text of an edit
> control changes
> * Add a dropdown to the book title field in the library tracker that
> selects the autocomplete tiddlers and searches for the typed text
>
> Best wishes
>
> Jeremy.
>
>
>
>
>
> Thanks,
> Laci
>
> On Thu, Jul 14, 2016 at 2:58 PM, Jeremy Ruston 
> wrote:
>
>> JavaScript macros are intended to generate an output string from their
>> input parameters; they are not supposed to have side effects.
>>
>> What are you trying to do here? It looks like you’re trying to compose a
>> search URL for Google books; is the intention to provide a UI onto the
>> search, or to search with information drawn from the current tiddler?
>>
>> Best wishes
>>
>> Jeremy
>>
>> On 14 Jul 2016, at 12:01, László Zsigmond 
>> wrote:
>>
>> Hello!
>>
>> I'm trying to start with my first homebrew javascript snippet/macro that 
>> gets the value of a tiddler's field and replaces two strings inside it...
>> I came up with the following not working code that should just return that 
>> modified string. This script shouldn't run jut once but
>> each time one input element (inputterm) is edited. Have no idea how to call 
>> such a function in Tiddlywiki context, for getElements it
>> would be safer to use ids but I just want to see if my plan is doable in the 
>> first place.
>>
>> Help please.
>>
>>
>> Laci
>>
>> /*\
>> title: $:/macros/obeliksz/library_api_macro.js
>> type: application/javascript
>> module-type: macro
>>
>> <>
>>
>> Example:
>> <>
>>
>> \*/
>> (function(){
>>
>> /*jslint node: true, browser: true */
>> /*global $tw: false */
>> "use strict";
>>
>> /*
>> Information about this macro
>> Replaces inside the api_url string the inputterm with the more than 3 
>> characters
>> typed input from the title's edit-text and inputauthor with author edit-text
>> default api_url: 
>> https://www.googleapis.com/books/v1/volumes?printType=books=+intitle:inputterm+inauthor:inputauthor
>>
>> */
>>
>> exports.name = "libraryapimacro";
>>
>> /*
>> Run the macro
>> */
>> exports.run = function() {
>> var api_url = {{$:/plugins/inmysocks/LibraryTracker/Library Tracker 
>> Settings!!api_url}}
>> var inputterm = 
>> document.getElementsByClassName('tc-edit-texteditor')[0].value
>> var inputauthor = document.getElementsByTagName('select')[1].value
>>  var output ="New url: " + 
>> api_url.replace("inputterm",inputterm).replace("inputauthor",inputauthor);
>>  return output;
>> };
>>
>> })();
>>
>>
>> --
>> 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/35b77f29-53b6-404d-8b1d-f4b137091131%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To 

[tw] [TW5] Plugins files not saved

2016-07-14 Thread Sylvain Dangin
Hi, i'm new on TW5 (5.1.12) and i have a problem.
If i install a plugin (like language), no problem, all works fine.
But if i stop the server and restart it, all plugins doesn't works.

I have looking for a solution and i have found that all plugins files are 
empty in the tiddlers directory.
Are they special rights to set to the folders ?

-- 
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/ebff48e3-23c7-4e88-9a28-e5e37f88c7ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] javascript macro for this purpose?

2016-07-14 Thread Jeremy Ruston
Hi Laci

> I would like to extend the functionality of a plugin called Library Tracker 
> . so to have an autocomplete 
> dropdown list on titles with the help of the google books api, similar to 
> this:https://www.librarieshacked.org/tutorials/autocompletewithapi 
>  . 
> This would be the final goal, now I just would like to transform the api_url 
> when the input box is edited so that in the next step I could do an ajax 
> request... but thats not for today, I have no idea how to do that in 
> TiddlyWikki but with some research and the help of the community, with small 
> steps I hope to get there soon. :)

OK, you’ve chosen a goal that will be quite demanding :)

The user interface of TiddlyWiki is built out of wikitext; for example, the 
autocompletion of tags in the editor looks like this:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/EditTemplate/tags.tid
 


Off the top of my head, this is what would be needed to build an API-based 
autocomplete along the same principles:

* Introduce a new message handler that can retrieve entries from the 
autocomplete API and store them as temporary tiddlers
* Figure out a way to trigger that message whenever the text of an edit control 
changes
* Add a dropdown to the book title field in the library tracker that selects 
the autocomplete tiddlers and searches for the typed text

Best wishes

Jeremy.



> 
> 
> Thanks,
> Laci
> 
> On Thu, Jul 14, 2016 at 2:58 PM, Jeremy Ruston  > wrote:
> JavaScript macros are intended to generate an output string from their input 
> parameters; they are not supposed to have side effects.
> 
> What are you trying to do here? It looks like you’re trying to compose a 
> search URL for Google books; is the intention to provide a UI onto the 
> search, or to search with information drawn from the current tiddler?
> 
> Best wishes
> 
> Jeremy
> 
>> On 14 Jul 2016, at 12:01, László Zsigmond > > wrote:
>> 
>> Hello!
>> 
>> I'm trying to start with my first homebrew javascript snippet/macro that 
>> gets the value of a tiddler's field and replaces two strings inside it...
>> I came up with the following not working code that should just return that 
>> modified string. This script shouldn't run jut once but
>> each time one input element (inputterm) is edited. Have no idea how to call 
>> such a function in Tiddlywiki context, for getElements it
>> would be safer to use ids but I just want to see if my plan is doable in the 
>> first place.
>> 
>> Help please.
>> 
>> 
>> Laci
>> 
>> /*\
>> title: $:/macros/obeliksz/library_api_macro.js
>> type: application/javascript
>> module-type: macro
>> 
>> <>
>> 
>> Example:
>> <>
>> 
>> \*/
>> (function(){
>> 
>> /*jslint node: true, browser: true */
>> /*global $tw: false */
>> "use strict";
>> 
>> /*
>> Information about this macro
>> Replaces inside the api_url string the inputterm with the more than 3 
>> characters
>> typed input from the title's edit-text and inputauthor with author edit-text
>> default api_url: 
>> https://www.googleapis.com/books/v1/volumes?printType=books=+intitle:inputterm+inauthor:inputauthor
>>  
>> 
>> 
>> */
>> 
>> exports.name  = "libraryapimacro";
>> 
>> /*
>> Run the macro
>> */
>> exports.run = function() {
>> var api_url = {{$:/plugins/inmysocks/LibraryTracker/Library Tracker 
>> Settings!!api_url}}
>> var inputterm = 
>> document.getElementsByClassName('tc-edit-texteditor')[0].value
>> var inputauthor = document.getElementsByTagName('select')[1].value
>>  var output ="New url: " + 
>> api_url.replace("inputterm",inputterm).replace("inputauthor",inputauthor);
>>  return output;
>> };
>> 
>> })();
>> 
>> -- 
>> 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/35b77f29-53b6-404d-8b1d-f4b137091131%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> 

Re: [tw] javascript macro for this purpose?

2016-07-14 Thread László Zsigmond
Hi!

Thanks for the fast reply.
I would like to extend the functionality of a plugin called Library Tracker
. so to have an autocomplete
dropdown list on titles with the help of the google books api, similar to
this: https://www.librarieshacked.org/tutorials/autocompletewithapi .
This would be the final goal, now I just would like to transform the
api_url when the input box is edited so that in the next step I could do an
ajax request... but thats not for today, I have no idea how to do that in
TiddlyWikki but with some research and the help of the community, with
small steps I hope to get there soon. :)


Thanks,
Laci

On Thu, Jul 14, 2016 at 2:58 PM, Jeremy Ruston 
wrote:

> JavaScript macros are intended to generate an output string from their
> input parameters; they are not supposed to have side effects.
>
> What are you trying to do here? It looks like you’re trying to compose a
> search URL for Google books; is the intention to provide a UI onto the
> search, or to search with information drawn from the current tiddler?
>
> Best wishes
>
> Jeremy
>
> On 14 Jul 2016, at 12:01, László Zsigmond 
> wrote:
>
> Hello!
>
> I'm trying to start with my first homebrew javascript snippet/macro that gets 
> the value of a tiddler's field and replaces two strings inside it...
> I came up with the following not working code that should just return that 
> modified string. This script shouldn't run jut once but
> each time one input element (inputterm) is edited. Have no idea how to call 
> such a function in Tiddlywiki context, for getElements it
> would be safer to use ids but I just want to see if my plan is doable in the 
> first place.
>
> Help please.
>
>
> Laci
>
> /*\
> title: $:/macros/obeliksz/library_api_macro.js
> type: application/javascript
> module-type: macro
>
> <>
>
> Example:
> <>
>
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
> /*
> Information about this macro
> Replaces inside the api_url string the inputterm with the more than 3 
> characters
> typed input from the title's edit-text and inputauthor with author edit-text
> default api_url: 
> https://www.googleapis.com/books/v1/volumes?printType=books=+intitle:inputterm+inauthor:inputauthor
>
> */
>
> exports.name = "libraryapimacro";
>
> /*
> Run the macro
> */
> exports.run = function() {
> var api_url = {{$:/plugins/inmysocks/LibraryTracker/Library Tracker 
> Settings!!api_url}}
> var inputterm = 
> document.getElementsByClassName('tc-edit-texteditor')[0].value
> var inputauthor = document.getElementsByTagName('select')[1].value
>   var output ="New url: " + 
> api_url.replace("inputterm",inputterm).replace("inputauthor",inputauthor);
>   return output;
> };
>
> })();
>
>
> --
> 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/35b77f29-53b6-404d-8b1d-f4b137091131%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/gNlWaoeE6yg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/924DF5FD-52CF-4829-BD41-ED3E754D72FE%40gmail.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/CAJ9a8aUa7SdsdL6toB3k4XwPHAMaY1-UnfKicV9%2B2x3%2BNEvgvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW 5.1.12] Tilde (~) breaks WikiText Link Syntax

2016-07-14 Thread chaonuo
hi Jeremy,

the response was quick!
so the Tilde can be used in Link Syntax, this is good news!
thanks for the help!

Chaonuo

On Thursday, July 14, 2016 at 8:14:49 PM UTC+8, chaonuo wrote:
>
> hi fellow TiddlyWiki users,
>
> I have an external link with the code [[Title|
> http://externallink.com/record=12345~S10*chg]], which doesn't work. After 
> a bit of try and error, I found out that if I remove the Tilde character 
> "~", then the link works. Apparently this character is reserved for some 
> other function I guess. Is there a way to work around this? Or can 
> TiddlyWiki 5 (5.1.12) be configured to allow Tilde Character in link syntax?
>
> thanks for answering!
>
> Chaonuo
>

-- 
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/a8f257da-0fa6-481a-8ea3-7a532dd5bebe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW 5.1.12] Tilde (~) breaks WikiText Link Syntax

2016-07-14 Thread Jeremy Ruston
Hi Chaonuo

There is a bug in 5.1.12 whereby URLs containing tildes are not recognised as 
external links. I’ll release 5.1.13 with a fix shortly, but in the meantime you 
can force a link like this:

[ext[Title|http://externallink.com/record=12345~S10*chg]]

Best wishes

Jeremy


> On 14 Jul 2016, at 13:14, chaonuo  wrote:
> 
> hi fellow TiddlyWiki users,
> 
> I have an external link with the code 
> [[Title|http://externallink.com/record=12345~S10*chg]], which doesn't work. 
> After a bit of try and error, I found out that if I remove the Tilde 
> character "~", then the link works. Apparently this character is reserved for 
> some other function I guess. Is there a way to work around this? Or can 
> TiddlyWiki 5 (5.1.12) be configured to allow Tilde Character in link syntax?
> 
> thanks for answering!
> 
> Chaonuo
> 
> -- 
> 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/951a8867-846b-4556-a0b6-fd837404d397%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/FE4C7682-E26B-4A33-A3E0-EF59B1D14E28%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW 5.1.12] Tilde (~) breaks WikiText Link Syntax

2016-07-14 Thread chaonuo
hi fellow TiddlyWiki users,

I have an external link with the code 
[[Title|http://externallink.com/record=12345~S10*chg]], which doesn't work. 
After a bit of try and error, I found out that if I remove the Tilde 
character "~", then the link works. Apparently this character is reserved 
for some other function I guess. Is there a way to work around this? Or can 
TiddlyWiki 5 (5.1.12) be configured to allow Tilde Character in link syntax?

thanks for answering!

Chaonuo

-- 
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/951a8867-846b-4556-a0b6-fd837404d397%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] syntax [img[imagefile.jpg]] in node.js

2016-07-14 Thread Jeremy Ruston
Hi Martin

> Any update on this? What would be the current best way to manage images in a 
> nodejs TW? Thanks!

There’s no update at the moment, I’m afraid.

Best wishes

Jeremy

> Martin
> 
> On Thursday, October 16, 2014 at 5:23:20 AM UTC+2, Michele Zaffalon wrote:
> Hi Kyrylo,
> 
> The answer is not yet for node.js. I am also waiting for it.
> michele
> 
> On Wed, Oct 15, 2014 at 6:47 PM, Jeremy Ruston  > wrote:
> Hi Kyrylo
> 
> > Hi! Have things changed? It seems like I still cannot reference local 
> > images, which is annoying.
> 
> The [img[url]] syntax has indeed been implemented:
> 
> http://tiddlywiki.com/#Images%20in%20WikiText 
> 
> 
> Best wishes
> 
> Jeremy
> 
> 
> On Wed, Oct 15, 2014 at 5:43 PM, Kyrylo Silin  > wrote:
> Hi! Have things changed? It seems like I still cannot reference local images, 
> which is annoying.
> 
> % tiddlywiki --version
> 5.1.2
> 
> 
> On Tuesday, June 3, 2014 3:14:45 PM UTC+3, Jeremy Ruston wrote:
> Hi Michele
> 
> 
> I take it that "(yet)" means there is the plan to support it in the future. 
> Will it be near future? Will the syntax be [img[path/to/local/file]]?
> 
> Yes, it should be working in the next couple of months. The syntax will 
> definitely use [img[]], and the plan would be to set up the base path so that 
> images can be referenced directly by their tiddler title.
> 
> Best wishes
> 
> Jeremy
> 
>  
> By the way for me also the link syntax  href="file:///home/michele/imagefile.jpg">image is not working for me 
> (see https://groups.google.com/d/msg/tiddlywiki/EmJFLV1XAD0/ZL7_W8Jsa18J 
> )
> 
> Does it work if you link to a http:// website?
> 
> Yes, http://...;>link works on 5.0.12 for me.
> 
> Best regards,
> michele
> 
> 
> -- 
> 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+...@googlegroups.com <>.
> To post to this group, send email to tiddl...@googlegroups.com <>.
> Visit this group at http://groups.google.com/group/tiddlywiki 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> 
> 
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com <>
> 
> 
> 
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com .
> Visit this group at http://groups.google.com/group/tiddlywiki 
> .
> 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/66026372-e24c-488d-b7d3-b8dc8b9b13d4%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/A8B8F605-C44A-446D-95F1-320A874D6426%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Drag & Drop External File/Attachment linking

2016-07-14 Thread Jeremy Ruston
Hi Martin

> Would that make sense/be possible to, when drag and dropping a non-text file 
> (a pdf, an image, etc.) to a tiddler that is currently being edited, have an 
> option for copying the content of the file to e.g. ./media/data/whatever.xyz, 
> and only inserting a link within the tiddler? Would be very useful. Thanks! 
> Martin

Unfortunately, there’s no general way to save arbitrary files. A TiddlyWiki can 
save it’s own HTML file, but it can’t save other files.

Best wishes

Jeremy

> 
> On Saturday, November 8, 2014 at 1:07:16 PM UTC+1, Blake Blacksmith wrote:
> Ok. Thats unfortunate but I appreciate your effort. For now I'll stick to 
> dragging and dropping the absolute path from my file explorer. 
> 
> Thanks for your continued great work with TW5!
> 
> 
> 
> On Sat, Nov 8, 2014 at 3:51 AM, Jeremy Ruston  > wrote:
> Hi Blake
> 
>  Is it possible to have TiddlyWiki have an active drag and drop region in the 
> edit-text window that will prevent the browser from opening the file and 
> instead paste the files relative path(or absolute path is unavailable)?
> 
> I've done some more tests with dragging a file from Finder/Explorer into a 
> text editor in the TiddlyWiki browser window. The default handling on Chrome 
> is to navigate to the incoming file. We can prevent that navigation, but we 
> still can't access the path of the file, and so we can't paste the relative 
> path of the file.
> 
> Best wishes
> 
> Jeremy.
> 
>  
> 
> On Fri, Nov 7, 2014 at 2:13 PM, Jeremy Ruston  > wrote:
> Hi Mark
> 
> My quick test on a Chrome browser suggests that links dragged from a Chrome 
> tab used as a file browser also may contain the full file path name. To me, 
> dragging from a browser tab would be the most universal way of doing things, 
> since a plugin would have to be specific not only to the browser but also the 
> operating system (it's likely that Linux and Mac are going to present link 
> drag/drops differently than Win OS).
> 
> You may have convinced me. I'd forgotten that other browsers also provide a 
> directory viewer for file: URIs (I nearly missed it on Chrome because it 
> doesn't actually let you drag a folder onto the Chrome icon or window).
> 
> I've created a ticket here:
> 
> https://github.com/Jermolene/TiddlyWiki5/issues/1067 
> 
> 
>  
> On the old TW, with the Javscript plugin, I would probably just have written 
> a routine that grabbed a list of files and created a tiddler for each one 
> containing a link of the right type pointing to a local relative path. I'm 
> finding it harder to get into coding in TW5.
> 
> There's a lot more code in TW5, and it can be hard to track down where things 
> are done. In this case, the area of interest is here:
> 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Fmodules%2Fwidgets%2Fdropzone.js#L87
>  
> 
> 
> > On a related note, I recently tried dragging a file into TiddlyWiki's text 
> > editor on a Mac+Safari and the file-path was inserted as desired. This is 
> > unlike in Windows with Chrome, Firefox, or Safari where the dragged file 
> > redirects the web-page to the dragged file.
> 
> Do you mean dragging from Finder or from Safari's file browser? I see the 
> same behaviour of navigating to the file when dragging a file from Finder to 
> Chrome on OS X. I haven't explored whether dragging a file into TiddlyWiki's 
> text editor can be made to consistently insert the path, I'll investigate.
> 
> Best wishes
> 
> Jeremy.
> 
> 
>  
> 
> Thanks!
> Mark
> 
> On Friday, November 7, 2014 8:36:20 AM UTC-8, Jeremy Ruston wrote:
> \Ah, OK, yes, in that case the browser exposes an URL link as text, and so we 
> could do the global-to-local transformation etc. The trouble is that I'm not 
> sure that it's worth it, given that it would only work with the Firefox file 
> browser. I think it would be more useful to spend the effort on getting 
> TiddlyFox/TiddlyClip to make it possible to drag files from the OS 
> Finder/Explorer and get a relative link made automatically.
>  
> 
> 
> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com .
> Visit this group at http://groups.google.com/group/tiddlywiki 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> 
> 
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> 

Re: [tw] Re: Drag & Drop External File/Attachment linking

2016-07-14 Thread Maaaaaaaaaaaaaaartin
Would that make sense/be possible to, when drag and dropping a non-text 
file (a pdf, an image, etc.) to a tiddler that is currently being edited, 
have an option for copying the content of the file to e.g. 
./media/data/whatever.xyz, and only inserting a link within the tiddler? 
Would be very useful. Thanks! Martin

On Saturday, November 8, 2014 at 1:07:16 PM UTC+1, Blake Blacksmith wrote:
>
> Ok. Thats unfortunate but I appreciate your effort. For now I'll stick to 
> dragging and dropping the absolute path from my file explorer. 
>
> Thanks for your continued great work with TW5!
>
>
>
> On Sat, Nov 8, 2014 at 3:51 AM, Jeremy Ruston  > wrote:
>
>> Hi Blake
>>
>>  Is it possible to have TiddlyWiki have an active drag and drop region in 
>>> the edit-text window that will prevent the browser from opening the file 
>>> and instead paste the files relative path(or absolute path is unavailable)?
>>>
>>
>> I've done some more tests with dragging a file from Finder/Explorer into 
>> a text editor in the TiddlyWiki browser window. The default handling on 
>> Chrome is to navigate to the incoming file. We can prevent that navigation, 
>> but we still can't access the path of the file, and so we can't paste the 
>> relative path of the file.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>  
>>
>>>
>>> On Fri, Nov 7, 2014 at 2:13 PM, Jeremy Ruston >> > wrote:
>>>
 Hi Mark

 My quick test on a Chrome browser suggests that links dragged from a 
> Chrome tab used as a file browser also may contain the full file path 
> name. 
> To me, dragging from a browser tab would be the most universal way of 
> doing 
> things, since a plugin would have to be specific not only to the browser 
> but also the operating system (it's likely that Linux and Mac are going 
> to 
> present link drag/drops differently than Win OS).
>

 You may have convinced me. I'd forgotten that other browsers also 
 provide a directory viewer for file: URIs (I nearly missed it on Chrome 
 because it doesn't actually let you drag a folder onto the Chrome icon or 
 window).

 I've created a ticket here:

 https://github.com/Jermolene/TiddlyWiki5/issues/1067

  

> On the old TW, with the Javscript plugin, I would probably just have 
> written a routine that grabbed a list of files and created a tiddler for 
> each one containing a link of the right type pointing to a local relative 
> path. I'm finding it harder to get into coding in TW5.
>

 There's a lot more code in TW5, and it can be hard to track down where 
 things are done. In this case, the area of interest is here:


 https://github.com/Jermolene/TiddlyWiki5/blob/master/core%2Fmodules%2Fwidgets%2Fdropzone.js#L87

 > On a related note, I recently tried dragging a file into TiddlyWiki's 
 text editor on a Mac+Safari and the file-path was inserted as desired. 
 This 
 is unlike in Windows with Chrome, Firefox, or Safari where the dragged 
 file 
 redirects the web-page to the dragged file.

 Do you mean dragging from Finder or from Safari's file browser? I see 
 the same behaviour of navigating to the file when dragging a file from 
 Finder to Chrome on OS X. I haven't explored whether dragging a file into 
 TiddlyWiki's text editor can be made to consistently insert the path, I'll 
 investigate.

 Best wishes

 Jeremy.


  

>
> Thanks!
> Mark
>
> On Friday, November 7, 2014 8:36:20 AM UTC-8, Jeremy Ruston wrote:
>>
>> \Ah, OK, yes, in that case the browser exposes an URL link as text, 
>> and so we could do the global-to-local transformation etc. The trouble 
>> is 
>> that I'm not sure that it's worth it, given that it would only work with 
>> the Firefox file browser. I think it would be more useful to spend the 
>> effort on getting TiddlyFox/TiddlyClip to make it possible to drag files 
>> from the OS Finder/Explorer and get a relative link made automatically.
>>  
>>
>> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



 -- 
 Jeremy Ruston
 mailto:jeremy...@gmail.com 

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "TiddlyWiki" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/tiddlywiki/k-cMEGkOV-8/unsubscribe.
 To unsubscribe from this 

Re: [tw] [TW5] syntax [img[imagefile.jpg]] in node.js

2016-07-14 Thread Maaaaaaaaaaaaaaartin
Any update on this? What would be the current best way to manage images in 
a nodejs TW? Thanks! Martin

On Thursday, October 16, 2014 at 5:23:20 AM UTC+2, Michele Zaffalon wrote:
>
> Hi Kyrylo,
>
> The answer is not yet for node.js. I am also waiting for it.
> michele
>
> On Wed, Oct 15, 2014 at 6:47 PM, Jeremy Ruston  > wrote:
>
>> Hi Kyrylo
>>
>> > Hi! Have things changed? It seems like I still cannot reference local 
>> images, which is annoying.
>>
>> The [img[url]] syntax has indeed been implemented:
>>
>> http://tiddlywiki.com/#Images%20in%20WikiText
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>> On Wed, Oct 15, 2014 at 5:43 PM, Kyrylo Silin > > wrote:
>>
>>> Hi! Have things changed? It seems like I still cannot reference local 
>>> images, which is annoying.
>>>
>>> % tiddlywiki --version
>>> 5.1.2
>>>
>>>
>>> On Tuesday, June 3, 2014 3:14:45 PM UTC+3, Jeremy Ruston wrote:

 Hi Michele


> I take it that "(yet)" means there is the plan to support it in the 
> future. Will it be near future? Will the syntax be 
> [img[path/to/local/file]]?
>

 Yes, it should be working in the next couple of months. The syntax will 
 definitely use [img[]], and the plan would be to set up the base path so 
 that images can be referenced directly by their tiddler title.

 Best wishes

 Jeremy

  

> By the way for me also the link syntax  href="file:///home/michele/imagefile.jpg">image 
>>> is not working for me (see https://groups.google.com/d/
>>> msg/tiddlywiki/EmJFLV1XAD0/ZL7_W8Jsa18J)
>>>
>>
>> Does it work if you link to a http:// website?
>>
>
> Yes, http://...;>link works on 5.0.12 for me.
>
> Best regards,
> michele
>
> -- 
> 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+...@googlegroups.com.
> To post to this group, send email to tiddl...@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



 -- 
 Jeremy Ruston
 mailto:jeremy...@gmail.com

>>>
>>
>>
>> -- 
>> Jeremy Ruston
>> mailto:jeremy...@gmail.com 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com .
>> To post to this group, send email to tiddl...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> 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/66026372-e24c-488d-b7d3-b8dc8b9b13d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] javascript macro for this purpose?

2016-07-14 Thread László Zsigmond


Hello!

I'm trying to start with my first homebrew javascript snippet/macro that gets 
the value of a tiddler's field and replaces two strings inside it...
I came up with the following not working code that should just return that 
modified string. This script shouldn't run jut once but
each time one input element (inputterm) is edited. Have no idea how to call 
such a function in Tiddlywiki context, for getElements it
would be safer to use ids but I just want to see if my plan is doable in the 
first place.

Help please.


Laci

/*\
title: $:/macros/obeliksz/library_api_macro.js
type: application/javascript
module-type: macro

<>

Example:
<>

\*/
(function(){

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

/*
Information about this macro
Replaces inside the api_url string the inputterm with the more than 3 characters
typed input from the title's edit-text and inputauthor with author edit-text
default api_url: 
https://www.googleapis.com/books/v1/volumes?printType=books=+intitle:inputterm+inauthor:inputauthor

*/

exports.name = "libraryapimacro";

/*
Run the macro
*/
exports.run = function() {
var api_url = {{$:/plugins/inmysocks/LibraryTracker/Library Tracker 
Settings!!api_url}}
var inputterm = 
document.getElementsByClassName('tc-edit-texteditor')[0].value
var inputauthor = document.getElementsByTagName('select')[1].value
var output ="New url: " + 
api_url.replace("inputterm",inputterm).replace("inputauthor",inputauthor);
return output;
};

})();

-- 
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/35b77f29-53b6-404d-8b1d-f4b137091131%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Jed Carty
That is possible using list widgets and some filtering. I will get back to 
you about this later because I just found out that the person I lined up to 
watch my dog while I am in England can't help me and I need to get that 
taken care of.

-- 
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/01b96377-ff34-4bc8-9f03-adaa08c8ee40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Open all the tiddlers with a particular tag

2016-07-14 Thread Maaaaaaaaaaaaaaartin
This is incredibly useful, thanks! One question though: how are the 
tiddlers sorted? Ideally, I would like to have them in reverse 
chronological order (of creation date)…is it possible? Thanks! Martin

-- 
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/24768236-2890-4090-bbe4-47a82a1d1ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Hans Maulwurf
Ok, I think you're right. I try to explain what I want to do ^^

I want an input-field where I type in a string like "B 2.5 some text bla".

This whole string has to be splitted into "B2.5" (so just the first two 
parts without space) and all the rest "some text bla".

If there is NO tiddler with the name "B2.5", I need the button "create this 
tiddler" and create 3 tiddlers  like this: where  should bethe 
"B2.5"

The tiddlers later should be filled with some fields and contents (but i 
would be glad if the empty tiddlers with the right names would be created 
by now)

<$button>
<$list filter="[addsuffix[_1]] [addsuffix[_2] 
[addsuffix[_3]]">
<$action-maketid tags="testmaketid" isms_test="text from a 
field" $navigate="hide"/>

Make Tiddlers



-- 
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/1eb51651-352b-497e-b00b-63153f461e0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Jed Carty
Macros work by text substitution, so it probably isn't something you can do 
directly. If what you want to do is possible than you can probably do it in 
a much simpler way, but you can't use a macro that uses widgets in a filter 
like that.

-- 
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/b3328e21-7e1c-4583-a053-981f0dca5cb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Hans Maulwurf
thanks guys, this helped me till the next problem ^^

\define basename() {{$:/isms/tmp/NewISMSElement!!name_base}}
\define elementid()
<$macrocall $name="macroGetElementID" fullName=$(basename)$/>
\end
\define elementtitle()
<$macrocall $name="macroGetElementTitle" fullName=$(basename)$/>
\end

Titel: <$edit-text tiddler='$:/isms/tmp/NewISMSElement' field='name_base' 
class='tc-edit-texteditor'/>

<$list filter="[!has[created]]">
<>
<$button to=<>>
not yet created ... create it!




how do I use the text from the macro "elementid" as a tiddler-name in the 
filter?

-- 
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/027ccef1-deb2-473f-9f74-23c7552bb9f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Saving from tiddlyspot to local fs in android

2016-07-14 Thread Jeremy Ruston
Hi Carlos

You can insert the following snippet in any tiddler to create a “download” 
button that downloads the entire wiki locally:

{{$:/snippets/download-wiki-button}}

Best wishes

Jeremy

> On 14 Jul 2016, at 05:18, 'Mark S.' via TiddlyWiki 
>  wrote:
> 
> I don't know if this would work (I've only tried part of the process) but it 
> seems to me that you could turn off the save-to-tiddlyspot configuration. 
> Then the "save" button will save to the local (android) file wherever your 
> system puts downloads. Then, after you've worked locally, re-instate the 
> settings and save again. Might be worth a try.
> 
> Mark
> 
> On Wednesday, July 13, 2016 at 8:06:13 PM UTC-7, Carlos Pita wrote:
> Hi all,
> I'm new to tw and I'm having some hard time trying to figure out how to do 
> the following:
> 
> 1. I've download an empty tw5 to my local fs in an android device.
> 2. I've saved this tw to tiddlyspot.
> 3. Once in tiddlyspot I've configured the tw to save to the server, which it 
> does fine.
> 4. Now I would like to work offline for some hours so I want to download a 
> copy, edit it and finally upload it to tiddlyspot.
> 5. The problem is: there is no download button, save now means save to 
> tiddlyspot (I guess I could delete the user/pass in the panel control to 
> force local saving). Chrome in android doesn't offer a save-as function 
> AFAICS.
> 
> Is there a workaround? Should I use ff?
> 
> Thank you in advance
> --
> Carlos
> 
> 
> 
> 
> 
> 
> 
> -- 
> 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/5f646ea3-7a3e-4a8d-965f-71e0ebc9662a%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/B2EB3BEB-5E4F-4634-9BDD-B9EE5F29826B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Announcing TiddlyWiki v5.1.12

2016-07-14 Thread Raymond McDowell
Allow me to add my thanks for the update. Great job.

-- 
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/167e4488-5c43-4095-b44e-f4148d05ba90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Announcing TiddlyWiki v5.1.12

2016-07-14 Thread Jeremy Ruston
Hi Jon

> Some more info: if I disable the Text Slicer plugin first before attempting 
> the upgrade, the wiki goes through the upgrade process without the Java 
> Script error and shows the new version number (from 5.1.10)

The TextSlicer plugin in 5.1.12 depends on the Dom-Parser plugin 
($:/plugins/tiddlywiki/xmldom/dom-parser). It’s a bug that it crashes when the 
plugin isn’t present; it should just give a warning. As you discovered, the 
workaround is to exclude the TextSlicer plugin from the upgrade by unchecking 
it in the upgrade wizard.

> but the new text editor isn't present.

That’s strange; perhaps you are using another plugin that disrupts the editor 
machinery?

Best wishes

Jeremy.


> 
> Regards
> Jon
> 
> On Wednesday, 13 July 2016 12:04:57 UTC+1, Jeremy Ruston wrote:
> I'm delighted to announce that TiddlyWiki version 5.1.12 has finally been 
> released to:
> 
> http://tiddlywiki.com/ 
> 
> Remember to keep careful backups before upgrading existing 5.x.x wikis at:
> 
> http://tiddlywiki.com/upgrade.html 
> 
> This is a much bigger release than usual:
> 
> * New text editor toolbars
> * New bitmap editor toolbars with usable drawing tools
> * Upgraded KaTeX and CodeMirror plugins
> * Experimental Evernote import by dragging .enex files
> * Added a bulk delete button to advanced search "Filter" tab
> * Introduction of the new WikifyWidget
> * New "internals" plugin that allows results of parsing and rendering to be 
> previewed
> * Many bug fixes
> 
> See the release note at http://tiddlywiki.com/#Release%205.1.12 
>  for more details.
> 
> Once again, this release has more contributors than ever before, including 
> quite a few first time contributors. My sincere thanks to everyone for their 
> help. 
> 
> As usual, feedback and questions are gratefully received.
> 
> Best wishes
> 
> Jeremy
> 
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/99A314F3-300A-411B-ACF9-DC46CAAF3B74%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Overloading the (new) tiddler editor keymap

2016-07-14 Thread peuhpeuh singe
Hi everybody,

I used to work with a modified version of sublimetext keymap from the 
codemirror plugin and I am pretty happy with it. However,  I just pass to 
the recent 5.1.12 version and it comes with the pretty new editor embedding 
lots of shortkey that overload the ones defined in the sublimetext keymap. 
Is there any way to remove the keymaps of the new editor or to prioritize 
them with respect to those of the editor ?


-- 
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/65650343-ee1d-4bb1-bf43-5080beb04c37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.