Re: [tw5] Headless Tiddlyserver on Pi

2018-08-06 Thread Arlen Beiler
The fact that you're running on a Pi instead of Android makes a world of
difference. Just Google how to check what process is listening on a
specific interface on Linux.

On Tue, Aug 7, 2018 at 1:33 AM Ste Wilson  wrote:

>
> I've followed https://www.didaxy.com/tiddlyserver-on-the-raspberry-pi to
> try and set up tiddly server.including using the settings.json file there:
>
> {
> "tree": {
> "pi_everything": "/",
> "pi_public": "/Public"
> },
> "types":{
> "htmlfile": ["htm", "html"]
> },
> "username": "",
> "password": "",
> "host": "0.0.0.0",
> "port": ,
> "backupDirectory": ""
> }
>
>
> Tiddly server sits in /home/pi/tiddlyserver/TiddlyServer/
>
> running node server.js gives:
>
> Settings file: /home/pi/tiddlyserver/TiddlyServer/settings.json
>  APP 2018-08-06 17:08:37 server localhost listening
>  APP 2018-08-06 17:08:37 server network error: listen EADDRINUSE 0.0.0.0:
> 
>  APP 2018-08-06 17:08:37 server network stack: Error: listen EADDRINUSE
> 0.0.0.0:
>  at Object._errnoException (util.js:992:11)
>  at _exceptionWithHostPort (util.js:1014:20)
>  at Server.setupListenHandle [as _listen2] (
> net.js:1355:14)
>  at listenInCluster (net.js:1396:12)
>  at doListen (net.js:1505:7)
>  at _combinedTickCallback (internal/process/
> next_tick.js:141:11)
>  at process._tickCallback (internal/process/
> next_tick.js:180:9)
>  at Function.Module.runMain (module.js:695:11)
>  at startup (bootstrap_node.js:191:16)
>  at bootstrap_node.js:612:3
>  APP 2018-08-06 17:08:37 server network closed
>  APP 2018-08-06 17:08:37 server localhost closed
>
> Changing the port from 888 to something else seems to make no difference.
> Running on local and opening with links browser seems to be fine, but
> links is a little...limited :)
>
> I appreciate your already looking at this Arlen, but i thought i'd report
> in full.
> Cheers
>
> Ste
>
> --
> 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/740519ab-06c2-425c-8597-efea561d40c2%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/CAJ1vdSTiGPoKbGbxwGrSAsCSbS%2BpcsEJGasnu%2B2hNK_ZHoLvDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread TonyM
Folks,

I found a method to sort a set of items by a count result which is only 
found within a loop. Using my previously posted data, I believe it can be 
adapted for the problem at hand.

It assumes the fruit do not have spaces in their name which would be true 
if this is extracted from fieldnames.

The sort-me generates a list with the count as the prefix, and <> 
is used to create a filter that is then sorted in reverse numerical order.

\define sort-me()
<$list filter="[all[]tag[fruit]!sort[]]" variable=fruit>
  <$list filter="[tagcount[]]" variable=num>
  <>-<>
  

\end
<$wikify name=sort-filter text="<> +[!nsort[]]">
<$list filter=<> >





The Result is 

4-Apple 
3-Orange 
1-Mango 


Of course this could be displayed as text or non-links and possibly divided 
back into the number and fruit name.

Regards
Tony

On Tuesday, August 7, 2018 at 12:28:40 PM UTC+10, TonyM wrote:
>
> Here is a Small test data set of fruits and varieties attached.
>
> With the tiddler Fruit lists
> containing the question
>
> Regards
> Tony
>
> On Saturday, August 4, 2018 at 5:40:52 AM UTC+10, Dave wrote:
>>
>> Is there a way to sort the results of a filter by frequency of most 
>> common to single instance?
>>
>> E.g. let's say a filter puts out the following:
>>
>> Apple pear Orange
>> Pear 
>> Orange banana
>> Orange grapefruit
>>
>> How would you filter it further to result with something like this:
>>
>> Orange 3
>> Pear 2
>> Apple 
>> banana
>> Grapefruit
>>
>> Thanks,
>> - Dave
>>
>>

-- 
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/3aff8087-b33d-4bbc-b32f-2bd8fa94189a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread 'Mark S.' via TiddlyWiki
Ok. I have a strategy that I think can do this. It will require additional 
tiddlers to keep track of tallies and stats (e.g. 2016-08-06.stats, 
2018-08-06.tallies) Here's the plan, which is the existing code plus 
pseudo-code:

<$button>
<$list filter="[all[current]fields[]]" variable="fieldname">
<$list filter="[all[current]getprefix[1]suffix[1]]" 
variable="dummy" >
<$list filter="[titlegetindex[origin]]" variable="origin">
CONVERT ORIGIN INTO TITLE LIST
<$LIST STEP THROUGH ALL POSSIBLE ORIGIN TYPES>
WHEN FIELD POSSIBLE ORIGIN MATCHES CURRENT ORIGIN, ADD TO ORIGIN FIELD OF 
TALLIES (e.g. 2018-08-06.tallies!!cbm = l.stork.right 
chest.fall )




<$LIST>
GO THROUGH ALL FIELDS (less created, modified, type) OF 2018-08-06.tallies 
AND FIND COUNTS
PUT COUNTS IN stats TIDDLER (e.g. 2018-08-06.stats!!cbm = 3)



NOW YOU CAN EXTRACT ORIGINS AND COUNTS FROM 2018-08-06.stats AND SORT 
DIRECTLY




Other possible steps that might eventually be needed include clearing the 
tallies and stats for the visit date before doing new numbers.

There also needs to be a list of all possible origins. The easiest way to 
do that is to create tiddlers for each origin and tag it as "origin".

Fleshing this out would take a bit of time, but I think this creates a 
plausible framework.

I had no idea storks were still used in medicine.

-- Mark

On Monday, August 6, 2018 at 12:00:23 PM UTC-7, Dave wrote:
>
> Learn something new every day :)
>
> I think I tagged all the relevant tiddlers - hope it works.  I only tagged 
> (included) the test tiddlers that are checked off in the example tiddler 
> "2018-08-06" and represented in the fields of "2018-08-06.tests". 
>
> Here's the general rundown of what I'm trying to acheive:
>
> I want to be able to run various sets of tests for patients (I'm a 
> chiropractor) as needed.  I have computers in each treatment room and 
> currently just record the visit SOAP notes (Subjective Objective Assessment 
> & Plan) in a daily visit column of a spreadsheet.  Knowing what TW can do 
> I've always yearned to be able to make something that can make use of the 
> vast potential that TW provides to a lowly non-programmer type like me.
>
> Anyway, the basic unit for most visits is the "Visit", i.e. a tiddler 
> named by today's date.  Thanks to the recent MuuriTouch plugins I can now 
> easily produce a layout the way I'd like with a "control panel" of crucial 
> info tiddlers with various reports of previous visit summaries, pertinent 
> medical history etc.  This set of tiddlers here is my first serious attempt 
> to get something to a working version I could actually use in the clinic.  
> Its basically a 2-3 minute set of neurologic type tests (with more of a 
> chiropractic slant than a "brain pathology" slant)
>
> So the Visit tiddler "2018-08-06" contains a link to the neurology tests 
> tiddler "NeuroScan", and the individual tests from that tiddler place 
> results from the tests into a "data" tiddler named the same as the visit 
> tiddler plus ".tests".  That way there's no stuttering as you click a 
> checkbox and the tiddler "reloads" if the results were assigned to the same 
> tiddler.  The individual tests are constructed by passing the test names to 
> the test macros to go get the info from data tiddlers named after the tests 
> themselves.  Right now I have the tiddler "NeuroScan" kind of "hard 
> written" as is, but eventually I would like to have the possible tests 
> dynamically generated as more information slowly gets added to that day's 
> visit and correlates with whatever the relevant recent and distant medical 
> history has already been recorded.
>
> So my current task is to get the ability to see the suggested origins 
> (origin of the area of the central nervous system that may be the source of 
> the patients problems) and indications (things that you can do to treat the 
> patient to address the problems you're finding).
>
> What you've helped me with is get a weighted list of all the most likely 
> origins of the problem, in this case "pmrf" (ponto-medullary reticular 
> formation).  That example is in the "2018-08-06.tests" tiddler.  My next 
> thing I'll try to figure out is how to translate "cbm cbm.midline pmrf pmrf 
> opp 
> motor cortex pmrf cn8" into "pmrf (3) cmb (2)... etc".
>
> Actually, just writing this I realized that button you helped make seems 
> to only print out single instances, not the repeated findings I was hoping 
> to somehow sort out to suggest the relatively more heavily weighted 
> suggestions for origin... back to google, ha ha.
>
> Anyway, thank you both for being patient with me as I muddle through this 
> :)
>

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

[tw5] Re: Sort Filter results by most common

2018-08-06 Thread TonyM
Here is a Small test data set of fruits and varieties attached.

With the tiddler Fruit lists
containing the question

Regards
Tony

On Saturday, August 4, 2018 at 5:40:52 AM UTC+10, Dave wrote:
>
> Is there a way to sort the results of a filter by frequency of most common 
> to single instance?
>
> E.g. let's say a filter puts out the following:
>
> Apple pear Orange
> Pear 
> Orange banana
> Orange grapefruit
>
> How would you filter it further to result with something like this:
>
> Orange 3
> Pear 2
> Apple 
> banana
> Grapefruit
>
> Thanks,
> - Dave
>
>

-- 
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/4c5e8a26-4683-4a65-a42d-7b797dd44bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


fruit-test-data.bundle.json
Description: application/json


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread TonyM
Dave,

I am still on this case but your real world example is too much for me. 
Your original fruits example would be a good one for you (and us) to work 
on until you find the method. 

It is critical when trying to break barriers or solve problems to reduce 
the complexity and the "cognitive load" of the problem. Step back for a 
bit, solve the problem then introduce the solution back into the real world.

Regards
Tony

