[tw] Re: How to run startup module after startup?

2017-03-26 Thread Matt Groth
It works, but not reliably. We must be pushing TW past some sort of limit.

The main problems I found while testing:

1) A bookmark will only update roughly half of the time. If I remove a tag 
from a pinboard bookmark tiddler, it will sometimes take multiple updates 
for that tag to come back.

2) Clicking the button will sometimes freeze up TW's browser-server 
syncing. Even if I am patient and only press the button once in a 15-minute 
timespan, this can happen. After pressing, the node console log message 
indicating that the button was pressed does not initially come up. From 
then onwards, TW does not communicate with the server for some random 
amount of time. If I modify my wiki and try to exit, it warns me that I 
have unsaved changes. After another 5-15 minutes, out of nowhere, the 
pinboard reset will happen in the blink of an eye. After the refresh 
finally happens, sometimes browser-server communication will resume and 
sometimes it won't.

Looks like I'll be using this sparingly, but thanks again for all the help, 
BJ.

-- 
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/a016abcc-2fcd-4542-bbab-a0eb9e9ab339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Get the value of a related Tiddler to use in the text of another Tiddler.

2017-03-24 Thread Matt Groth
Why do you need brackets in the related field?

-- 
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/106b4e7e-c057-4be6-9735-68890b65d398%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How can I get the currently viewed tiddler in zoomin from anywhere on my wiki?

2017-03-24 Thread Matt Groth
I am trying to make tabs for my storylist in zoomin (the one where you can 
only see a single tiddler at a time). 

So far so good, only I can't figure out the variable that will determine if 
a tab should have the "selected" style.


   - currentTiddler represents the tiddler the tab is representing.
   - storyTiddler is not defined outside of the story river.
   - Storylist does not change order


Is there a simple way I can get the tiddler I am currently viewing/editing 
in zoomin outside of the story river?

-- 
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/7ef76b95-dd95-425c-986d-b667500b4863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to run startup module after startup?

2017-03-22 Thread Matt Groth
Thanks BJ for helping me find a workaround since hooking won't work. 

Your code (which I assume was meant to be inserted into 
create-pinboard-tiddlers.js), did not work as intended. I have been trying 
to debug and so far this is what I know:

I added a log for every time the event listener is activated: 

$tw.wiki.addEventListener("change",function(changes) {
console.log('there was a change pinboard');
if($tw.utils.hop(changes,"updatebookmarks")) {
runPinboardPlugin();
}
});

"there was a change pinboard" is never printed.

To further investigate I added an analogous console.log line to a similar 
bit of code I find in core/modules/pluginswitcher.js:

this.wiki.addEventListener("change",function(changes) {
console.log('there was a change pluginswitcher');
if($tw.utils.hop(changes,self.controllerTitle)) {
self.switchPlugins();
}
});

This printed 1682 times just on startup.

So far my conclusion is that I need to research more how addEventListener 
works so I can find more debugging steps I can try. If you can think of 
anything let me know, but in the meantime I will continue to try to solve 
this myself and update you on my progress.

Best,
Matt

-- 
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/27f65d53-cf84-44ca-ac7a-fe3e5e5e21d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Core drag-and-drop improvements

2017-03-22 Thread Matt Groth
Thank you Jeremy and contributors! So excited to test this out!

-- 
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/8284e0a8-33c9-49da-ae3c-3292371af144%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to run startup module after startup?

2017-03-22 Thread Matt Groth
Hi BJ,

Thanks very much for the help. Can you possibly explain this in more depth? 
I've tried to follow your instructions, and also read up on hooks from 
twdocs and looked at the code in `boot.js`, but I still don't fully 
understand how a hook function is called.

The following is my progress so far.

I wasn't sure where exactly the addHook function belonged or what the name 
was supposed to be. My best guess was that they belonged in the plugin 
startup module itself. So I took the main function in 
`create-pinboard-tiddlers.js` and moved it to a new one.
I tested two different formats of `addhook()` based on what I read:

exports.startup = function() {

// $tw.hooks.addHook("reset-pinboard-tiddlers",function() { 
// runPinboardPlugin();
// return; 
// });

$tw.hooks.addHook("th-saving-tiddler",function(tiddler) { 
runPinboardPlugin();
return tiddler; 
});

runPinboardPlugin();
}

As you can see I commented out the first one, but I did try both. In both 
cases, the plugin worked normally on startup. In neither case was I able to 
successfully `invokeHook()`. I tried Chrome dev-tools snippets:

`$tw.hooks.invokeHook("th-saving-tiddler");`

&