On Tuesday, August 7, 2018 at 11:00:10 AM UTC+10, Dave wrote:
>
> I'm wondering if the listops "append" might be of use (couldn't get that 
> to work though)
>
> I also tried this:
> \define myresults()
> <$list filter="[all[current]fields[]]" variable="fieldname">
> <$list filter="[all[current]getprefix[1]suffix[1]]" variable=
> "dummy" >
> <$list filter="[titlegetindex[origin]]" variable="origin">
> <>
> 
> 
> 
> \end
>
> !origin
>
> <$button>
> check
> <$action-setfield $field="aaa" $value=<>/>
> 
>
> <$view field="aaa"/>
>
>
> but it just puts all the "code" from the myresults macro into the field :(
>
>
>
>
>
>
> If this were bash, I'd be looking at filtering out carriage returns from 
> the 
> <$list filter="[titlegetindex[origin]]" variable="origin">
>
> part, and then going back to the version with 
> <$action-setfield $field="aaa" $value=<>/>
>
> Are carriage returns an issue with TW? They would be represented as the 
> breaks between the sets of data coming from the data 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/080ebf59-3da7-40ab-aeab-76a93cc50f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: toc-selective-expandable macro sort option

2018-08-06 Thread TonyM
Mohammad,

Build your own toc macros with the first level sorted as desired, then 
second and subsequent levels with no sorting, and the recursive process 
mentioned by myself recently.

I have being looking for some example code I have but have not found it yet.

Regards
Tony

On Tuesday, August 7, 2018 at 4:43:36 AM UTC+10, Mohammad wrote:
>
> How is it possible to use toc-selective-expandable  and 
>
>- Sort the first level by caption
>- The second and third level by manual order in list filed
>
>
> *Mohammad*
>

-- 
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/60e6909b-727d-44f6-ada4-4c50c02823cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: toc-selective-expandable issue! What is wrong?

2018-08-06 Thread TonyM
Mohammad,

Whilst using text references in fields has some value I believe to use them 
you will need to explicitly wikify or transclude them for results. In the 
above case your caption is basically saying you have no caption just use 
the title. Which is the way tiddlywiki tends to behave anyway in a number 
of places like sidebars and lists. To expect this to occur on demand in the 
middle of a macro toc-selective-expandable may be over enthusiastic.

If you look into the toc macros provided you may discover how it uses 
recursion - basically repeatedly calling itself to process each tiddlers 
tags and the list process falls back to the previous level when the tags 
run out, ensuring no infinite loop. 

The reason I say this, is I believe you may gain the control you need to 
address your above requirements if you build your own toc macro equivalent.

On a side note: Working on my edit fields solution I have provided the 
caption field with a button to populate it with the current tiddler title, 
which I would expect people to edit for a "shorter" name for lists.

Regards
Tony


On Tuesday, August 7, 2018 at 3:57:36 AM UTC+10, Mohammad wrote:
>
> Consider the following example
>
> 
> <>
> 
>
> Then Assume you have a tiddler as below
> title: Test
> tags: myTag
> caption: {{!!title}}
> some text
>
> Note to the caption, the macro toc-selective-expandable will consider 
> this tiddler caption starts with { while it should wikify the text 
> reference and sort by the result.
>
>
> Mohammad
>

-- 
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/77135b81-a426-475f-a7fb-f2c58947a728%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread Dave
I'm wondering if the listops "append" might be of use (couldn't get that to 
work though)

I also tried this:
\define myresults()
<$list filter="[all[current]fields[]]" variable="fieldname">
<$list filter="[all[current]getprefix[1]suffix[1]]" variable=
"dummy" >
<$list filter="[titlegetindex[origin]]" variable="origin">
<>



\end

!origin

<$button>
check
<$action-setfield $field="aaa" $value=<>/>


<$view field="aaa"/>


but it just puts all the "code" from the myresults macro into the field :(






If this were bash, I'd be looking at filtering out carriage returns from 
the 
<$list filter="[titlegetindex[origin]]" variable="origin">

part, and then going back to the version with 
<$action-setfield $field="aaa" $value=<>/>

Are carriage returns an issue with TW? They would be represented as the 
breaks between the sets of data coming from the data 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/620dcb26-2763-4cc3-a460-0bd5e4a1f770%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread TonyM
Folks,

I know you are discussing keyboard access to search here but I just wanted 
to comment that "search" is increasingly being used as a fundamental tool 
within environments, whilst we have the search operator and filters, even 
regex in tiddlywiki and or its plugins it is not very mature from a usage 
perspective. If one is reporting, or even listing content in your wikis 
design search can be a powerful solution and in my view we have not yet 
explored that far enough. Search can make navigation easier (its common 
use) but it can also simplify dealing with sets of data and even defining 
the content of sets we later process further. 

Of course we must also be careful not to rely on search so much that we 
diminish the value of structured and tagged data handling.

Part of improving search is to make its use much more easily accessible, 
and reusable such as searches with saved filters opening or reducing the 
scope of the search.

Regards
Tony
 

> @DemoniWaari also mentioned this search-functionality. I think I'll add 
>> the quick-search by keyboard function and then we can discuss the content 
>> of the search results...
>>
>> Thanks for your feedback and thoughts! 
>>
> I am very excited by this. I think it is actually an entirely different 
> problem than keyboard navigation, and arguably an even larger problem. It 
> would, of course, be an enormous contribution. Advanced search that a user 
> can easily tailor to the structures they build in their own wiki is 
> necessary. This is where the flexibility of Tiddlywiki may continue to 
> shine for a long time to come.
>

-- 
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/0e1de667-7d2e-46aa-9a34-0b201199025d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Use a button to create a tiddler in view mode: Is this legal or illegal?

2018-08-06 Thread TonyM
Thinking about conventions and methods. In the above examples whats with 
the <<_title>>?

Is this not going to confuse the use of <<__var__>> ?

Or do I not know this convention perhaps from JavaScript?

Tony

On Monday, August 6, 2018 at 3:45:20 AM UTC+10, Mohammad wrote:
>
> Hello FrD,
>
>  I like your solution! It uses widgets for the purpose they are designed 
> (here you used the meaningful action-setfield and your code is much more 
> clearer than what I wrote!
> I use your code!
>
> Thank you
> *Mohammad*
>

-- 
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/9aa1f540-051b-4c6d-a13a-2d0cc4943df3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Firefox v61, can we just save over our current Wiki file without all the dialogs?

2018-08-06 Thread h0p3
Awesomeness.

Also, close tab appears to be working. The "creep" factor (where it grows 
without intervention) I won't be able to test until tomorrow. 

On Monday, August 6, 2018 at 3:45:52 PM UTC-4, PMario wrote:
>
> Hi h0p3,
>
> I think I found the problem. I'll post a link to a beta version soon, so 
> you can test it. Once it works, I'll create a new release version. 
>
> A workaround is: *Close and reopen the TAB *... It shouldn't be needed to 
> close the FF App.
>
> -mario
>

-- 
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/af6c3f5b-7501-4c5a-969d-c7ee93429f7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread 'Mark S.' via TiddlyWiki
Well, here's how you can shadowize your own tiddlers:

https://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser

Note that you don't see the result of your plugin saving until you reload. 
It seems to me that it would fairly straight forward to make a javascript 
"cheater" macro and button that could add new items to your "save-me" 
Plugin. (cheater because macros aren't supposed to modify things, but there 
you go).

But I don't think it will help as much as you think. So, something gets 
written over, and you realize the mistake and can roll it back. BUT, what 
about the new data that you had input that created the mistake? Don't you 
still want that? That's why the catch-it-when-you-edit might be the better 
all-up plan. 

Have fun,
-- Mark


On Monday, August 6, 2018 at 4:20:13 PM UTC-7, Mat wrote:
>
> Mark S. wrote:
>>
>> You could put a nested list inside the current list that checks for the 
>> prior existence and shows only link if it exists but shows the edit fields 
>> if it doesn't.
>>
>
> That's a neat idea. Will try to keep it in mind. :-)
>
> I'm still hoping for some more general approach to protect tiddlers 
> though. It probably is shadow tids like Mario suggests, but I'm not sure 
> how to shadowify individual tiddlers in a simple way. There ought to be a 
> simple tiddler tool button for it, but then again, what does it mean that 
> one tiddler is shadowified
>
> <:-) 
>

-- 
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/8b84cd11-c7c5-47cb-abb8-dd412ce0c835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread Dave
Right, I'm basically trying to reproduce the idea of a "tag cloud" but 
using terms from multiple data 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/d3af685c-23cb-4b06-88da-5d6c5bd15f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Feature request - canonical uri button.

2018-08-06 Thread Zachary Storer
Any progress with this?

On Friday, May 25, 2018 at 2:59:59 PM UTC-6, ste...@gmail.com wrote:
>
>
> On Wednesday, May 23, 2018 at 10:40:27 PM UTC+2, ste...@gmail.com wrote:
>>
>>
>>
>> Downside: I believe that a separate tiddler/drop area needs to be created 
>> for other image types, e.g. PNG. 
>>
>>
>> Here is an updated version of my code which allows users to pre-select a 
> file type (GIF, JPEG, PNG or SVG) before importing an image:
>
> \define embedded-image-actions()
> <$wikify name="tiddlercontent2" mode="inline" text='<>'>
> <$action-createtiddler $basetitle="New Image" _canonical_uri=<<
> tiddlercontent2>> type={{Embed Image}} $savetitle="Embed 
> Image!!tiddlertitle"/>
> <$action-navigate $to={{Embed Image!!tiddlertitle}}/>
> 
> \end
>
>
> <$droppable actions=<>>
> 
> Drop image 
> (<$list filter="[[Embed 
> Image]get[text]]+[removeprefix[image/]]">{{!!title}}) here div>
>  
> 
> Image type: 
> <$select tiddler='Embed Image'>
> GIF
> JPEG
> PNG
> SVG
> 
>
> Of course, automatic detection would be preferable.
>
> Cheers,
>
> Stef
>

-- 
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/93b1fd27-9310-4895-af83-e47d88847e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread Mat
Mark S. wrote:
>
> You could put a nested list inside the current list that checks for the 
> prior existence and shows only link if it exists but shows the edit fields 
> if it doesn't.
>

That's a neat idea. Will try to keep it in mind. :-)

I'm still hoping for some more general approach to protect tiddlers though. 
It probably is shadow tids like Mario suggests, but I'm not sure how to 
shadowify individual tiddlers in a simple way. There ought to be a simple 
tiddler tool button for it, but then again, what does it mean that one 
tiddler is shadowified

<:-) 

-- 
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/bb825426-9ce8-4b77-964f-a7da06c8a235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Concatenate transclusion as link?

2018-08-06 Thread Mat
Mark S. wrote:
>
> A widget is a kind of super power html tag.
>

That's a good description I haven't heard before!

<:-)

-- 
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/509b4dbf-927f-4bfa-a094-cb3d8fe48f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Concatenate transclusion as link?

2018-08-06 Thread Mat
Mat wrote:
>
> While I didn't study your description in detail, my spontaneous thought is 
> that you can try to use the WikifyWidget at some point before calling the 
> macro, i.e
>
> <$wikify name=foo text=<> />
>
>
(Doh! Did I write that?) You (or me for that matter) must not write 
shortform commands such as <<...>> (for macrocalls) and {{...}} (for 
transclusions) inside one another. So the above must be evaluated one at a 
time, or by nesting macros like I mentioned. I.e you set(widget) something 
to be that transclusion value and then you call for another macor that 
contains

<$wikify name=foo text=<> />


<:-)

-- 
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/5fc258d4-4f1e-4460-a768-09a562ccbac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread 'Mark S.' via TiddlyWiki
Umm... this may take more thinking. The listiops (as I learned last week) 
and almost anything to do with lists will compress repeat items into a 
single list. Very tidy. But not want you want in this case ... I think.

-- Mark

On Monday, August 6, 2018 at 12:00:23 PM UTC-7, Dave wrote:
>
> Learn something new every day :)
>
> I think I tagged all the relevant tiddlers - hope it works.  I only tagged 
> (included) the test tiddlers that are checked off in the example tiddler 
> "2018-08-06" and represented in the fields of "2018-08-06.tests". 
>
> Here's the general rundown of what I'm trying to acheive:
>
> I want to be able to run various sets of tests for patients (I'm a 
> chiropractor) as needed.  I have computers in each treatment room and 
> currently just record the visit SOAP notes (Subjective Objective Assessment 
> & Plan) in a daily visit column of a spreadsheet.  Knowing what TW can do 
> I've always yearned to be able to make something that can make use of the 
> vast potential that TW provides to a lowly non-programmer type like me.
>
> Anyway, the basic unit for most visits is the "Visit", i.e. a tiddler 
> named by today's date.  Thanks to the recent MuuriTouch plugins I can now 
> easily produce a layout the way I'd like with a "control panel" of crucial 
> info tiddlers with various reports of previous visit summaries, pertinent 
> medical history etc.  This set of tiddlers here is my first serious attempt 
> to get something to a working version I could actually use in the clinic.  
> Its basically a 2-3 minute set of neurologic type tests (with more of a 
> chiropractic slant than a "brain pathology" slant)
>
> So the Visit tiddler "2018-08-06" contains a link to the neurology tests 
> tiddler "NeuroScan", and the individual tests from that tiddler place 
> results from the tests into a "data" tiddler named the same as the visit 
> tiddler plus ".tests".  That way there's no stuttering as you click a 
> checkbox and the tiddler "reloads" if the results were assigned to the same 
> tiddler.  The individual tests are constructed by passing the test names to 
> the test macros to go get the info from data tiddlers named after the tests 
> themselves.  Right now I have the tiddler "NeuroScan" kind of "hard 
> written" as is, but eventually I would like to have the possible tests 
> dynamically generated as more information slowly gets added to that day's 
> visit and correlates with whatever the relevant recent and distant medical 
> history has already been recorded.
>
> So my current task is to get the ability to see the suggested origins 
> (origin of the area of the central nervous system that may be the source of 
> the patients problems) and indications (things that you can do to treat the 
> patient to address the problems you're finding).
>
> What you've helped me with is get a weighted list of all the most likely 
> origins of the problem, in this case "pmrf" (ponto-medullary reticular 
> formation).  That example is in the "2018-08-06.tests" tiddler.  My next 
> thing I'll try to figure out is how to translate "cbm cbm.midline pmrf pmrf 
> opp 
> motor cortex pmrf cn8" into "pmrf (3) cmb (2)... etc".
>
> Actually, just writing this I realized that button you helped make seems 
> to only print out single instances, not the repeated findings I was hoping 
> to somehow sort out to suggest the relatively more heavily weighted 
> suggestions for origin... back to google, ha ha.
>
> Anyway, thank you both for being patient with me as I muddle through this 
> :)
>

-- 
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/01bb9247-c81f-462e-8cae-478fb1defd76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread 'Mark S.' via TiddlyWiki
You could put a nested list inside the current list that checks for the 
prior existence and shows only link if it exists but shows the edit fields 
if it doesn't.

-- Mark

On Monday, August 6, 2018 at 2:39:44 PM UTC-7, Mat wrote:
>
>
> Since you're filling in forms, the form could hide the "Submit" button if 
>> the to-be-generated tiddler exists and replace it with a warning message.
>>
>
> hehe, no it's not proper forms. Its typically just some table I throw 
> together with EditTextWidgets for direct setting of field values, which 
> "incidentally" creates the tiddler if it didn't exist already. 
>
> 
> <$list filter="...">
> {{!!title}}<$edit-text field=foo/>
> 
> 
>
> ...that kinda thing. Even if I make the titles show as links I can miss 
> their existance when there are multiple such editors and I quickly 
> copy-paste stuff into them, then overwrites can happen and I won't really 
> notice.
>
> <:-)
>

-- 
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/0f47802b-ab81-4773-9e8e-bac765583ec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Concatenate transclusion as link?

2018-08-06 Thread 'Mark S.' via TiddlyWiki
A widget is a kind of super power html tag. So #1 won't work because you 
can't embed an html tag inside of an html tag.

#2 ... sorta kinda ought to work. But I avoid using <<>> macro notation 
with a parameter because so often it doesn't. I think it's because it wants 
and expects an actual string as the parameter, not an object to be rendered.

Transclusions and (plain) macros do get rendered inside of widgets before 
being used by the widget.

So, I think this variation should work:

\define atomfeed(burl)[img[MY_IMG]]
  <$macrocall $name=atomfeed burl={{dt##baseurl}} />

Good luck!
-- Mark

On Monday, August 6, 2018 at 1:25:31 PM UTC-7, R Zhao wrote:
>
> Hi guys,
>
> I'm a little new to tiddlywiki, and find some functionalities don't work 
> as I thought, including macro call and transclusion.
>
> The background is that I have a DataTiddler, which stores the baseurl of 
> the site (when published); let's call this `dt##baseurl`. I have a feed 
> plugin installed to generate atom feed, under `/atom.xml`, relative to the 
> baseurl. (Some may suspect I intend to make this site like a blog, and you 
> are right.)
>
> When I need to concatenate these two pieces of text together, as mentioned 
> elsewhere (e.g. official site), I need to use a helper macro to establish 
> the real concatenation of transclusion and string literal. (But I still 
> don't know why... Is this because of the processing engine's execution 
> order / lifecycle?)
> I succeeded to do this when using text as the visible content, through 
> `[[$text$|$baseurl$/atom.xml]]`.
>
> However, when I want to create a image which links to the atom feed, I 
> find no solution.
> I have to use `[img[MY_IMG]]` for this to work 
> (LinkWidget will link to tiddler only; `[[]]` syntax only works on text). 
> But if I apply the previous trick, neither of the follow methods work.
>
> Method 1:
>
> ```
>   \define atomfeed(burl) $burl$/atom.xml
>/>>[img[MY_IMG]]
> ```
>
> The $macrocall widget won't really work, and the resulting line is broken. 
> I guess this is because of the `/>`.
>
> Method 2:
>
> ```
>   \define atomfeed(burl) $burl$/atom.xml
>   >>[img[MY_IMG]]
> ```
>
> The macro will be evaluated, but the transclusion won't, resulting in a 
> link to "{{dt##baseurl}}/atom.xml".
>
> Method 3:
>
> ```
>   \define atomfeed(burl) $burl$/atom.xml
>   \define wrapatomfeed() <$macrocall $name=atomfeed burl={{dt##baseurl}} />
>   >>[img[MY_IMG]]
> ```
>
> The macro will be evaluated once, but the second macrocall won't be 
> evaluated at all.
>
>
> I also tried a few other combinations of these methods (e.g. replace the 
> 3rd method's wrap macro content to `<< >>`), but none of them worked.
> Anyone has any ideas?
>

-- 
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/55018533-ac80-40a0-9f16-adb0b3ed159f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A filed with multi-line edit box (textbox)

2018-08-06 Thread Mohammad
Ah This is also needs a minor correction

<$wikfiy name=note text={{!!note}}>
<>




On Tuesday, August 7, 2018 at 2:14:38 AM UTC+4:30, Mohammad wrote:
>
> Mat!
>
> The <$edittext shall be 
>
>> <$edit-text
>>
>
> Still I cant see note on the test tiddler tagged with slide!
>
>
> Mohammad 
>

-- 
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/3d5d69cc-9ecc-4ccb-b09a-7792467965bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A filed with multi-line edit box (textbox)

2018-08-06 Thread Mohammad
Mat!

The <$edittext shall be 

> <$edit-text
>

Still I cant see note on the test tiddler tagged with slide!


Mohammad 

-- 
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/ab466556-c16b-4616-8834-d8d6f5c89565%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread Mat


> Since you're filling in forms, the form could hide the "Submit" button if 
> the to-be-generated tiddler exists and replace it with a warning message.
>

hehe, no it's not proper forms. Its typically just some table I throw 
together with EditTextWidgets for direct setting of field values, which 
"incidentally" creates the tiddler if it didn't exist already. 


<$list filter="...">
{{!!title}}<$edit-text field=foo/>



...that kinda thing. Even if I make the titles show as links I can miss 
their existance when there are multiple such editors and I quickly 
copy-paste stuff into them, then overwrites can happen and I won't really 
notice.

<:-)

-- 
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/5524a72e-e333-4db1-b0e2-3488c6e01243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A filed with multi-line edit box (textbox)

2018-08-06 Thread Mohammad
Wow!
 Thank you Mat!
This is great! Let me to play and get back to you with my feedback.

Mohammad


On Tuesday, August 7, 2018 at 1:52:39 AM UTC+4:30, Mat wrote:
>
> You add a conditional viewtemplate.
>
> Here's the basic idea:
>
> title: edittemplate/note
> tags: $:/tags/EditTemplate
> list-after:
> text:
> <$list filter="[is[current]tag[slide]]">
> <$edittext field=note tag=textarea>
> 
>
> title: viewtemplate/note
> tags: $:/tags/ViewTemplate
> list-after:
> text:
> <$list filter="[is[current]tag[slide]]">
> 
> <$wikfiy name=note text={{!!note}}>
> <>
> 
> 
>
> title: stylesheet/note
> tags: $:/tags/Stylesheet
> text:
> .hover-to-show {min-height:1em; font-size:0; visibility:hidden;}
> .hover-to-show:hover {font-size:inherit; visibility:visible;}
>
>
> Again, just the basic idea. I'm sure you'd have to fiddle with it to get 
> it to work properly (or at all - didn't try 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/4f009a6e-d2c6-4685-822b-5aa87cabdab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Concatenate transclusion as link?

2018-08-06 Thread Mat
While I didn't study your description in detail, my spontaneous thought is 
that you can try to use the WikifyWidget at some point before calling the 
macro, i.e

<$wikify name=foo text=<> />

...and then, inside the macro, you can call for this by using

$(foo)$

Another approach is to nest macros so that things evaluate gradually. That 
$(foo)$ syntax is a pretty powerful way to invoke a variable that was 
defined outside of the current macro.

<:-)


-- 
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/0cf9a81a-d23f-4584-86b1-fb37dc2c9938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A filed with multi-line edit box (textbox)

2018-08-06 Thread Mat
You add a conditional viewtemplate.

Here's the basic idea:

title: edittemplate/note
tags: $:/tags/EditTemplate
list-after:
text:
<$list filter="[is[current]tag[slide]]">
<$edittext field=note tag=textarea>


title: viewtemplate/note
tags: $:/tags/ViewTemplate
list-after:
text:
<$list filter="[is[current]tag[slide]]">

<$wikfiy name=note text={{!!note}}>
<>



title: stylesheet/note
tags: $:/tags/Stylesheet
text:
.hover-to-show {min-height:1em; font-size:0; visibility:hidden;}
.hover-to-show:hover {font-size:inherit; visibility:visible;}


Again, just the basic idea. I'm sure you'd have to fiddle with it to get it 
to work properly (or at all - didn't try 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/d8918999-f1f9-44ce-8be0-7fcd5a9937c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread 'Mark S.' via TiddlyWiki


On Monday, August 6, 2018 at 1:45:06 PM UTC-7, Mat wrote:
 

> Safety checks rather than actual prevention of overwrite might, yeah if 
> the circumstances allow. Thanks again.
>
> <:-)
>

Since you're filling in forms, the form could hide the "Submit" button if 
the to-be-generated tiddler exists and replace it with a warning message.

-- Mark

-- 
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/c3f020c8-8cc4-49c2-93fe-2d89f3e4edad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] A filed with multi-line edit box (textbox)

2018-08-06 Thread Mohammad
In TW each filed has a single line textbox to get its value. Is there any 
way to have a filed with multiline textbox?

*Purpose*:
 I want to add a note filed to all tiddlers tagged with *slide* and be able 
to show its wikified content by transclusion inside tiddler for example 
using a button or mouse hover.
I know there are some comment plugin like what is introduced in TW 
5.1.18-pre but I don't want such capability and such functionality.


Mohammad

-- 
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/cfd0f2f8-6e01-47f2-a3eb-cb0303a51d86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread Mat
PMario wrote:
>
>
> I'd go with the shadow tiddler approach. 
>


Yeah, thanks but if tiddlers are individually shadowified then they're 
not protected are they? I mean isn't a plugin at risk of being overwritten 
if one uses the same title? Or is a full page reload required for it to 
actually be saved as overwritten?

Plus... how would I shadowify tiddlers on an individual basis anyway 
without a lot of effort?

BTW I just got an idea; would it be possible to shadowify only fields, i.e 
the title fields!? I'm not sure this make sense at all but maybe it 
triggers some ideas :-)