``$tw.hooks.invokeHook("reset-pinboard-tiddlers");`

depending on which one I was trying, but neither did anything. I also tried 
saving tiddlers for the "th-saving-tiddler" test but this did nothing 
either.

What am I doing wrong?

All the best,
Matt

-- 
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/27dca371-e687-4646-b442-a31e42007478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to run startup module after startup?

2017-03-21 Thread Matt Groth
Hey all,

I need to run a startup module without having to restart the server. 
Specifically, I am talking about the pinboard bookmarks plugin created by 
moderatemisbehaviour. 
 He 
mentions in the readme's roadmap that he might add this, but I need it 
sooner so I'm trying to make it myself. I want to reload my pinboard 
bookmarks by simply clicking a button.

The closest I have been able to get is this snippet:

$tw.boot.remainingStartupModules = []; // Array of startup modules
 $tw.modules.forEachModuleOfType("startup",function(title,module) {
 if(module.startup) {
 $tw.boot.remainingStartupModules.push(module);
 }
 });


function isPIN(element) {
  return element.name = 
"$:/get-pinboard-bookmarks/create-pinboard-tiddlers.js";
}

task = $tw.boot.remainingStartupModules.find(isPIN);

task.startup();

I think this gets the correct task, but I don't think startup function is 
executing. I'm pretty inexperienced in all of this, but I have a feeling 
this is some sort of scope issue. I don't fully understand what javascript 
all of the different agents in play have access to. I could be wrong 
though, and this might have nothing to do with scope. I have tried running 
this in both the dev tools and as a Chrome Extension, but neither works.

-- 
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/24a60860-b093-495f-9128-9500a8980e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Is there a dark theme?

2017-03-16 Thread Matt Groth
Hi Jeremy,

Ah, cool! Thanks for the directions.

Best,
Matt

On Thursday, March 16, 2017 at 5:50:50 AM UTC-4, Jeremy Ruston wrote:
>
> Hi Matt
>
> I was wondering if anyone has made a TW5 dark theme. Perhaps I will 
> attempt to make one someday if there isn't one already.
>
>
> In TiddlyWiki, themes determine the layout of the display but the colour 
> scheme is determined by the palette. They are set independently so that 
> users can mix and match the layout they want with the colour scheme they 
> want.
>
> In the control panel “Appearance” tab you’ll find a list of available 
> palettes. “Contrast (Dark)” is a built-in dark theme, but you can adjust 
> things with the built-in palette editor.
>
> Best wishes
>
> Jeremy.
>
>
> -- 
> 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/2adeafa0-e155-4940-b2c7-d6e09edee953%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/c1606649-7dcd-46d6-828e-fb980a566c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a dark theme?

2017-03-16 Thread Matt Groth
I was wondering if anyone has made a TW5 dark theme. Perhaps I will attempt 
to make one someday if there isn't one already.

-- 
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/2adeafa0-e155-4940-b2c7-d6e09edee953%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: how to get list of all tags that are tagging tiddlers with field X?

2017-03-16 Thread Matt Groth
Thanks François, but in the end it turns out

<$list filter="[has[x]tags[]]"><$transclude 
tiddler="$:/core/ui/TagTemplate"/>

is what I was looking for!

-- 
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/33f18eb8-794f-4674-966f-2c39d8688e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] how to get list of all tags that are tagging tiddlers with field X?

2017-03-16 Thread Matt Groth
`[has[x]get[tags]]

-- 
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/6b0eff2a-e240-47ee-bb68-29b9f7bf87b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2017-03-09 Thread Matt Groth
Hi Jeremy,

It's interesting that you choose to restrict javascript usage to make it 
more safe to share content. Thanks for the explanation.

Best,
Matt


On Sunday, March 5, 2017 at 3:25:01 PM UTC-5, Jeremy Ruston wrote:
>
> Hi Matt
>
> Just to add to the answers from others,
>
> I'm also somewhat confused about why we have javascript macros then, and 
> what the difference is there.
>
>
> The objective of TiddlyWiki’s security restrictions is to make it possible 
> to safely share content between users. That requires that JavaScript code 
> be clearly identified so that the recipient can decide whether to trust it 
> enough to execute it or not; if we allowed inline JavaScript within 
> fragments of wikitext then a recipient couldn’t know whether they could 
> safely render incoming wikitext.
>
> So, JavaScript macros are permitted because they are readily identified as 
> such, and can be blocked when required.
>
> The other factor in TiddlyWiki’s design that affects the use of third 
> party JavaScript libraries is that TiddlyWiki doesn’t support the 
> traditional web development paradigm of keeping state data in the DOM (this 
> is the paradigm popularised a decade ago by jQuery). Instead, TiddlyWiki 
> uses a virtual DOM and differential updates (this is the paradigm used by 
> recent frameworks like React). The net effect is that TiddlyWiki generally 
> doesn’t support just dropping in a 