Thanks for input Mario!

<:-)

-- 
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/873d9d0d-78bf-4de8-8a64-dd705bdef270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread Mat
On Monday, August 6, 2018 at 8:23:18 PM UTC+2, Mark S. wrote:
>
>  What do you mean by "generated" ? There's hmm ... 3 ways I can think of 
> to create tiddlers, one of which has tiddler-collision built-in. If you use 
> that (ActionCreateTiddlerWidget) then it will automatically make a new name 
> if there is an existing name.
>

The use case is this: I'm currently creating a bigger wiki to use in my 
work and I occasionally need some quick "special thing" like several tids 
with some extra pre-set fields or similar. So rather than go searching for 
a proper solution for this I whip up some button for it or some listwidget 
that makes a table with EditTextWidgets etc. This is what I mean with 
"generated". I often only have indirect control of the titles (e.g via a 
filter) and might assume they don't already exist.

ActionCreateTiddlerWidget - oddly, I'm not even sure I knew about this!!!? 
I think my default has been to use tm-new-tiddler or ActionSetFieldWidget. 
Thanks!


The other approach would be to check for the existence of a tiddler, and 
> skip creating it, perhaps making a report so you can handle it per case.
>

Safety checks rather than actual prevention of overwrite might, yeah if the 
circumstances allow. Thanks again.

<:-)

-- 
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/a1c56975-5b40-40bd-ba40-d4165f280903%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] Bob version 1.0.3 Sourdough Crumpets or It has been way too long

2018-08-06 Thread Ste Wilson
Inspired to ry again in my pi...
I tied following the plugin instructions but get to 

cp -r TiddlyWiki5/plugins/OokTech/Bob/BobWiki TiddlyWiki5/Wikis/BobWiki/


and receive

cp: cannot stat 'TiddlyWiki5/plugins/OokTech/Bob/BobWiki': No such file or 
directory

so from Tiddlywiki 5 folder i tried:

node ./tiddlywiki.js /Wikis/bobtest --init

And then in the Tiddlywiki5 folder
tiddlywiki Wikis/bobstars  --wsserver
which returned the error message
Error: Unknown command: wsserver

This was all done in a folder in /home.

I'd previously installed tiddlywiki through npm so thought i'd try the plug 
in route.  I found tidldly wiki hiding away in* 
/usr/lib/node_modules/tiddlywiki/ *(and linux users wonder why it's not 
taken over the world...)
in the plugins folder i created *OokTech/Bob *and 

git clone --depth=1 https://github.com/OokTech/TW5-Bob.git

to put the plug in in the correct place.

I then added the line *"OokTech/Bob" *into the plugins section of the info 
file of my existing (newly created) wiki. 

undefined:7
"OokTech/Bob"
^

SyntaxError: Unexpected string in JSON at position 174
at JSON.parse ()
at Object.$tw.loadWikiTiddlers (/usr/lib/node_modules/tiddlywiki/boot/
boot.js:1791:19)
at Object.$tw.loadTiddlersNode (/usr/lib/node_modules/tiddlywiki/boot/
boot.js:1894:27)
at Object.$tw.boot.startup (/usr/lib/node_modules/tiddlywiki/boot/boot.
js:2029:7)
at /usr/lib/node_modules/tiddlywiki/boot/boot.js:2215:12
at Object.$tw.boot.decryptEncryptedTiddlers (/usr/lib/node_modules/
tiddlywiki/boot/boot.js:1490:2)
at Object.$tw.boot.boot (/usr/lib/node_modules/tiddlywiki/boot/boot.js:
2213:11)
at Object. (/usr/lib/node_modules/tiddlywiki/tiddlywiki.js:13
:10)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)

The single exe fails as i can't open it in a browser to turn on network 
access and I don't know how to edit it's config file.

Cheers!

On Sunday, 5 August 2018 18:33:11 UTC+1, Jed Carty wrote:
>
> For the moment this is only the plugin version because uploading the 
> single executable version on my terrible internet connection at home isn't 
> going well.
>
> The biggest change is that you can now reconnect to a server after being 
> disconnected and the wiki state is resycned without needing to reload the 
> full wiki. On a slow connection this can save a lot of time. There is also 
> some simple detection for conflicts if the server and your wiki both 
> changed while disconnected.
> This means that you can work on the wiki while disconnected and then when 
> you are able reconnect to the server and have it save your changes. It also 
> lays the groundwork for using Bob with twederation.
>
>
> There are a lot of other changes here because I haven't been in the mood 
> to bump the version when I probably should have or announce anything. Many 
> of the changes or on the back-end so things just work better, but there are 
> a few noticeable ones:
>
> - Added the unloadWiki message. This lets you unload a wiki from inside 
> the browser and then reload the page. This lets you change plugins listed 
> in the tiddlywiki.info file and have those changes take effect without 
> restarting the server.
> - There are a number of back-end changes that prevent lost messages. If 
> you ever had an edit disappear after reloading the wiki, or if you noticed 
> that when you changed the wiki title it wouldn't always save the last few 
> key strokes, that should be fixed now.
> - Date fields should work better now. Let me know if there are any more 
> errors with them.
> - You can list plugins to be served with all Bob wikis regardless of if 
> they are listed in the wikis tiddlywiki.info file, this is useful if you 
> use Bob to create a wiki and then distribute it in another form
> - The default prefix for the file server url is files instead of file to 
> match the new work Jeremy has done with the --listen command
> - Detecting when the browser has lost its connection to the server is much 
> better now. The connection health is now determined by the web socket link 
> state, not by the heartbeat signal, so you shouldn't get the blinking 
> 'Disconnected' errors anymore.
>
> The full changelog is here: 
> https://github.com/OokTech/TW5-Bob/blob/master/Changelog.tid
>
> The plugin is on git here: https://github.com/OokTech/TW5-Bob
>
> As always let me know if you run into any bugs. I will try and get the 
> single executable version set up sometime soon.
>

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

[tw5] Concatenate transclusion as link?

2018-08-06 Thread 人云E云
Hi guys,

I'm a little new to tiddlywiki, and find some functionalities don't work as
I thought, including macro call and transclusion.

The background is that I have a DataTiddler, which stores the baseurl of
the site (when published); let's call this `dt##baseurl`. I have a feed
plugin installed to generate atom feed, under `/atom.xml`, relative to the
baseurl. (Some may suspect I intend to make this site like a blog, and you
are right.)

When I need to concatenate these two pieces of text together, as mentioned
elsewhere (e.g. official site), I need to use a helper macro to establish
the real concatenation of transclusion and string literal. (But I still
don't know why... Is this because of the processing engine's execution
order / lifecycle?)
I succeeded to do this when using text as the visible content, through
`[[$text$|$baseurl$/atom.xml]]`.

However, when I want to create a image which links to the atom feed, I find
no solution.
I have to use `[img[MY_IMG]]` for this to work (LinkWidget
will link to tiddler only; `[[]]` syntax only works on text). But if I
apply the previous trick, neither of the follow methods work.

Method 1:

```
  \define atomfeed(burl) $burl$/atom.xml
  >[img[MY_IMG]]
```

The $macrocall widget won't really work, and the resulting line is broken.
I guess this is because of the `/>`.

Method 2:

```
  \define atomfeed(burl) $burl$/atom.xml
  >>[img[MY_IMG]]
```

The macro will be evaluated, but the transclusion won't, resulting in a
link to "{{dt##baseurl}}/atom.xml".

Method 3:

```
  \define atomfeed(burl) $burl$/atom.xml
  \define wrapatomfeed() <$macrocall $name=atomfeed burl={{dt##baseurl}} />
  >>[img[MY_IMG]]
```

The macro will be evaluated once, but the second macrocall won't be
evaluated at all.


I also tried a few other combinations of these methods (e.g. replace the
3rd method's wrap macro content to `<< >>`), but none of them worked.
Anyone has any ideas?

-- 
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/CAHiJFWS5gKe4Aag1yiStKpr7%3D2F4nVhV_EzefFypnzyOYeHDNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread PMario
 Hi Mat, 

I'd go with the shadow tiddler approach. 

-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/bfdfdf7e-5e3e-4cb3-a540-c3390b776769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Firefox v61, can we just save over our current Wiki file without all the dialogs?

2018-08-06 Thread PMario
Hi h0p3,

I think I found the problem. I'll post a link to a beta version soon, so 
you can test it. Once it works, I'll create a new release version. 

A workaround is: *Close and reopen the TAB *... It shouldn't be needed to 
close the FF App.

-mario

-- 
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/c25030e5-a55e-46cc-974e-7e5f6b905e0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Sort Filter results by most common

2018-08-06 Thread Dave
Learn something new every day :)

I think I tagged all the relevant tiddlers - hope it works.  I only tagged 
(included) the test tiddlers that are checked off in the example tiddler 
"2018-08-06" and represented in the fields of "2018-08-06.tests". 

Here's the general rundown of what I'm trying to acheive:

I want to be able to run various sets of tests for patients (I'm a 
chiropractor) as needed.  I have computers in each treatment room and 
currently just record the visit SOAP notes (Subjective Objective Assessment 
& Plan) in a daily visit column of a spreadsheet.  Knowing what TW can do 
I've always yearned to be able to make something that can make use of the 
vast potential that TW provides to a lowly non-programmer type like me.

Anyway, the basic unit for most visits is the "Visit", i.e. a tiddler named 
by today's date.  Thanks to the recent MuuriTouch plugins I can now easily 
produce a layout the way I'd like with a "control panel" of crucial info 
tiddlers with various reports of previous visit summaries, pertinent 
medical history etc.  This set of tiddlers here is my first serious attempt 
to get something to a working version I could actually use in the clinic.  
Its basically a 2-3 minute set of neurologic type tests (with more of a 
chiropractic slant than a "brain pathology" slant)

So the Visit tiddler "2018-08-06" contains a link to the neurology tests 
tiddler "NeuroScan", and the individual tests from that tiddler place 
results from the tests into a "data" tiddler named the same as the visit 
tiddler plus ".tests".  That way there's no stuttering as you click a 
checkbox and the tiddler "reloads" if the results were assigned to the same 
tiddler.  The individual tests are constructed by passing the test names to 
the test macros to go get the info from data tiddlers named after the tests 
themselves.  Right now I have the tiddler "NeuroScan" kind of "hard 
written" as is, but eventually I would like to have the possible tests 
dynamically generated as more information slowly gets added to that day's 
visit and correlates with whatever the relevant recent and distant medical 
history has already been recorded.

So my current task is to get the ability to see the suggested origins 
(origin of the area of the central nervous system that may be the source of 
the patients problems) and indications (things that you can to to treat the 
patient to address the problems you're finding).

What you've helped me with is get a weighted list of all the most likely 
origins of the problem, in this case "pmrf" (ponto-medullary reticular 
formation).  That example is in the "2018-08-06.tests" tiddler.  My next 
thing I'll try to figure out is how to translate "cbm cbm.midline pmrf pmrf opp 
motor cortex pmrf cn8" into "pmrf (3) cmb (2)... etc".

Actually, just writing this I realized that button you helped make seems to 
only print out single instances, not the repeated findings I was hoping to 
somehow sort out to suggest the relatively more heavily weighted 
suggestions for origin... back to google, ha ha.

Anyway, thank you both for being patient with me as I muddle through this :)

-- 
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/2d93afc5-d1c3-4ce7-b590-680d0e1c189f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


tiddlers(2).json
Description: application/json


[tw5] toc-selective-expandable macro sort option

2018-08-06 Thread Mohammad
How is it possible to use toc-selective-expandable  and 

   - Sort the first level by caption
   - The second and third level by manual order in list filed


*Mohammad*

-- 
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/2ed9788d-f069-413a-bf18-2485d3e54c85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread passingby


On Monday, August 6, 2018 at 11:33:11 AM UTC-6, Mat wrote:
>
> Yes, I know, but thanks. That's why I mentioned "generated" tiddlers, 
> where I will not notice when a tid is overwritten.
>
> Apologies, my bad, did not read properly. 

-- 
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/8f08866b--49e1-9deb-5d3619d973ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread 'Mark S.' via TiddlyWiki
 What do you mean by "generated" ? There's hmm ... 3 ways I can think of to 
create tiddlers, one of which has tiddler-collision built-in. If you use 
that (ActionCreateTiddlerWidget) then it will automatically make a new name 
if there is an existing name.

The other approach would be to check for the existence of a tiddler, and 
skip creating it, perhaps making a report so you can handle it per case.

-- Mark

-- 
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/af612cbb-4d29-4441-b9b7-b974d6d85a47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] toc-selective-expandable issue! What is wrong?

2018-08-06 Thread Mohammad
Consider the following example


<>


Then Assume you have a tiddler as below
title: Test
tags: myTag
caption: {{!!title}}
some text

Note to the caption, the macro toc-selective-expandable will consider this 
tiddler caption starts with { while it should wikify the text reference and 
sort by the result.


Mohammad

-- 
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/51ca9f59-a6e4-4663-ac8d-d208e5878e35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread @TiddlyTweeter
Mat wrote:
>
> How can I ensure a tiddler is not overwritten?
>

I don't think you can beyond the single warning. Overwritten items are not 
kept. 
 

> I guess the second best would be to make it a shadow tid ...
>

Interesting idea. But would it really help? Reversion would be to some 
standard thing? Wouldn't a versioning approach be more suited? Something 
like ... http://twjam5beta.tiddlyspot.com/ a comprehensive versioning 
system that got very little notice at the time the beta emerged.

-- 
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/842e14d2-9d85-4834-8b07-664c75147d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread Mat
Yes, I know, but thanks.


BTW, one way I have solved this before - but it's not appropriate in this 
case - is to give the tiddlers cryptic titles that are unlikely to be 
overwritten and then also use an extra "alias" field plus a viewtemplate to 
show this alias as if it were the title etc.

Anyway, further ideas anyone?

<:-)

-- 
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/d244222f-06c5-473c-97c7-35cb754c397b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Headless Tiddlyserver on Pi

2018-08-06 Thread Ste Wilson

I've followed https://www.didaxy.com/tiddlyserver-on-the-raspberry-pi to 
try and set up tiddly server.including using the settings.json file there:

{
"tree": {
"pi_everything": "/",
"pi_public": "/Public"
},
"types":{
"htmlfile": ["htm", "html"]
},
"username": "",
"password": "",
"host": "0.0.0.0",
"port": ,
"backupDirectory": ""
}


Tiddly server sits in /home/pi/tiddlyserver/TiddlyServer/ 

running node server.js gives:

Settings file: /home/pi/tiddlyserver/TiddlyServer/settings.json
 APP 2018-08-06 17:08:37 server localhost listening
 APP 2018-08-06 17:08:37 server network error: listen EADDRINUSE 0.0.0.0:

 APP 2018-08-06 17:08:37 server network stack: Error: listen EADDRINUSE 0.0.
0.0:
 at Object._errnoException (util.js:992:11)
 at _exceptionWithHostPort (util.js:1014:20)
 at Server.setupListenHandle [as _listen2] (net.
js:1355:14)
 at listenInCluster (net.js:1396:12)
 at doListen (net.js:1505:7)
 at _combinedTickCallback (internal/process/
next_tick.js:141:11)
 at process._tickCallback (internal/process/
next_tick.js:180:9)
 at Function.Module.runMain (module.js:695:11)
 at startup (bootstrap_node.js:191:16)
 at bootstrap_node.js:612:3
 APP 2018-08-06 17:08:37 server network closed
 APP 2018-08-06 17:08:37 server localhost closed

Changing the port from 888 to something else seems to make no difference.
Running on local and opening with links browser seems to be fine, but links 
is a little...limited :)

I appreciate your already looking at this Arlen, but i thought i'd report 
in full.
Cheers

Ste

-- 
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/740519ab-06c2-425c-8597-efea561d40c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How protect tiddlers?

2018-08-06 Thread passingby
if you are creating a tiddler by hand, TW gives you a warning about pre 
existing tiddler.