[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2017-03-09 Thread Matt Groth
This is perfect, thanks!

On Sunday, March 5, 2017 at 7:07:12 AM UTC-5, BJ wrote:
>
> you could try an ifame in a normal tid
>
> http://www.reddit.com/.embed?limit=5; 
> type="text/javascript">"""/>
>
> On Sunday, March 5, 2017 at 1:55:08 AM UTC+1, Matt Groth wrote:
>>
>> Got it to work! Thanks again, Ton. You're right, its not very practical 
>> in the end.
>>
>> You can't put in any javascript after the wiki is loaded and have it take 
>>> effect for safety reasons.
>>
>>
>> I regularly backup my wiki so I'd be interested to know if this is at all 
>> hackable. I'm also somewhat confused about why we have javascript macros 
>> then, and what the difference is there. Though at this point I should 
>> probably study the code a lot more so I know what I'm talking about. I'll 
>> be back!
>>
>

-- 
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/1b5bc39f-5ae4-4aea-bf7d-cc010b50f274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2017-03-04 Thread Matt Groth
Got it to work! Thanks again, Ton. You're right, its not very practical in 
the end.

You can't put in any javascript after the wiki is loaded and have it take 
> effect for safety reasons.


I regularly backup my wiki so I'd be interested to know if this is at all 
hackable. I'm also somewhat confused about why we have javascript macros 
then, and what the difference is there. Though at this point I should 
probably study the code a lot more so I know what I'm talking about. I'll 
be back!

-- 
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/b4a40bd1-b749-46ba-98c4-d5c115c60f8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2017-03-04 Thread Matt Groth
Hi Ton,

Thank you, but I don't think the $:/tags/RawMarkup method works.  I tried 
on both mine and tiddlywiki.com and tried both leaving the type blank and 
setting it to text/vnd.tiddlywiki. Also, I wasn't sure if you meant to do 
this with Tobias' plugin, but I tried that and it still didn't work.

Best,
Matt


>

-- 
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/fc8e000c-f970-4907-a974-6eb8de5e5567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get a text reference of a filter output?

2017-03-02 Thread Matt Groth
Thank's Jed and Eric, they both work!

Eric, I'm going to make a PR to add your example to the docs. I never would 
have figured that out myself.

Best,
Matt

-- 
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/cdb93f83-2ffb-4f27-ab6f-1b99a9e21021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to get a text reference of a filter output?

2017-03-02 Thread Matt Groth
I'm trying to make a reveal widget that matches a filter when it produces 
no output. However, the reveal widget requires a text reference as the 
state to match. How can I use a filter as a text reference?

-- 
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/48a936bf-55be-429c-94d6-a41db7b3ea31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] iframe google group on tiddlywiki site. Example.

2017-03-01 Thread Matt Groth
Any idea why this is not working for me? It's coming out blank.

On Thursday, January 5, 2017 at 10:28:26 AM UTC-5, Siniy-Kit wrote:
>
> Hi! I found a very easy way to put google group to tiddlywiki 
>
> https://groups.google.com/forum/embed/?place=forum/heeg=true=true=false=http%3A%2F%2Fheeg.ru%2Fforum.html
> " scrolling="no" frameborder="0" width="100%" height="700">
>  
>
>
> here is google group on my site http://heeg.ru/heeg.html#forum
>
> unfortunately this iframe don't work local. And I don't know why...
>
>

-- 
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/9c441e4c-8d59-43d6-a7ae-4ca897808cdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2017-02-28 Thread Matt Groth
I'd like to insert some javascript into my tiddlywiki but I am having 
trouble.

The script I want to insert is:

https://www.reddit.com/.embed?limit=5"; type="text/javascript"
>

See it in use in JSFiddle 

It doesn't work if I set a tiddler type to "text/html".

It also doesn't work with Tobias' plugin (though his examples did work, so 
I know I've installed correctly).

Anyone know what might be causing this issue?

-- 
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/81e39c4b-14a6-41b7-8133-a9f3954e6d40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Plugins updated: ToDoNow and Listreveal

2017-02-27 Thread Matt Groth
So happy I stumbled upon this community :) 

Thanks!

On Monday, February 27, 2017 at 12:52:18 PM UTC-5, Thomas Elmiger wrote:
>
> Hi Matt
>
> I just want to skip the listrevealButton() and have the content rendered 
>> with the rest of my tiddler content
>>
>
> That sounds reasonable :–)
>
> I have added a parameter *state* to the listrevealContent macro and the 
> plugin is updated to version 0.1.13. Your usage would be:
>
> <$macrocall $name="listrevealContent" title=<> datetime=<> 
> state="$:/your-state-tiddler-title"/> 
>
> Where *$:/your-state-tiddler-title* is the title of a state tiddler you 
> define manually or using a button of your own.
>
> As long as the text field of your state-tiddler contains the word 
> *visible* (and only this) your listreveal section(s) will be open. If the 
> tiddler contains anyting else or does not exist, they will remain closed. 
>
> Hope, that helps – have fun!
> Thomas
>

-- 
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/655414f4-3903-438a-a979-f6737e3f0ac1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Plugins updated: ToDoNow and Listreveal

2017-02-27 Thread Matt Groth
Hi Thomas,

Listreveal works well and also looks great. Thank you so much!

I want to adapt your code a little bit for my needs, but I'm having trouble 
and was wondering if you could help.

I just want to skip the listrevealButton() and have the content rendered 
with the rest of my tiddler content. I'm sure I can figure out the other 
small changes I want on my own, but getting the macro to work without the 
button is something I think I could use some help in. So far all my 
attempts at bypassing the button are just causing everything to disappear. 

Best,
Matt

On Friday, February 24, 2017 at 6:49:34 PM UTC-5, Thomas Elmiger wrote:
>
> Hi all
>
> Just a short note, most of all to Josiah who contributed a lot of ideas 
> and testing: My plugins are updated (and still worked in a first test). 
>
> ===
>
> *Listreveal*
> For my lists of tiddlers I made a special tool *listreveal* that
> a) lets you open listed tiddlers and see their tags and other details 
> (similar to the new tiddler manager but simpler)
> b) lets you add tags based on all tiddlers in the list with two clicks 
> (only suggestions, no input field) or remove tags from the tiddler
>
> ===
>
> *ToDoNow*
> Building up on lists from Listreveal I made this simple but effective 
> ToDo-App. Here’s what Josiah said about this 
> 
>  
> (thank you!): 
>
> I think its worth saying WHY it is good. #GTD functional design is not as 
>> easy as it first might look. What you really got right on this, for this 
>> specific type of GTD, IMO, is ..
>>
>>1. Clear, uncluttered, interface that gives an immediate OVERVIEW.
>>2. IN SITU TOOLS. In-line editing, deadline assignment & click 
>>prioritisation.That is so good because tasks stay in full CONTEXT.
>>3. Simple THREE SECTIONS (ActionNow, Tasks, Finished) with easy 
>>transfer between them
>>4. Overall SIMPLICITY & EFFICIENCY of functional use.
>>
>> ===
>
> After some major refactoring both plugins come with new features, short 
> readmes and with some new CSS-classes. 
>
> *As always: remember to back up your wikis before you try my stuff.*
>
> And as always you can find them here: 
> http://tid.li/tw5/plugins.html#Get%20More%20Plugins – and as always 
> feedback ist highly appreciated!
> (There are still some ideas from Josiah on my development todo list, but 
> please don’t hold your comments back.)
>
> Have a nice weekend!
> Thomas
>
>
>
>
>
>
>
>

-- 
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/7eea2fac-d0ea-45aa-878a-009859556fbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to password protect my tiddlywiki without signing edits

2017-02-26 Thread Matt Groth
I want password protection, but I don't want a username for signing edits. 
On Node.js, leaving username blank in the --server command prevents the 
password prompt from appearing. Is there a way I can still have password 
protection without seeing an arbitrary username on every one of my 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/b567ca6f-d24f-4b39-be8c-0332485a4c73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a way to keep sidebar tiddlers rendered in the background?

2017-02-24 Thread Matt Groth
One of my sidebar tiddlers is an iframe of a webpage. I am regularly going 
back and forth between that page and other sidebar tiddlers but the iframe 
has a long loading time. Is there a way to keep it rendered in the 
background? I'd rather not put it in my storylist.

-- 
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/2252709b-373f-4797-8987-0917820fcd13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to access my TW from iPhone?

2017-02-24 Thread Matt Groth
Actually, I was able to accomplish this using ngrok 
<https://www.npmjs.com/package/ngrok>. Thanks again for the help!

On Friday, February 24, 2017 at 3:25:51 PM UTC-5, Matt Groth wrote:
>
> Hey Mark,
>
> This worked!
>
> Now how do I make the server accessible from anywhere rather than just my 
> local router?
>
> And a password is just fine for security. :)
>
> Thanks,
> Matt
>
>
> On Thursday, February 23, 2017 at 12:59:39 PM UTC-5, Mark S. wrote:
>>
>> From http://tiddlywiki.com/#ServerCommand , you need to give a command 
>> that will let other devices see your app, like
>>
>> --server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245
>>
>>
>> That means you will need to look up the serving machine's local ip number 
>> (I'm assuming you're on a local wifi or other router).
>>
>> You can add a username and password, but per the text this is passed in 
>> plain text, so it's not heavy duty security. 
>>
>> I'm not a security expert, but I believe you might be able to tell your 
>> local router to block activities on certain ports, so you have some 
>> security from the outside world. Of course, this would not prevent other 
>> users inside your local network from viewing your "site".
>>
>> Possibly you could encrypt your TW -- I've never tried this on node.js. 
>> You could then examine your individual tid's and verify that they're 
>> encrypted.
>>
>> Good luck,
>> Mark
>>
>>
>> On Wednesday, February 22, 2017 at 3:12:31 PM UTC-8, Matt Groth wrote:
>>>
>>> I'm running tiddlywiki on Node.js on my Mac and accessing it by going to 
>>> http://127.0.0.1:8080/. How can I access this address from my iPhone? 
>>>
>>> I'm guessing this will require creating an internet server. How would I 
>>> do this, and how can I keep it private?
>>>
>>

-- 
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/fe22b795-7b4e-4e2b-8980-f50bbe759ac9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to access my TW from iPhone?

2017-02-24 Thread Matt Groth
Hey Mark,

This worked!

Now how do I make the server accessible from anywhere rather than just my 
local router?

Thanks,
Matt


On Thursday, February 23, 2017 at 12:59:39 PM UTC-5, Mark S. wrote:
>
> From http://tiddlywiki.com/#ServerCommand , you need to give a command 
> that will let other devices see your app, like
>
> --server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245
>
>
> That means you will need to look up the serving machine's local ip number 
> (I'm assuming you're on a local wifi or other router).
>
> You can add a username and password, but per the text this is passed in 
> plain text, so it's not heavy duty security. 
>
> I'm not a security expert, but I believe you might be able to tell your 
> local router to block activities on certain ports, so you have some 
> security from the outside world. Of course, this would not prevent other 
> users inside your local network from viewing your "site".
>
> Possibly you could encrypt your TW -- I've never tried this on node.js. 
> You could then examine your individual tid's and verify that they're 
> encrypted.
>
> Good luck,
> Mark
>
>
> On Wednesday, February 22, 2017 at 3:12:31 PM UTC-8, Matt Groth wrote:
>>
>> I'm running tiddlywiki on Node.js on my Mac and accessing it by going to 
>> http://127.0.0.1:8080/. How can I access this address from my iPhone? 
>>
>> I'm guessing this will require creating an internet server. How would I 
>> do this, and how can I keep it private?
>>
>

-- 
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/1e876db2--4586-bcea-b2f76ea2cb56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5-node] How to trigger a rebuild of $__StoryList.tid

2017-02-22 Thread Matt Groth
*At the moment it's not possible to insert tiddlers from other devices into
the filesystem, without restarting the server. .. There is no code in the
server that watches the directory, reloads the server and notifies the
clients.*

I am able to insert tiddlers without restarting the server by injecting
javascripts in a Chrome extension.

On Wed, Feb 22, 2017 at 4:02 PM PMario  wrote:

> On Wednesday, February 22, 2017 at 5:48:50 PM UTC+1, Captain Packers wrote:
>
> I believe I'm looking to updat the contents of $__StoryList.tid. If I drop
> a new .tid file in the folder that I created on a mobile device, I can't
> see the new tiddler in the TiddlyWiki unless I restart the server. I'm
> wondering if there is a way to refresh $__StoryList.tid without having to
> restart the server, and if that would make the new tiddlers appear/viewable.
>
>
> The $:/StoryList tiddler is not responsible for updating anything in the
> node server context. It's a tiddler, that contains a list field, that
> represents the "story list" .. that's all.
>
> At the moment it's not possible to insert tiddlers from other devices into
> the filesystem, without restarting the server. .. There is no code in the
> server that watches the directory, reloads the server and notifies the
> clients.
>
> -m
>
> --
> 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/V897OfRb4RM/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/f583ca1a-4471-4168-8733-37671c1d6b12%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/CABN7pv3F2kLMpDnZ0wnWD%2B%3DdRthKF%3DcbL99NN7B2eJb1TpWGsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to access my TW from iPhone?

2017-02-22 Thread Matt Groth
I'm running tiddlywiki on Node.js on my Mac and accessing it by going 
to http://127.0.0.1:8080/. How can I access this address from my iPhone? 

I'm guessing this will require creating an internet server. How would I do 
this, and how can I keep it private?

-- 
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/624d77f8-8abd-43c0-b130-3b2628cb1718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5-node] How to trigger a rebuild of $__StoryList.tid

2017-02-21 Thread Matt Groth
By rebuild are you referring which tiddlers are open and closed on the 
storyboard or the actual contents of $__StoryList.tid on the server?

On Monday, February 20, 2017 at 7:38:26 PM UTC-5, Captain Packers wrote:
>
> Does anyone know how to trigger a rebuild of $__StoryList.tid withouth 
> having to restart the tiddlywiki server?
>

-- 
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/bf7ac84e-b015-4899-91c3-57e5a3d5402e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Has anyone made a mechanism for faster tagging?

2017-02-21 Thread Matt Groth
Hi all, 

Wow, thanks for all these tools. I will definitely try them all out.

Thomas,

Listreveal looks great! I am excited to try it, have you uploaded it yet?

Thanks!
Matt

On Tuesday, February 21, 2017 at 3:27:08 PM UTC-5, Matt Groth wrote:
>
> Hi,
>
> I often want to change tags on tiddlers without editing the contents, so 
> it is unnecessary for me to put the tiddler into draft mode. Has anyone 
> created a mechanism for the faster adding, editing, and removing of tags? 
> Ideally, this would still include the autocomplete feature. Or should I try 
> to create this myself?
>

 

>
> Thanks,
> Matt
>

-- 
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/9f41d21e-f726-436d-93cf-ae1b1bbfb3cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Has anyone made a mechanism for faster tagging?

2017-02-21 Thread Matt Groth
Hi,

I often want to change tags on tiddlers without editing the contents, so it 
is unnecessary for me to put the tiddler into draft mode. Has anyone 
created a mechanism for the faster adding, editing, and removing of tags? 
Ideally, this would still include the autocomplete feature. Or should I try 
to create this myself?

Thanks,
Matt

-- 
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/097f6974-324f-4b22-978d-976558e781a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-20 Thread Matt Groth
I finally got it to work just as I imagined! I can now create and open 
tiddlers in seconds containing whatever data I want. Thanks so much!

Jeremy,

*If you look at the “network” tab of developer tools while you run that 
snippet you’ll see that it generates the same underlying HTTP request as 
we’ve discussed earlier in the thread.*

I didn't know this, and it was extremely helpful.

*Chrome isn’t particularly easy to automate; you’d probably need to write 
an extension.*

You were right again, this is exactly what I needed to do.

*The issue you ran into whereby the change you made on the server wasn’t 
propagated to the browser is because the default polling interval is 60 
seconds. You can manually force a poll by clicking the “refresh” button in 
the “Server” tab of control panel. *

I am still unsure what you mean by this. When I tried modifying 
the $:/StoryList file, it did not change which tiddlers were open. Nothing 
I could do helped. Not refreshing, not restarting the server, and not 
clicking the "refresh" button in the "server" tab as you suggested. In 
fact, to quote the help tiddlers themselves: 

"The $:/StoryList 
<http://tiddlywiki.com/static/%2524%253A%252FStoryList.html> tiddler is an 
example of a StateTiddler <http://tiddlywiki.com/static/StateTiddler.html>: 
a tiddler that is used to hold the state of the user interface. Changes to 
the user interface are made indirectly, by changing the underlying state 
tiddlers, and letting TiddlyWiki 
<http://tiddlywiki.com/static/TiddlyWiki.html> ripple the changes through 
the user interface." 

To be honest, I'm not sure I understand entirely. But what I do know is 
that $:/StoryList is fundamentally different from other tiddlers.

In the end, I accomplished my goal by injecting the javascript I mentioned 
above into the page through a Chrome extension. I have the injected script 
itself running on a separate server, so I can make changes to it and 
automate it.

Thanks again for your ideas, and for making such a versatile program.

Best,
Matt

On Monday, February 20, 2017 at 7:40:27 AM UTC-5, Jeremy Ruston wrote:
>
> Hi Matt
>
> Well I was going to post some of my updated findings and ask again for 
> help, when all of a sudden I stumbled upon what may be the answer. All I 
> had to do was run this javascript snippet in Chrome:
>
> var storyList = "TiddlerIWantToOpen"
> $tw.wiki.addTiddler({title: "$:/StoryList", text: "", list: 
> storyList},$tw.wiki.getModificationFields());
>
>
> If you look at the “network” tab of developer tools while you run that 
> snippet you’ll see that it generates the same underlying HTTP request as 
> we’ve discussed earlier in the thread.
>
> This works perfectly. Now I am just looking for a way to automate the 
> running of this snippet. (Does anyone happen to know how one can automate a 
> javascript snippet in Chrome?)
>
>
> Chrome isn’t particularly easy to automate; you’d probably need to write 
> an extension.
>
> Is there a reason why all of the http stuff was suggested? This seems like 
> a more direct solution.
>
>
> Because your original post mentioned that you wanted to do display a 
> tiddler “from an external script”. The most direct way for an external 
> script to interact with TiddlyWiki under Node.js is the HTTP interface.
>
> The issue you ran into whereby the change you made on the server wasn’t 
> propagated to the browser is because the default polling interval is 60 
> seconds. You can manually force a poll by clicking the “refresh” button in 
> the “Server” tab of control panel. 
>
> Best wishes
>
> Jeremy.
>
>
> On Wednesday, February 15, 2017 at 7:11:00 PM UTC-5, Matt Groth wrote:
>>
>> Hi Jeremy,
>>
>> You're right, the regular http.request was the way to go. After I lot of 
>> fiddling, I managed to get update tiddlers with normal HTTP requests!
>>
>> When I send a request, I see this terminal output:
>>
>> syncer-server: Dispatching 'save' task: $:/StoryList
>> FileSystem: Saved file /Users/Matt/TiddlyMusic/tiddlers/$__StoryList.tid 
>>
>>
>> While the .tid file is updated instantly, my TiddlyWiki in Chrome does 
>> not sync with the server until I interact with it in some way, such as 
>> opening or closing a tiddler. Then, I see the above terminal output again 
>> and the changes from my HTTP request appear. 
>>
>> However, changes to $:/StoryList do not sync at all, so I am still unable 
>> to automate the opening and closing of tiddlers. I have my $:/StoryList.tid 
>> text file open, and the 'list' property is changed in that file to exactly 
>> what I want. Also, the above terminal output occurs. However, when I do 
>> anything to my ope

Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-19 Thread Matt Groth
Well I was going to post some of my updated findings and ask again for 
help, when all of a sudden I stumbled upon what may be the answer. All I 
had to do was run this javascript snippet in Chrome:

var storyList = "TiddlerIWantToOpen"
$tw.wiki.addTiddler({title: "$:/StoryList", text: "", list: 
storyList},$tw.wiki.getModificationFields());

This works perfectly. Now I am just looking for a way to automate the 
running of this snippet. (Does anyone happen to know how one can automate a 
javascript snippet in Chrome?)

Is there a reason why all of the http stuff was suggested? This seems like 
a more direct solution.

On Wednesday, February 15, 2017 at 7:11:00 PM UTC-5, Matt Groth wrote:
>
> Hi Jeremy,
>
> You're right, the regular http.request was the way to go. After I lot of 
> fiddling, I managed to get update tiddlers with normal HTTP requests!
>
> When I send a request, I see this terminal output:
>
> syncer-server: Dispatching 'save' task: $:/StoryList
> FileSystem: Saved file /Users/Matt/TiddlyMusic/tiddlers/$__StoryList.tid 
>
>
> While the .tid file is updated instantly, my TiddlyWiki in Chrome does not 
> sync with the server until I interact with it in some way, such as opening 
> or closing a tiddler. Then, I see the above terminal output again and the 
> changes from my HTTP request appear. 
>
> However, changes to $:/StoryList do not sync at all, so I am still unable 
> to automate the opening and closing of tiddlers. I have my $:/StoryList.tid 
> text file open, and the 'list' property is changed in that file to exactly 
> what I want. Also, the above terminal output occurs. However, when I do 
> anything to my opened TiddlyWiki, whether it involves opening and closing 
> tiddlers or not, the currently opened tiddlers in my browser simply 
> overwrite whatever was in $_StoryList.tid previously.
>
> How can I command TiddlyWiki in my browser to load changes to tiddler 
> values, including $_StoryList.tid?
>
> Thanks,
> Matt
>
> On Tuesday, February 14, 2017 at 9:43:08 AM UTC-5, Jeremy Ruston wrote:
>>
>> Hi Matt
>>
>> On 14 Feb 2017, at 13:32, Matt Groth <mgro...@gmail.com> wrote:
>>
>> The http.get request can also be seen in my network manager. Do you know 
>> why the http.post might not be working, given that http.get does work?
>>
>>
>> I’m not familiar with the http-post library that you’re using; perhaps 
>> it’s doing something funky. I’d be inclined to just use the http module 
>> unadorned.
>>
>> Best wishes
>>
>> Jeremy
>>
>

-- 
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/9248c985-8fc3-4da7-b5a4-49961a938cd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-15 Thread Matt Groth
Hi Jeremy,

You're right, the regular http.request was the way to go. After I lot of 
fiddling, I managed to get update tiddlers with normal HTTP requests!

When I send a request, I see this terminal output:
'syncer-server: Dispatching 'save' task: $:/StoryList

FileSystem: Saved file /Users/Matt/TiddlyMusic/tiddlers/$__StoryList.tid'

While the .tid file is updated instantly, my TiddlyWiki in Chrome does not. 
Rather, the TiddlyWiki in my browser does not change until I interact with 
it in some way, such as opening or closing a tiddler. Then, I see the above 
terminal output again and the changes from my HTTP request appear. 

However, changes to $:/StoryList do not sync at all, so I am still unable 
to automate the opening and closing of tiddlers. I have my $:/StoryList.tid 
text file open, and the 'list' property is changed in that file to exactly 
what I want. Also, the above terminal output occurs. However, when I do 
anything to my opened TiddlyWiki, whether it involves opening and closing 
tiddlers or not, the currently opened tiddlers in my browser simply 
overwrite whatever was in $_StoryList.tid previously.

How can I command TiddlyWiki in my browser to load changes to tiddler 
values, including $_StoryList.tid?

Thanks,
Matt

On Tuesday, February 14, 2017 at 9:43:08 AM UTC-5, Jeremy Ruston wrote:
>
> Hi Matt
>
> On 14 Feb 2017, at 13:32, Matt Groth <mgro...@gmail.com> wrote:
>
> The http.get request can also be seen in my network manager. Do you know 
> why the http.post might not be working, given that http.get does work?
>
>
> I’m not familiar with the http-post library that you’re using; perhaps 
> it’s doing something funky. I’d be inclined to just use the http module 
> unadorned.
>
> Best wishes
>
> Jeremy
>

-- 
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/739b0f8c-39e5-4482-88f2-2a2b0cf9a168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-14 Thread Matt Groth

Hi Jeremy,

Thank you for explaining to me how data is sent over the network. 
Unfortunately, I'm still having a connection issue.

The code you posted continues to run without affecting my open 
TiddlyWiki, leaving a trace in my network manager, or producing an error.

On the other hand, I can connect using http.get:

var http = require('http');

ttp.get('http://127.0.0.1:8080/recipes/default/tiddlers/testing', 
function(res) {
  console.log("Got response: " + res.statusCode);
  console.log(res.headers);
}).on('error', function(e) {
console.log("Got error: " + e.message);
});

This produces the output:

Got response: 200

{ 'content-type': 'application/json',

  date: 'Tue, 14 Feb 2017 13:25:39 GMT',

  connection: 'close',

  'transfer-encoding': 'chunked' }

The http.get request can also be seen in my network manager. Do you know 
why the http.post might not be working, given that http.get does work?

I realized after your last post that you are the creator of TW. Thanks for 
all of the work you put in to making such a welcoming community! I'm very 
excited to learn more.

On Tuesday, February 14, 2017 at 3:32:32 AM UTC-5, Jeremy Ruston wrote:
>
> Hi Matt
>
> Firstly, apologies for the delayed reply.
>
> I spent a lot of time messing around and searching the internet to try to 
> learn how to make an http request.
>
>
> That pretty much sums up what software developers do :)
>
> This is the what I've managed to come up with:
>
>
> That’s pretty close. Try this (untested):
>
> console.log('pleasework starting');
>
> var http = require('http');
> http.post = require('http-post');
>
> var newTid = {
> text: "Tiddler text",
> title: "WillThisWork",
> type: "text/vnd.tiddlywiki"
> };
>
> http.post('http://127.0.0.1:8080/recipes/default/tiddlers/WillThisWork', 
> JSON.stringify(newTid), function(res){
> res.setEncoding('utf8');
> res.on('data', function(chunk) {
> console.log(chunk);
> });
> });
>
> The general idea is to compose the tiddler as a JavaScript object, and 
> then use JSON.stringify() to convert it to a JSON string for sending over 
> the network.
>
> Best wishes
>
> Jeremy
>
>
>
> console.log('pleasework starting');
>
> var http = require('http');
> http.post = require('http-post');
>
> var newTidText = '{' +
> '"text": "Tiddler text",' +
> '"title": "WillThisWork",' +
> '"type": "text/vnd.tiddlywiki"' +
> '}';
>
> //var newTid = JSON.parse(newTidText);
>
> http.post('http://127.0.0.1:8080/recipes/default/tiddlers/WillThisWork', 
> newTidText, function(res){
> res.setEncoding('utf8');
> res.on('data', function(chunk) {
> console.log(chunk);
> });
> });
>
> I commented out JSON.parse because I think it might not be necessary, but 
> I'm not sure. I found a program to watch network traffic, but I can't seem 
> to do anything that this program will respond to.
>
> So in terminal, I do:
>
> node pleasework.js
>
> And it gives the output:
>
> pleasework starting
>
> but still, I don't think anything is going through to my TiddlyWiki 
> server. Meanwhile, whenever I do anything in my TiddlyWiki, the program 
> picks it up and shows me all of the details. So I know exactly what I am 
> looking for, but there must be something missing in my javascript code.
>
> What am I missing?
>
>
> On Friday, February 10, 2017 at 11:23:59 PM UTC-5, Matt Groth wrote:
>>
>> Hi,
>>
>> I'm a beginner at programming. I just set up m tiddlywiki with Node.JS. 
>> I'm having trouble figuring out how to use commands to control TiddlyWiki. 
>> Can someone point me to a "Hello World" step by step tutorial of how to 
>> make command for TiddlyWiki using Node.JS? Specifically I would like to 
>> commands to open and close tiddlers, but in general I am having a lot of 
>> trouble finding guides or APIs or anything. 
>>
>> I also can't find any code to edit. Where is all the code that controls 
>> how Node.JS interacts with tiddlywiki? I've been searching my computer but 
>> can't find anything. My TiddlyWiki folder only has the .tid files and a 
>> .info file that doesn't seem too important.
>>
>
> -- 
> 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

[tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-13 Thread Matt Groth
I spent a lot of time messing around and searching the internet to try to 
learn how to make an http request. This is the what I've managed to come up 
with:

console.log('pleasework starting');

var http = require('http');
http.post = require('http-post');

var newTidText = '{' +
'"text": "Tiddler text",' +
'"title": "WillThisWork",' +
'"type": "text/vnd.tiddlywiki"' +
'}';

//var newTid = JSON.parse(newTidText);

http.post('http://127.0.0.1:8080/recipes/default/tiddlers/WillThisWork', 
newTidText, function(res){
res.setEncoding('utf8');
res.on('data', function(chunk) {
console.log(chunk);
});
});

I commented out JSON.parse because I think it might not be necessary, but 
I'm not sure. I found a program to watch network traffic, but I can't seem 
to do anything that this program will respond to.

So in terminal, I do:

node pleasework.js

And it gives the output:

pleasework starting

but still, I don't think anything is going through to my TiddlyWiki server. 
Meanwhile, whenever I do anything in my TiddlyWiki, the program picks it up 
and shows me all of the details. So I know exactly what I am looking for, 
but there must be something missing in my javascript code.

What am I missing?


On Friday, February 10, 2017 at 11:23:59 PM UTC-5, Matt Groth wrote:
>
> Hi,
>
> I'm a beginner at programming. I just set up m tiddlywiki with Node.JS. 
> I'm having trouble figuring out how to use commands to control TiddlyWiki. 
> Can someone point me to a "Hello World" step by step tutorial of how to 
> make command for TiddlyWiki using Node.JS? Specifically I would like to 
> commands to open and close tiddlers, but in general I am having a lot of 
> trouble finding guides or APIs or anything. 
>
> I also can't find any code to edit. Where is all the code that controls 
> how Node.JS interacts with tiddlywiki? I've been searching my computer but 
> can't find anything. My TiddlyWiki folder only has the .tid files and a 
> .info file that doesn't seem too important.
>

-- 
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/dc5dd29d-a532-476d-a31c-0cfc074a1afe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-12 Thread Matt Groth
Hi Jeremy,

Everything you talked about is new to me, but I really want to learn.


*You can POST updates to tiddler values*

Would this  be a good tutorial to 
follow?


*client/server configuration of TiddlyWiki*

Are you referring to Node.js, or something else?


*monitoring network traffic in your browser developer tools*

I've never done this before. Would I use a program like this 
?

Thanks,
Matt


On Sunday, February 12, 2017 at 9:00:50 AM UTC-5, Jeremy Ruston wrote:
>
> Hi Matt
>
> I really like how it's going so far, but the only thing keeping it from 
> being a seamless integration with Spotify is that I have to manually open 
> the song tiddler every time a new song plays and close the last one.
>
> Almost everything is set up. I have an AppleScript that triggers when a 
> new Spotify song plays which can get the info required to find the tiddler 
> associated with the song. All I need now is some way to command that 
> tiddler to open and all others to close.
>
>
> I think the way to do this is to use the TW5 HTTP API. You can POST 
> updates to tiddler values; for example, updating $:/StoryList will update 
> which tiddlers are shown in the story river. You can explore the API by 
> running the client/server configuration of TiddlyWiki and monitoring 
> network traffic in your browser developer tools as you perform operations 
> on tiddlers.
>
> Best wishes
>
> Jeremy.
>
>
> Thanks,
> Matt
>
>
> On Saturday, February 11, 2017 at 4:22:19 AM UTC-5, PMario wrote:
>>
>> Hi Matt,
>>
>> Can you describe a bit closer, what you try to achieve? ... 
>>
>> opening and closing tiddlers from the command line is not the purpose of 
>> the tw node version.
>>
>> It's mainly used to "compile" file TiddlyWikis and to run the test server.
>> -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+...@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/fc989cb4-4617-4173-b3e7-e8283481d0e6%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/8eb41aa4-fc82-4429-ae13-e2a3b72e76d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-11 Thread Matt Groth
Hi PMario,

I'm trying to automate TiddlyWiki from external scripts in whatever way 
possible. I have a system set up that is integrated with Spotify so my 
TiddlyWiki is its own little music organizer. 

Node.js helped me a lot because it gave me the option to create.tid files 
which can automatically be created and imported into my tiddlywiki.

I really like how it's going so far, but the only thing keeping it from 
being a seamless integration with Spotify is that I have to manually open 
the song tiddler every time a new song plays and close the last one.

Almost everything is set up. I have an AppleScript that triggers when a new 
Spotify song plays which can get the info required to find the tiddler 
associated with the song. All I need now is some way to command that 
tiddler to open and all others to close.

Thanks,
Matt


On Saturday, February 11, 2017 at 4:22:19 AM UTC-5, PMario wrote:
>
> Hi Matt,
>
> Can you describe a bit closer, what you try to achieve? ... 
>
> opening and closing tiddlers from the command line is not the purpose of 
> the tw node version.
>
> It's mainly used to "compile" file TiddlyWikis and to run the test server.
> -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/fc989cb4-4617-4173-b3e7-e8283481d0e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to open Tiddler from command line (I am running TiddlyWiki on Node.JS)

2017-02-10 Thread Matt Groth
Hi,

I'm a beginner at programming. I just set up m tiddlywiki with Node.JS. I'm 
having trouble figuring out how to use commands to control TiddlyWiki. Can 
someone point me to a "Hello World" step by step tutorial of how to make 
command for TiddlyWiki using Node.JS? Specifically I would like to commands 
to open and close tiddlers, but in general I am having a lot of trouble 
finding guides or APIs or anything. 

I also can't find any code to edit. Where is all the code that controls how 
Node.JS interacts with tiddlywiki? I've been searching my computer but 
can't find anything. My TiddlyWiki folder only has the .tid files and a 
.info file that doesn't seem too important.

-- 
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/66386d17-a9e2-418a-ab05-a628339d8858%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Where can I find basic CSS syntax?

2016-11-22 Thread Matt Groth
I'm a beginner to both HTML and CSS, but I've already figured out the steps 
to getting to $:/tags/Stylesheet. I'm now struggling to find all of the 
syntax codes I need in the body of this tiddler to make the changes I want. 

I know the basics, in that I have to paste an RGB code like ##22, but I 
don't know what to put this code into.

Specifically, I'm looking to:

   - Change the border color for tiddlers
   - change the text colors throughout my tiddlywiki
   - change the color of new tags
   - change the background color of the "draft" or "edit tiddler" windows, 
   which turn out white even if I change the background.

In general, does anyone know where I can find a list of all the syntax 
codes I might need in a Stylesheet?

-- 
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/afdd19d0-55ef-44e3-b683-71642ec2f200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Is there a way to filter tiddlers by number of tags? (TW5)

2016-11-22 Thread Matt Groth
Just what I needed, thanks!

On Tuesday, November 22, 2016 at 6:20:59 AM UTC-5, Jed Carty wrote:
>
> This will show tiddlers with at least 5 tags. Changing 5 will give you the 
> other tiddlers:
>
> <$set name=BreakPoint value=5>
> <$list filter='[!is[system]has[tags]]' variable=ThisTiddler>
> <$list filter='[tags[]nth]'>
> <>
> 
> 
> 
>
> To get tiddlers with fewer tags use this:
>
> <$set name=BreakPoint value=5>
> <$list filter='[!is[system]has[tags]]' variable=ThisTiddler>
> <$list filter='[tags[]nth]' emptyMessage="""<
> >""">
> 
> 
> 
> 
>
>
>

-- 
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/30159807-5d23-4d59-954a-18df67ac3964%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a way to filter tiddlers by number of tags? (TW5)

2016-11-21 Thread Matt Groth
Hi,

I'd like to filter my tiddlers so I can identify those with more or fewer 
tags. Is this possible, and if so how can I do it?

-- 
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/d1ce3dd5-c21c-4420-a82f-04b0bff12f32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.