On Monday, August 6, 2018 at 10:35:56 AM UTC-6, Mat wrote:
>
> How can I ensure a tiddler is not overwritten?
>
> I do not mean that someone would click the *edit* button etc but rather 
> myself *generating* a tiddler that accidently has the same ID (i.e title) 
> as an already existing tiddler.
>
> Is it at all possible to protect a tiddler against this?
>
> I guess the second best would be to make it a shadow tid, i.e so that it 
> can be overwritten but then at least restored. What, then, is the best 
> workflow to convert a tiddler into a shadow tid? AFAIK there is no quick 
> button to do so (e.g changing the tiddler *type* to "shadow" or some such)
>
> Ideas?
>
> <:-)
>

-- 
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/3adaa767-412f-4339-880c-c089fec7cc75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How protect tiddlers?

2018-08-06 Thread Mat
How can I ensure a tiddler is not overwritten?

I do not mean that someone would click the *edit* button etc but rather 
myself *generating* a tiddler that accidently has the same ID (i.e title) 
as an already existing tiddler.

Is it at all possible to protect a tiddler against this?

I guess the second best would be to make it a shadow tid, i.e so that it 
can be overwritten but then at least restored. What, then, is the best 
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick 
button to do so (e.g changing the tiddler *type* to "shadow" or some such)

Ideas?

<:-)

-- 
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/8459a5e8-c160-4ed2-9cff-698e5cf978f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread h0p3
  

I actually want to go further with this keyboard-centered approach. There's 
the sidebar that can be made key-boardable, too... basically everything 
that forces me to use my mouse where under i3 I'd always just press a 
shortcut is a target for select-mode.

I think you're right that something like this should be in TW's codebase. 

Agreed! We've talked about the sidebar before. I have very strong opinions 
about the sidebar. 

I know how I would like to navigate my sidebar right now (although, I'd 
probably change my method with more complex tooling), but I fear I am too 
specific (and don't know how to generalize it for everyone's usecases). 

I want to use a hotkey to enter "sidebar mode," select tabs from hotkeys, 
and perhaps have a mode for each tab. For example, on my Hub (
https://philosopher.life/#Hub:Hub), I want to step up and down through the 
major sections, and then select from the links inside those lists. 

As far as I'm concerned, the sidebar is fundamental to navigating the wiki, 
and salient navigation of complex structures is what a wiki is all about. 
Keyboard control of it is necessary to allow me to "load" tiddlers into my 
story river.

I tried that nodejs-approach but the missing live-reload killed it for me. 

YES! There are a lot of problems surrounding it.

To me, this is the one of the key areas in which Tiddlywiki could make a 
quantum leap. The browser's VM continues to be tightened again and again, 
and running a server is literally the only option around it. Unfortunately, 
I believe it's computationally unoptimized. I blow a whole core just to 
recompile every minute with nodejs. JS makes this beautiful in the browser, 
but the server itself needs another language, imho.

I'd want edit priority given to the CLI. 

This is no small task though, and I think most people have no use for it 
(at least initially).

@DemoniWaari also mentioned this search-functionality. I think I'll add the 
quick-search by keyboard function and then we can discuss the content of 
the search results...

Thanks for your feedback and thoughts! 

I am very excited by this. I think it is actually an entirely different 
problem than keyboard navigation, and arguably an even larger problem. It 
would, of course, be an enormous contribution. Advanced search that a user 
can easily tailor to the structures they build in their own wiki is 
necessary. This is where the flexibility of Tiddlywiki may continue to 
shine for a long time to come.

-- 
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/935dae2e-d2e0-4e71-8d6e-e64af7eaca39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query 101 -- Where is the Crib Sheet for Bracket & Quote marks?

2018-08-06 Thread Mohammad
Wonderful!
Tank you Passingby!

-- 
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/ecced267-999a-4475-826f-ca9c9e649194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query 101 -- Where is the Crib Sheet for Bracket & Quote marks?

2018-08-06 Thread passingby


On Monday, August 6, 2018 at 8:42:43 AM UTC-6, Mohammad wrote:
>
> Hi Passingby!
> I recommend to edit your post and attach a .tid file! Simply export this 
> tiddler from your wiki name it like Type_of_brackets.tid and attached it to 
> your post!
>
> Best
>
>
Thanks for the suggestion. I did 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/eeb3012f-d81c-4bb6-98dc-451f8fddbe2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query 101 -- Where is the Crib Sheet for Bracket & Quote marks?

2018-08-06 Thread Mohammad
Hi Passingby!
I recommend to edit your post and attach a .tid file! Simply export this 
tiddler from your wiki name it like Type_of_brackets.tid and attached it to 
your post!

Best

-- 
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/e5920b7c-e2ff-4927-b32b-a46dd8bdea02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query 101 -- Where is the Crib Sheet for Bracket & Quote marks?

2018-08-06 Thread passingby


On Saturday, August 4, 2018 at 11:06:47 AM UTC-6, @TiddlyTweeter wrote:
>
> I can't admit I understand the complexity of "Brackets" (<> <<>> [] [[]] 
> curly variants etc) or "Quotes" ("", ''  '', ''' ''' etc).
>
> Is there a *Crib Sheet* that gives an overview of their variant use? They 
> seem pretty important to understand well.
>
> Josiah
>

*Eric* wrote this somewhere and I copied and kept it in my TW. I ll paste 
this as it is (wikitext), so that you can copy and paste it in a tiddler: 
*THANK 
YOU ERIC!*


!! Types of Brackets

Brackets are used to indicate the ''type of operand'':

* `[]` - square brackets surround ''literal'' values, 
* `{}` - curly braces around ''field references'', 
* `<>` - angle brackets around ''variable names''.  

!! Single or Double Brackets - `<` vs `<<`
In TiddlyWiki ''content'', ''variables'' and ''macros'' are referenced 
using `<>`.  The ''double''-bracket syntax is used to avoid 
conflicts with standard HTML syntax (i.e., `` starts normal HTML bold 
formatting, while `<>` embeds the value of a TiddlyWiki variable named 
"b").

However, ''within'' TiddlyWiki ''filters'', there is no need to double the 
brackets, as HTML is not allowed ''within'' the filter, so only single 
`` is used.

Thus, inside a filter we can use a pair of ''single'' angle brackets, like 
this:

```
<$list filter="[is[current]!has]" variable=null>
```

!! Brackets within filters

<<<
Why I don't have to wrap `` with `[]` in a filter? 
<<<


Think of the brackets in filters as part of the operand itself rather than 
a "container" for the operand.  As explained above, the type of bracket 
indicates the type of operand being used:

* use `[...]` for ''literal'' values, e.g., `[texthere]`
* use `{...}` for ''field'' references, e.g., `{!!fieldname}`
* use `<...>` for ''variables'' e.g. ``

Thus, to split the literal text, "sometext", you could write: 
`[title[sometext]splitbefore[t]removesuffix[t]]`
you would get "some" as a result:

Ex: `<>`

<>

If the value "sometext" is stored in a field named "somefield" in the 
current tiddler, you could write: 
`[{!!somefield}splitbefore[t]removesuffix[t]]`

and, if the value "sometext" is stored in a variable named "somevariable", 
you could write: `[splitbefore[t]removesuffix[t]]`

As a slightly more complex example, suppose the value to split on was also 
stored in a variable.  Then you could write:
 `[splitbeforeremovesuffix]`

hope this helps,

enjoy,
-e
Eric Shulman

-- 
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/73e0efa7-ca96-471a-87e5-648ac88be36b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Syntax for setwidget

2018-08-06 Thread Mat
@Jed, thanks for input on it. 

--

For anyone curious, I needed it to make a little quick *reveal* type macro 
because IMO the RevealWidget syntax is just too messy. 
The syntax for qreveal (=quick reveal) is:

<> 


the "label" is optional, but if you are using more than one qreveal in a 
tiddler then you need labels for them

So in practice it might look like

<>


Here's the macro:


title: macro/qreveal
tags: $:/tags/Macro
text:

\define qreveal(label, content)
<$set name=label filter="""$content$ +[first[]]""" emptyValue="nolabel" 
value="$label$">
<$set name=content filter="""$content$""" emptyValue="""$label$""" value=
"""$content$""">

<$reveal type="nomatch" text="show"
state={{{ 
[[$(currentTiddler)$]addprefix[$:/state/qreveal/]addsuffix[/]addsuffix] 
}}}>

<$button setTo="show"
set={{{ 
[[$(currentTiddler)$]addprefix[$:/state/qreveal/]addsuffix[/]addsuffix] 
}}}>
   <> ▷



<$reveal type="match" text="show"
state={{{ 
[[$(currentTiddler)$]addprefix[$:/state/qreveal/]addsuffix[/]addsuffix] 
}}}>

<$button setTo="hide"
set={{{ 
[[$(currentTiddler)$]addprefix[$:/state/qreveal/]addsuffix[/]addsuffix] 
}}}>
   <> ▽


<>




\end



P.S The reason for the complex way to set state names is given here 
, in Jeremys post.


<:-)

-- 
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/e500df80-b215-47ea-9f04-2f41092232f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread DemoniWaari



You already can move tiddlers one slot next, one slot previous. Look at the 
> shortcut at the selectmode page ($:/KeyboardShortcut/select-mode-movenext 
> and  $:/KeyboardShortcut/select-mode-moveprevious)
>
 
Oh I missed that! Works great. 


>> EDIT: Also noticed that if I press e to edit a tiddler, then ctrl+enter 
>> to save it, I can't get back to select mode with shift-space. I need to 
>> click something (a tiddler for instance) and only then I can get back to 
>> select mode with shift-space.
>>
>> Thanks for reporting, I tried on Linux with Chrome, TiddlyDesktop and 
> Firefox latest and couldn't reproduce this. What's your operating system 
> and browser?
>

I'm using Firefox 52.9.0 under Windows 7.

-- 
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/e0b0f434-69c3-444a-afae-807553f416c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] Bob version 1.0.3 Sourdough Crumpets or It has been way too long

2018-08-06 Thread @TiddlyTweeter
Dear Jed & Bob

Sounds v. good.

Jed: ... uploading the single executable version on my terrible internet 
> connection at home isn't going well.


Is there something we can do to help? Like would some money help you get a 
better connection? Or maybe its a intrinsic problem where you are?

I feel I'm getting a bit behind on Bob. Which I don't want to do as its so 
good.

Best wishes
Josiah 

-- 
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/b403b96c-ccda-4164-a419-07567cff0087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread @TiddlyTweeter
Ciao BTC

A quick point that came to me reading over the latest posts.

Just my opinion, but would "K" (for keyboard / keys) be better than "S" 
(for select)?

I don't think it ultimately matters much, but IMO this is stuff I do via 
the Keyboard. "Select" is broader. A select to me is an item I could select 
(option), or highlighting text (for copy).

Just a thought
Josiah 

-- 
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/8cf5dacc-e9cc-4a0c-93a6-6de32d9e4155%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread BurningTreeC

>
> This post turned out longer than I expected. You'll have to forgive me if 
> what I'm saying is weird or not useful to you. I'm thinking outloud. I want 
> you to know, I love the tool you are building, and I'm intensely grateful.
>

Thanks! 

> You can now select if you want to focus the text-editor or the title when 
>> editing a tiddler. I'll probably add shortcuts that will be active in 
>> select-mode to focus title, tags, editor, type and fields inputs
>>
> Making shortcuts to target features for any focused tiddler is a damned 
> good idea. I don't know how far you are going with this, and I might have 
> the wrong vision. Building a framework to control a variety of standard 
> components (perhaps beyond what you have already) of Tiddlywiki through a 
> keyboard might be worthwhile. The more I think about this, the more I'm 
> convinced some version of your plugin should be in Tiddlywiki's primary 
> codebase (I always wonder if some aspects of the code will eventually go 
> WASM, but that may defeat the purpose).
>

I actually want to go further with this keyboard-centered approach. There's 
the sidebar that can be made key-boardable, too... basically everything 
that forces me to use my mouse where under i3 I'd always just press a 
shortcut is a target for select-mode.

I think you're right that something like this should be in TW's codebase.
 

> Your tool is a hack for me. It allows to navigate and organize large 
> workflows by hand, which is the intended purpose, but more importantly, it 
> allows me to leverage non-JS ecosystems without NPM. I really do want to 
> keep Tiddlywiki as self-contained as possible inside a single HTML file. 
> That's what is truly magic about it. The moment I'm leaving the browser to 
> run NPM though, I feel like I should just be using some other tool besides 
> Tiddlywiki (this may just be my incompetence though).
>

I tried that nodejs-approach but the missing live-reload killed it for me.
 

> I think I'm going to abuse your tool in a way that is simply the result of 
> me not being able to figure out how to write my own JS modifications of the 
> wiki. To me, you are giving us platform agnostic controls over the wiki, a 
> ghetto API to a magical blackbox meant for skiddies like me.
>
> Back when I used Windows, I was an AutoHotKey fan. In many cases, I might 
> not want or be able to touch the memory of a program, but I can 
> programmatically tell you how to interact with it from the keyboard and 
> mouse. Your tool may be a bridge for me. I'm interested in integrating a 
> lot of python and bash (actually, xonsh) scripts into my TW. For example, I 
> now use a tool that sanitizes my clipboard with replacements and pastes 
> (because I have to move data from other programs through clipboard often 
> enough). I also have a script which takes a list of tiddlers from "New" and 
> organizes them into a nested list structure that I consistently use as a 
> template. Automating tiddler creation, templating, and other processes 
> through the keyboard may give me the Rube-Goldberg machine I always dreamed 
> of. Thank you. =)
>
> If Tiddlywiki is a specialized self-contained VMed OS in my browser 
> (Zawinski's law, give me the ability to decentrally mail tiddlers!), then 
> maybe you're building some kind of visual commandline (I wonder what a 
> console would look like in Tiddlywiki; a true commandline could be very 
> powerful). I hope to read titles, xonsh parse and massage data, and use 
> your tool to manually edit Tiddlywiki through xdotool and i3msgs. I can do 
> this through NPM, but it requires decompiling and recompiling the 
> Tiddlywiki (which I may just be forced to accept in the end); it has not 
> been foolproof for me either. 
>
> On a side note, I'm forced to use this: 
> https://philosopher.life/#%24%3A%2F_toggle-editor-toolbar_preview:%24%3A%2F_toggle-editor-toolbar_preview,
>  
> a tool to disable toolbars, in order to maintain the font I want to have in 
> the editor itself. Is this going to be a huge monkeywrench?
>
> My claim might be dumb, and perhaps it should not have any influence on 
> what you are constructing because this is just one person's oddball 
> usecase. I'll leave that up to you.
>
> How did you imagine the search bar? How should it behave, what should it 
>> search for... ?
>>
> I want to open search from keyboard, type stuff in, and use my keyboard to 
> quickly navigate through the list. Currently, it has very poor 
> highlighting, I must use Tab and Ctrl+Tab to move through the list (would 
> love more options), and I have to Tab quite a bit to actually get to 
> navigating the list in the first place. I suppose I may just fix this 
> myself though (the highlighting I cannot).
>
> Some of the work that others to do with tagging I choose to do with titles 
> (so far, I'm not seeing why I should switch over to tags, but I may be 
> blind here). Eventually, I aim to be able to search by title and then 
> search for 

[tw5] Re: [tw] external images and external file under nodejs

2018-08-06 Thread pdiefent
Hello Jeremy,
could you please give a more detailed example on how to access PDF files 
within a nodejs driven tiddlywiki.

I tried several solutions from the tiddlywiki help and tiddlers but I 
didn't manage link to an pdf file in my wiki.
In the standalone HTML file I can use [[Book|file:\\\c:\tmp\book.pdf]]

Thanks a lot,
best regards
Peter

Am Sonntag, 27. November 2016 18:24:39 UTC+1 schrieb Jeremy Ruston:
>
> Hi Stefan
>
> That is sad, i hoped I can finally build my database in TW5. Thanks for 
> the answer.
>
>
> You should still be able to use external images with TW5 under Node.js. 
> You can either keep your PDFs in a separate folder and refer to them via a 
> file:// URI in your _canonical_uri field, or keep the PDFs under a separate 
> web server (eg https://www.npmjs.com/package/http-server).
>
> Best wishes
>
> Jeremy
>
>
> duminică, 27 noiembrie 2016, 19:02:14 UTC+2, Jeremy Ruston a scris:
>>
>> Hi Stefan
>>
>> I would like to create and display external images and external file (pdf 
>> - inside iframe) in Ubuntu. I chosen the right type and created the 
>> _canonical_uri field with the filename and path (images/696.jpeg) of the 
>> image but it is not displayed. I wonder why? The image is located inside 
>> the wiki folder (nodejs) in the images folder. The same with the pdf (i 
>> chose HTML markup as type and the _canonical_uri field with the value: file 
>> path and pdf file name). Thanks.
>>
>>
>> TiddlyWiki doesn’t currently serve tiddlers as static file attachments. 
>> See this issue for the background:
>>
>> https://github.com/Jermolene/TiddlyWiki5/issues/1000
>>
>> 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/99c304df-994e-4c1d-96c0-fca87a4213f5%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+...@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/f1399a5c-29c7-4b5c-9b94-244e92180779%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/0da2c9bf-0d9d-4ab7-bf62-49f911a61ab6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread BurningTreeC

>
> Looks really nice, can't wait to get the tag selection stuff. 
>
> Couple of things: How about making a shortcut for the search bar? Would be 
> great to ctrl+f, type my stuff, tab tab enter, my tiddler pops up, press e 
> and get straight to editing it. Also would it be hard to get re-ordering of 
> a selected tiddler? So if I have three tiddlers tid1 tid2 and tid3 in that 
> order and I select tid3 and press a shortcut (e.g. shift up) and then the 
> order would be tid1 tid3 tid2 and then selecting tid1 and pressing e.g. 
> shift down would then give me order of tid3 tid1 tid2. 
>

The shortcut for the search-bar is not that difficult, you can try it on 
keeboord.tiddlyspot.com (shortcut: alt-S). Selecting the dropdown items 
then would need to use the same mechanism as selecting the tags in the 
tags-dropdown. I'm working on that and will probably also add this 
search-functionality.

You already can move tiddlers one slot next, one slot previous. Look at the 
shortcut at the selectmode page ($:/KeyboardShortcut/select-mode-movenext 
and  $:/KeyboardShortcut/select-mode-moveprevious)

>
> I think that the visualization that preople have here been talking about 
> sounds good, though for me a simple border on my tiddlers (perhaps slightly 
> more easy to see, red border maybe?) is enough.
>

Hm.. will be difficult to find something that everyone likes, that's why I 
just use 1px solid black and users can change it how they want. I'll add a 
simple how-to, it's easy 

>
> EDIT: Also noticed that if I press e to edit a tiddler, then ctrl+enter to 
> save it, I can't get back to select mode with shift-space. I need to click 
> something (a tiddler for instance) and only then I can get back to select 
> mode with shift-space.
>
> Thanks for reporting, I tried on Linux with Chrome, TiddlyDesktop and 
Firefox latest and couldn't reproduce this. What's your operating system 
and browser?

BTC
 

-- 
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/c70bc83c-5876-4fab-af4a-d63c8fe1ffa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Syntax for setwidget

2018-08-06 Thread Jed Carty
The quick version is that in javascript you can say if(filter) {use filter 
code} else {use non-filter code}, if filter is an empty string it is 
evaluated as false which is the same as if there is no filter. So it isn't 
the existence of the "filter=" part that makes it change to the filter 
based behaviour, it is "if(filter)" evaluating as true that does it.

You can explicitly check for filter being an empty string, but that may 
modify other behaviour that could cause other problems.

-- 
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/7f1ee7c7-d9f9-49f2-966b-f14d2daebf1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query 101 -- Where is the Crib Sheet for Bracket & Quote marks?

2018-08-06 Thread @TiddlyTweeter
Thank you Eric!

Very helpful. My emphasis below.

Josiah

@TiddlyTweeter wrote:
>>
>> ... The "bracketing thing" in TW seems unusual... I get confused because 
>> it almost behaves as if it were* part *of the "code"...
>>
>  
Eric Shulman replied:

> That is a good way to describe it.  The bracketing IS part of the code.  
> It tells the parser what *type* of reference it contains:
>
> * square brackets contain literal tiddler title references (creates a link)
> * angle brackets contain macro invocations (or variable references)
> * curly braces contain tiddler transclusion references
>
> There are two different contexts in which these brackets occur:
> * in WikiText ("normal content")
> * in filters (i.e., as parameters to widgets or macros)
>
> In WikiText, the brackets are all DOUBLED.  This is to avoid confusion 
> with other uses that may occur in normal text.  In particular, single angle 
> brackets are used for normal HTML syntax, so macro invocation uses two 
> angle brackets.  Similarly, though not as technically required, single 
> square brackets and single curly braces are also doubled to avoid mistaken 
> parsing of normal text content containing brackets as if they are macros or 
> transclusions.
>
> Similar to WikiText, the brackets in filter syntax depend upon the type 
> of reference the contain.  However, the brackets do not need to be doubled, 
> since within the filter there is no potential conflict with other usage.  
> Thus:
>
> * SINGLE square brackets contain literal text values
> * SINGLE angle brackets contain macro or variable references
> * SINGLE curly braces contain tiddler transclusion references
>
> Note: filters also use a pair of square brackets to contain separate 
> filter expressions, for example:
>filter="[tag[foo]] -[tag[bar]]"
>

-- 
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/d3a0454f-c547-4fe0-acd6-7f9511b9e8a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Syntax for setwidget

2018-08-06 Thread Jed Carty
The docs say that it uses the value attribute if there is no filter given, 
so the behaviour is consistent with the documentation.

It does seem a bit weird but from a coding point of view I can see why it 
is this way.

-- 
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/f3d90959-4d26-47d7-a5f9-0a29eee8d599%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Syntax for setwidget

2018-08-06 Thread Mat
Well, I cracked it;

\define foo(bar)
<$set name="myVariable" filter="$bar$ +[first[]]" value="value" emptyValue="no 
value">
<$text text=<>/>

\end

<>


...still, I don't understand why merely "$bar$" without any incoming 
argument can't be interpreted as empty???


<:-)

-- 
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/15a94e49-efbf-4f6f-ad31-740ba8eeb43d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Installed tiddlyserver, but still unable to save TW file in FF 61

2018-08-06 Thread JPTech250
Hi Arlen,

Thanks for the suggestions. The error was on my side; Mark's suggestion of 
dragging the put.js tiddler wasn't applied correctly the last time, but I 
was able to see this clearly by reviewing both the terminal output and dev 
tools based on your note.

So thanks to you both for your help!

Just fyi, but here is how I did my troubleshooting (your feedback would be 
welcome here, as this would be great for future reference, i.e. if anyone 
else has a similar issue):-

1. Checked terminal output (for both old vs new html files. The "old" html 
referring to the file where I was unable to save, while "new" being the 
empty I downloaded for testing)

[2018-08-06T06:45:09.371-0400] GET 192.168.0.16304 192.168.0.16 /
windows_everybody/_archive/old.html   1.773 ms - -
[2018-08-06T06:45:26.498-0400] GET 192.168.0.16304 192.168.0.16 /
windows_everybody/_archive/old.html   2.448 ms - -
[2018-08-06T06:46:12.639-0400] GET 192.168.0.16304 192.168.0.16 /
windows_everybody/_archive/old.html   2.109 ms - -
[2018-08-06T06:47:32.986-0400] GET 192.168.0.16200 192.168.0.16 /
windows_everybody/new.html4.243 ms - 2584815
[2018-08-06T06:47:37.873-0400] OPTIONS 192.168.0.16200 192.168.0.16 /
windows_everybody/new.html1.112 ms - -
[2018-08-06T06:47:37.873-0400] HEAD192.168.0.16304 192.168.0.16 /
windows_everybody/new.html1.015 ms - -

So no matter what I did with old.html (creating new tiddlers, as an 
example), I didn't see any OPTIONS or HEAD methods.

2. Then in dev tools, "old" had just the 1 Total Request, while "new" 
reflected the requests based on my actions.




3. Since "old" didn't show any additional Total Requests (or PUT in 
terminal output), I used FF's debugger to view the core modules and noticed 
the missing "put.js". After properly applying Mark's suggestion (and saving 
the file when prompted via the dialogue box), I was then able to see the 
file.




Ultimately, this was my user error is not applying *put.js* directly, but 
your additional suggestion of using the browser's debugging tools helped 
identify my mistake.

Thanks again, guys.

Cheers,
JP



On Sunday, August 5, 2018 at 8:48:28 PM UTC-4, Arlen Beiler wrote:
>
> A few things.
>
> First, you can download the latest empty and then just drag the other wiki 
> into it to import everything. 
>
> Second, you can drag the put saver tiddler from empty into the one you are 
> trying to save. 
>
> If you open the devtools in the browser and go to the network tab, what 
> requests are shown?
>
> What is the terminal output for TiddlyServer? The backup directory may 
> have either the escaped windiws backslash or the forward slash, it doesn't 
> matter. I used both in the same file. 
>
> Arlen
>
> On Mon, Aug 6, 2018, 06:31 JPTech250 > 
> wrote:
>
>> That makes sense. Yes, the versions are different. 
>>
>> A real puzzle though, used the TW upgrader to bump up my existing TW file 
>> to v. 17, and still no dice.
>>
>> I'll try digging, but the save option is important enough for me where 
>> I'll just start over again (and use the older one as reference).
>>
>>
>>
>>
>>
>>
>> On Sunday, August 5, 2018 at 12:15:06 AM UTC-4, Mark S. wrote:
>>>
>>> Is there a difference in the TW version number of the two TW files?
>>>
>>> I *think* that I had to drag and drop a new version of 
>>> $:/core/modules/savers/put.js into an older version of TW in order to get 
>>> it to work on one of my tiddlers. I'm not sure where I got the idea for 
>>> this.
>>>
>>> -- Mark
>>>
>>>
>>> On Saturday, August 4, 2018 at 5:10:35 PM UTC-7, JPTech250 wrote:

 *UPDATE*

 Tested with an empty TW file, and I'm able to save without any issues.

 Not sure what's different about my original TW file (apart from 
 content, of course), but the problem appears to be file-specific.

 Thanks,all.
 -JP



 -- 
>> 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/fb4b825b-5a89-4665-b2d5-8f066ac3607b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit 

[tw5] Syntax for setwidget

2018-08-06 Thread Mat
This seems like a bug to me... but it's such a basic use case that it then 
should have been discovered ages ago... so I'd better ask before issuing a 
report:

How can I make this return "no value" when there is no argument. Currently 
it returns "value" regardless or argument or no argument.

(direct link to SetWidget docs 
)

\define foo(bar)
<$set name="myVariable" filter="$bar$" value="value" emptyValue="no value">
<$text text=<>/>

\end

<>

Thanx

<:-)


-- 
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/e24cbec2-6b06-444b-84ed-0bca295c5fa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SelectMode - KeeBoord Navigation

2018-08-06 Thread DemoniWaari
Looks really nice, can't wait to get the tag selection stuff. 

Couple of things: How about making a shortcut for the search bar? Would be 
great to ctrl+f, type my stuff, tab tab enter, my tiddler pops up, press e 
and get straight to editing it. Also would it be hard to get re-ordering of 
a selected tiddler? So if I have three tiddlers tid1 tid2 and tid3 in that 
order and I select tid3 and press a shortcut (e.g. shift up) and then the 
order would be tid1 tid3 tid2 and then selecting tid1 and pressing e.g. 
shift down would then give me order of tid3 tid1 tid2. 

I think that the visualization that preople have here been talking about 
sounds good, though for me a simple border on my tiddlers (perhaps slightly 
more easy to see, red border maybe?) is enough.

On Saturday, August 4, 2018 at 5:04:10 PM UTC+3, BurningTreeC wrote:
>
> Hi community,
> for those interested in more advanced Keyboard-Navigation within 
> tiddlywiki I've created
> http://selectmode.tiddlyspot.com, where the "SelectMode" plugin will soon 
> be available for drag installation
>
> Meanwhile, if you're interested to test and comment, that would be great 
> help.
> I'm looking for ideas how to visualize that the wiki is in select-mode. 
> The top yellow bar will get an option to be disabled, but there should still
> be some kind of a visual hint that select-mode is on.
>
> I'm also adding the functionality to select the dropdown entries of the 
> tag-dropdown, type-dropdown and field-dropdown using the keyboard,
> you can expect the plugin to be available vs the end of the next week
>
> all the best,
> BurningTreeC
>

-- 
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/fa1f4317-9699-460a-af0f-d377a2f9305f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Selecting tags from the drop-down -menu using keyboard

2018-08-06 Thread DemoniWaari
Ohh amazing, gotta try this out asap! 

On Saturday, August 4, 2018 at 5:07:28 PM UTC+3, BurningTreeC wrote:
>
> Hi all, I'm about to add the functionality to select tags by keyboard to 
> the SelectMode plugin. I've made a new thread for it: 
> https://groups.google.com/forum/#!topic/TiddlyWiki/GIwd6wAakYE
>

-- 
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/0b222002-f343-438e-9e26-8807c7a877e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Use a button to create a tiddler in view mode: Is this legal or illegal?

2018-08-06 Thread Mohammad

>
> Many thanks Mario!
>

Best 

-- 
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/d664d5d8-1a09-4b20-ac3f-f50f2053aa3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Use a button to create a tiddler in view mode: Is this legal or illegal?

2018-08-06 Thread PMario
On Sunday, August 5, 2018 at 7:40:07 PM UTC+2, Mohammad wrote:
>
> I mean from programming point of view! The good programming practice or 
> standard always recommend clean and non error prone programming!
> For example in Matlab or Fortran I use to program always we follow some 
> rules!
>

> So, here I mean standard (defacto) or good programming style!
>

There is no documented "best practice"  ... but TiddlyWiki UI itself is a 
"defacto" standard. 

Jeremy is very strictly maintaining backwards-compatibility. So if you do 
things as they are done in the default UI, you should be save, that they 
will work in the future too. 
 

> I believe the elements shall be used for the purpose they were created! 
> this help other understand code and can follow it and also it is easier to 
> debug and mainatin
>

If you use "side-effects" (bugs) to do certain things, ... they may break 
in the future, if the bugs are fixed. ... 

So imo it's better to report "buggy" behaviour, instead of using their 
side-effects :)

-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/e332a714-3920-458e-9a20-1a32384703a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.