Re: [tw5] Re: Sticky editortoolbar?

2021-04-28 Thread maki aea
try modifying dave's example with top:0

to top:40px (or 20px etc depending on your wiki)

for single line toolbars top:0 is getting hidden behind other elements


On Tuesday, April 27, 2021 at 7:35:29 PM UTC+1 Brian Radspinner wrote:

> History Buff may be in the same "position" as I am: I think I have some 
> other CSS styles that as messing with the ability to use what you posted. 
> When I use position:sticky on the toolbar, it does nothing, still scrolls 
> with the tiddler frame.
>
> On Tuesday, April 27, 2021 at 10:40:59 AM UTC-7 David Gifford wrote:
>
>> @History Buff
>>
>> CSS worked great for me.
>>
>> Create a tiddler with the following:
>>
>> Title: $:/HistoryBuff/StickyEditorButtons
>> tag: $:/tags/Stylesheet
>> text: .tc-editor-toolbar { position: sticky; top: 0; background-color: 
>> white;} 
>> type: text/css
>>
>>
>>
>> On Tuesday, April 27, 2021 at 11:41:12 AM UTC-5 History Buff wrote:
>>
>>> I haven't been able to get the CSS to work yet. For now, I've been using 
>>> the fixed height setting ($:/core/ui/EditorToolbar/editor-height-dropdown) 
>>> which fixes the editor window and makes the toolbar visible at all times.
>>>
>>> On Tuesday, April 27, 2021 at 9:08:12 AM UTC-7 David Gifford wrote:
>>>
 Thanks a bunch Odin! 
 (I feel like a pagan idolater for writing that sentence!) :-)




 On Tue, Apr 27, 2021 at 10:34 AM Odin  wrote:

> The CSS position attribute has a 'sticky' value. See: 
> https://www.w3schools.com/cssref/pr_class_position.asp
>
> Adding this to a stylesheet tiddler would produce the effect:
>
> .tc-editor-toolbar { position: sticky; top: 0; }
>
> To prevent the look of 'floating' buttons you can also add a 
> 'background-color: white;'.
> Op dinsdag 27 april 2021 om 16:48:39 UTC+2 schreef David Gifford:
>
>>
>> Okay I know I had this set up once., but I can't find it.
>>
>> Can anyone explain how I could have a sticky editortoolbar? So that 
>> when I am editing a tiddler and scroll down, the editing buttons stay at 
>> the top of the screen?
>>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/KVBFIqkYbBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f079ded7-2ab7-4352-9641-1ed276c8ca58n%40googlegroups.com
>  
> 
> .
>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a997e85e-a983-403b-bb63-58325e1b439en%40googlegroups.com.


Re: [tw5] Re: Sticky editortoolbar?

2021-04-28 Thread makiaea
wait, it seems it does work on tiddlywiki.com

try editing another tiddler e.g. HelloThere

the sticky toolbar gets hidden behind the blue bar if it is a single line 
only
On Thursday, April 29, 2021 at 6:25:21 AM UTC+1 ma...@makiaea.org wrote:

> i tried this when i was first building my new tiddlywiki and it didn't work
>
> just tried it on tiddlywiki.com and it didn't work
>
> if i recall correctly i eventually found it was the css in the default tw 
> using an overflow property in the parent element, which means that sticky 
> does not work in the child element (sticky works fine elsewhere)
>
> On Tuesday, April 27, 2021 at 7:35:29 PM UTC+1 Brian Radspinner wrote:
>
>> History Buff may be in the same "position" as I am: I think I have some 
>> other CSS styles that as messing with the ability to use what you posted. 
>> When I use position:sticky on the toolbar, it does nothing, still scrolls 
>> with the tiddler frame.
>>
>> On Tuesday, April 27, 2021 at 10:40:59 AM UTC-7 David Gifford wrote:
>>
>>> @History Buff
>>>
>>> CSS worked great for me.
>>>
>>> Create a tiddler with the following:
>>>
>>> Title: $:/HistoryBuff/StickyEditorButtons
>>> tag: $:/tags/Stylesheet
>>> text: .tc-editor-toolbar { position: sticky; top: 0; background-color: 
>>> white;} 
>>> type: text/css
>>>
>>>
>>>
>>> On Tuesday, April 27, 2021 at 11:41:12 AM UTC-5 History Buff wrote:
>>>
 I haven't been able to get the CSS to work yet. For now, I've been 
 using the fixed height setting 
 ($:/core/ui/EditorToolbar/editor-height-dropdown) which fixes the editor 
 window and makes the toolbar visible at all times.

 On Tuesday, April 27, 2021 at 9:08:12 AM UTC-7 David Gifford wrote:

> Thanks a bunch Odin! 
> (I feel like a pagan idolater for writing that sentence!) :-)
>
>
>
>
> On Tue, Apr 27, 2021 at 10:34 AM Odin  wrote:
>
>> The CSS position attribute has a 'sticky' value. See: 
>> https://www.w3schools.com/cssref/pr_class_position.asp
>>
>> Adding this to a stylesheet tiddler would produce the effect:
>>
>> .tc-editor-toolbar { position: sticky; top: 0; }
>>
>> To prevent the look of 'floating' buttons you can also add a 
>> 'background-color: white;'.
>> Op dinsdag 27 april 2021 om 16:48:39 UTC+2 schreef David Gifford:
>>
>>>
>>> Okay I know I had this set up once., but I can't find it.
>>>
>>> Can anyone explain how I could have a sticky editortoolbar? So that 
>>> when I am editing a tiddler and scroll down, the editing buttons stay 
>>> at 
>>> the top of the screen?
>>>
>> -- 
>> You received this message because you are subscribed to a topic in 
>> the Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/tiddlywiki/KVBFIqkYbBM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/f079ded7-2ab7-4352-9641-1ed276c8ca58n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9fb5deee-e449-497e-a458-ec3434781960n%40googlegroups.com.


Re: [tw5] Re: Sticky editortoolbar?

2021-04-28 Thread maki aea
i tried this when i was first building my new tiddlywiki and it didn't work

just tried it on tiddlywiki.com and it didn't work

if i recall correctly i eventually found it was the css in the default tw 
using an overflow property in the parent element, which means that sticky 
does not work in the child element (sticky works fine elsewhere)

On Tuesday, April 27, 2021 at 7:35:29 PM UTC+1 Brian Radspinner wrote:

> History Buff may be in the same "position" as I am: I think I have some 
> other CSS styles that as messing with the ability to use what you posted. 
> When I use position:sticky on the toolbar, it does nothing, still scrolls 
> with the tiddler frame.
>
> On Tuesday, April 27, 2021 at 10:40:59 AM UTC-7 David Gifford wrote:
>
>> @History Buff
>>
>> CSS worked great for me.
>>
>> Create a tiddler with the following:
>>
>> Title: $:/HistoryBuff/StickyEditorButtons
>> tag: $:/tags/Stylesheet
>> text: .tc-editor-toolbar { position: sticky; top: 0; background-color: 
>> white;} 
>> type: text/css
>>
>>
>>
>> On Tuesday, April 27, 2021 at 11:41:12 AM UTC-5 History Buff wrote:
>>
>>> I haven't been able to get the CSS to work yet. For now, I've been using 
>>> the fixed height setting ($:/core/ui/EditorToolbar/editor-height-dropdown) 
>>> which fixes the editor window and makes the toolbar visible at all times.
>>>
>>> On Tuesday, April 27, 2021 at 9:08:12 AM UTC-7 David Gifford wrote:
>>>
 Thanks a bunch Odin! 
 (I feel like a pagan idolater for writing that sentence!) :-)




 On Tue, Apr 27, 2021 at 10:34 AM Odin  wrote:

> The CSS position attribute has a 'sticky' value. See: 
> https://www.w3schools.com/cssref/pr_class_position.asp
>
> Adding this to a stylesheet tiddler would produce the effect:
>
> .tc-editor-toolbar { position: sticky; top: 0; }
>
> To prevent the look of 'floating' buttons you can also add a 
> 'background-color: white;'.
> Op dinsdag 27 april 2021 om 16:48:39 UTC+2 schreef David Gifford:
>
>>
>> Okay I know I had this set up once., but I can't find it.
>>
>> Can anyone explain how I could have a sticky editortoolbar? So that 
>> when I am editing a tiddler and scroll down, the editing buttons stay at 
>> the top of the screen?
>>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/KVBFIqkYbBM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f079ded7-2ab7-4352-9641-1ed276c8ca58n%40googlegroups.com
>  
> 
> .
>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c14ecb4-bce3-4fa3-8f39-8e2697c65520n%40googlegroups.com.


[tw5] Re: folding sections in tidler

2021-04-28 Thread Charlie Veniot
I see two <$list>, but only one 

Unless my aging eyeballs are missing something ...

On Thursday, April 29, 2021 at 12:10:58 AM UTC-3 mohamed...@hotmail.com 
wrote:

> Thanks David,
>
> should i be replacing anything ? i just added your code , unless i am 
> doing something wrong, it doesn't seem to work
>
> [image: Capture8.PNG]
>
> On Thursday, April 29, 2021 at 3:35:43 AM UTC+2 David Gifford wrote:
>
>> Put this between <$list.> and  (no details widget needed):
>>
>> <$link><$view 
>> field="title"/><$transclude field="text" 
>> mode="block"/>
>>
>> On Wednesday, April 28, 2021 at 2:14:05 PM UTC-5 mohamed...@hotmail.com 
>> wrote:
>>
>>> apologies , what i really meant was  using a details widget , i just 
>>> want to expand /collapse the results for every filter , please let me know 
>>> if you need any clarificaiton
>>>
>>> On Wednesday, April 28, 2021 at 4:46:46 AM UTC+2 Mark S. wrote:
>>>
 You seem to have your select widget inside the main list filter, and so 
 your selection gets repeated over and over.

 You probably want to take the select widget outside the main list 
 widget. Then your code will be something like:

 <$select  as in your text ...>

 <$list filter="[!has[draft.of]status{!!status}priority{!!priority}]">

 (display results here)

 

 On Tuesday, April 27, 2021 at 6:38:42 PM UTC-7 mohamed...@hotmail.com 
 wrote:

> Hi,
>
> i have 3 filter that lists tiddlers matching a specific field value, 
> one filter  for "in house" another for "pending" and one for "with Vendor"
>
> i want every filter have its results foldable , so in the below screen 
> shot , i want it to be able  to click an arrow for example using the 
> select 
> widget which would collapse expand the tidlers with status  pending 
>
> i tried several things with no luck , the select widget doesnt seem to 
> accept my filter, 
>
> [image: Capture7.PNG]
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/55d7dc47-795b-4758-9cfd-daf2919d082fn%40googlegroups.com.


[tw5] Re: folding sections in tidler

2021-04-28 Thread paulgilbert2000
Thanks David,

should i be replacing anything ? i just added your code , unless i am doing 
something wrong, it doesn't seem to work

[image: Capture8.PNG]

On Thursday, April 29, 2021 at 3:35:43 AM UTC+2 David Gifford wrote:

> Put this between <$list.> and  (no details widget needed):
>
> <$link><$view 
> field="title"/><$transclude field="text" 
> mode="block"/>
>
> On Wednesday, April 28, 2021 at 2:14:05 PM UTC-5 mohamed...@hotmail.com 
> wrote:
>
>> apologies , what i really meant was  using a details widget , i just want 
>> to expand /collapse the results for every filter , please let me know if 
>> you need any clarificaiton
>>
>> On Wednesday, April 28, 2021 at 4:46:46 AM UTC+2 Mark S. wrote:
>>
>>> You seem to have your select widget inside the main list filter, and so 
>>> your selection gets repeated over and over.
>>>
>>> You probably want to take the select widget outside the main list 
>>> widget. Then your code will be something like:
>>>
>>> <$select  as in your text ...>
>>>
>>> <$list filter="[!has[draft.of]status{!!status}priority{!!priority}]">
>>>
>>> (display results here)
>>>
>>> 
>>>
>>> On Tuesday, April 27, 2021 at 6:38:42 PM UTC-7 mohamed...@hotmail.com 
>>> wrote:
>>>
 Hi,

 i have 3 filter that lists tiddlers matching a specific field value, 
 one filter  for "in house" another for "pending" and one for "with Vendor"

 i want every filter have its results foldable , so in the below screen 
 shot , i want it to be able  to click an arrow for example using the 
 select 
 widget which would collapse expand the tidlers with status  pending 

 i tried several things with no luck , the select widget doesnt seem to 
 accept my filter, 

 [image: Capture7.PNG]

>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16ed3b48-c5c6-4ad0-90bc-7e98080f146dn%40googlegroups.com.


Re: [tw5] Experimental Chromium native saver

2021-04-28 Thread TW Tones
Jeremy et al,

I think if we could at least make it look like a PWA functionally. Please 
bare with my level of technical knowledge, but I believe I can see 
something appearing in the fog of these issues.

Given initial saving to IndexDB is workable if not reliable in the long 
term, I wonder if we provided a tool in Tiddlywiki to save the Wikis index 
db, or the wiki itself out to file as a backup? In fact as a start we could 
use this to trigger local backup (See Mario's and others "Savers"). Noting 
the backups would not be html or other "executable", thus stopping them 
subsequently being loaded with all local permissions etc...

I have always thought that a mechaisium to logout of tiddlywiki would be a 
nice option. We could autosave to the backup then logout, which would 
trigger a save to file (even if we must get a dialogue) A little code or 
cookie may be able to detect if the tiddlywiki no longer holds a matching 
last file save it would prompt to load the backup from a known folder. This 
method may have the added advantage that all backups can be files under the 
browser downloads folder thus have the necessary browser rights.

The above method also means you will find your tiddlywiki at the URL where 
you hosted it, no need to address files unless you have a failure or during 
the "occasional" backup to file. Such addresses can be local dns or IP 
address that is only hosting the original (read only wiki), the content is 
off in IndexDB and backups to the downloads folder. Of import here is you 
must continue to have access to the original, but all subsequent content is 
localised (owned by the user).

Finally we could host dozens of empty.html files on a static server (by 
other names / domains), perhaps some preloaded editions, then tiddlywiki 
users can find one of these as a starting wiki and design and add content 
on top of there. eg todo.tiddlywiki.com sandbox.tiddlywiki.com 
mywiki.tiddlywiki.com with smart server management these could all be the 
same html file plus installable packages.

Once more experienced, once they have a server or saver Timimi they can 
export their wiki to a specific local location , until then just use them 
at the address, but bound within a browser.

I truly hope to make the use and design of tiddlywiki so seamless then we 
can surely attract more people with lower level skills so they can start on 
the journey.

Tones

On Wednesday, 28 April 2021 at 18:55:43 UTC+10 Jeremy Ruston wrote:

> Hi Dyllon
>
> We actually have the same issue with the GitHub saver module: it saves the 
> access token to local storage, which is subject to the same peculiarity of 
> all file: URIs counting as a single origin. Thus, if an attacker can induce 
> a user to download an HTML file and open it in the browser then they can 
> exfiltrate all the access tokens.
>
> I think Google’s answer would be “don’t use file URIs to manage sensitive 
> data”, but it makes me sad that there’s so much erosion of the users power 
> to manage their own data locally. I think the alternative is to run 
> TiddlyWiki as a PWA, but that would subject us to browser compatibility 
> issues, and give end users a much more obscure mental model.
>
> Best wishes
>
> Jeremy
>
> On 27 Apr 2021, at 23:54, Dyllon Gagnier  wrote:
>
> @mohammad.rahmani the security issue is actually relevant to TiddlyWiki 
> even if the file itself is secured.
>
> Google decided this was a duplicate issue so I can disclose the issue in 
> full. 1202597 - Security: File Access API Permission Bypass - chromium 
> 
>
> You can save file/directory handles to IndexedDB (like localStorage, but 
> more confusing) so that you don't need to select the TiddlyWiki
> file from the file picker each time you refresh the tab/open it. However, 
> Chromium has a bug/design which considers everything from file://
> to be from the same origin/domain. This means if you download and double 
> click on some "malicious.html" it could just scan IndexedDB
> and use the same descriptors TiddlyWiki saved for convenience.
>
> Here is a potential outline of this attack:
>
>1. You save teaminfo.html to a shared drive which includes 
>passwords/valuable docs/etc.
>2. You are writing some Rust code and have the docs open (which the 
>rustdoc tool conveniently generates for you locally).
>3. Someone, NSA/Russia/whoever, compromised some libraries docs and 
>inserted malicious JS.
>4. This malicious code gets the file descriptor by scanning IndexedDB 
>and uploads it to some remote location.
>5. If you happen to have said wiki open in another tab (as I 
>personally often do), it can also overwrite this file and then be 
>ransomware.
>
> *How to avoid this:*
>
>- Do not save file descriptors to IndexedDB
>   - The code I posted doesn't save to IndexedDB, so this is for 
>   people modifying the code.
>   - I am working on a proper 

[tw5] Re: folding sections in tidler

2021-04-28 Thread David Gifford
Put this between <$list.> and  (no details widget needed):

<$link><$view 
field="title"/><$transclude field="text" 
mode="block"/>

On Wednesday, April 28, 2021 at 2:14:05 PM UTC-5 mohamed...@hotmail.com 
wrote:

> apologies , what i really meant was  using a details widget , i just want 
> to expand /collapse the results for every filter , please let me know if 
> you need any clarificaiton
>
> On Wednesday, April 28, 2021 at 4:46:46 AM UTC+2 Mark S. wrote:
>
>> You seem to have your select widget inside the main list filter, and so 
>> your selection gets repeated over and over.
>>
>> You probably want to take the select widget outside the main list widget. 
>> Then your code will be something like:
>>
>> <$select  as in your text ...>
>>
>> <$list filter="[!has[draft.of]status{!!status}priority{!!priority}]">
>>
>> (display results here)
>>
>> 
>>
>> On Tuesday, April 27, 2021 at 6:38:42 PM UTC-7 mohamed...@hotmail.com 
>> wrote:
>>
>>> Hi,
>>>
>>> i have 3 filter that lists tiddlers matching a specific field value, one 
>>> filter  for "in house" another for "pending" and one for "with Vendor"
>>>
>>> i want every filter have its results foldable , so in the below screen 
>>> shot , i want it to be able  to click an arrow for example using the select 
>>> widget which would collapse expand the tidlers with status  pending 
>>>
>>> i tried several things with no luck , the select widget doesnt seem to 
>>> accept my filter, 
>>>
>>> [image: Capture7.PNG]
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1973f4f3-478b-4408-9bd1-ec2b3c1e562dn%40googlegroups.com.


[tw5] Re: Change the title of a tiddler from the tiddler itself?

2021-04-28 Thread Joshua Fontany
@PMario,

That is a great way to explain what happens behind the curtains. :)

Best,
Joshua F

On Wednesday, April 28, 2021 at 4:17:05 PM UTC-7 PMario wrote:

> On Wednesday, April 28, 2021 at 9:26:25 PM UTC+2 si wrote:
>
>> Thank you very much Mario!
>
>
> You are welcome. 
>
> I think a button may make more sense anyway, but am I right to assume that 
>> it is not (easily) possible to have the title automatically update as I 
>> type?
>>
>
> Right. .. In TiddlyWiki the tiddlers are "immutable" [1]. They can't be 
> changed, after they have been created. There actually is _no_ function in 
> TW that says: Edit existing tiddler. 
>
> The only function to write to a tiddler is: $tw.wiki.addTiddler(...) 
> Adding a tiddler with the same title, will overwrite the existing one. 
> That's the only way to change a tiddler. 
>
> Let's say you have "New Tiddler" and you want to change it to "Faust - 
> Goethe". As soon as you start typing F .. you add tiddler F, then Fa, Fau, 
> Faus ... and so on.
>
>  - go to https://tiddlywiki.com
>  - create a new tiddler
>  - Copy this into a new tiddler: <$edit-text tiddler=<> 
> field=title />
>  - Save
>  - open the right sidebar : Recent tab   <- important
>  - start typing
>
> Nice - right?
>
> have fun!
> mario
> [1] https://en.wikipedia.org/wiki/Immutable_object
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ddf9277b-120f-494b-9cbf-509d4faedd8dn%40googlegroups.com.


[tw5] Re: Change the title of a tiddler from the tiddler itself?

2021-04-28 Thread PMario
On Wednesday, April 28, 2021 at 9:26:25 PM UTC+2 si wrote:

> Thank you very much Mario!


You are welcome. 

I think a button may make more sense anyway, but am I right to assume that 
> it is not (easily) possible to have the title automatically update as I 
> type?
>

Right. .. In TiddlyWiki the tiddlers are "immutable" [1]. They can't be 
changed, after they have been created. There actually is _no_ function in 
TW that says: Edit existing tiddler. 

The only function to write to a tiddler is: $tw.wiki.addTiddler(...) Adding 
a tiddler with the same title, will overwrite the existing one. That's the 
only way to change a tiddler. 

Let's say you have "New Tiddler" and you want to change it to "Faust - 
Goethe". As soon as you start typing F .. you add tiddler F, then Fa, Fau, 
Faus ... and so on.

 - go to https://tiddlywiki.com
 - create a new tiddler
 - Copy this into a new tiddler: <$edit-text tiddler=<> 
field=title />
 - Save
 - open the right sidebar : Recent tab   <- important
 - start typing

Nice - right?

have fun!
mario
[1] https://en.wikipedia.org/wiki/Immutable_object


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4e6a2341-06a1-44fc-8c18-3fb39054e233n%40googlegroups.com.


[tw5] Re: json access when not in action mode?

2021-04-28 Thread Joshua Fontany
Yes. This is exactly why I wrote JsonMangler (the "Manger" part came from 
one of the core features that has been downplayed, the ability to compress 
multi-level Json into a 1 level deep object with "path":"value" pairs. The 
path syntax is "/" to be consistent with the "system tiddler" naming 
convention in TW.

The current demo wiki/docs are located 
here: https://chronicles.wiki/TW5-JsonMangler/

You can use "index-path syntax" in any existing filter or widget. (Note: 
Stable on 5.1.23, I have not tested against the recent pre-release).

Mahalo (thanks) for trying my plugin!

Best,
Joshua Fontany
On Wednesday, April 28, 2021 at 8:42:01 AM UTC-7 Mark S. wrote:

> <$list filter="[[mydata]getindex[0/age]]"/>
>
> (assuming JSON mangler)
>
> On Wednesday, April 28, 2021 at 8:02:14 AM UTC-7 jn.pierr...@gmail.com 
> wrote:
>
>> How can I access json data in a smart way when my code is not in the 
>> context of a button-started action (which I call action mode)?
>>
>> say this simple text of my "data" tiddler:
>> -
>> [
>>   { "captain": "Hook", "age": "42" },
>>   { "captain": "Planet", "age": "37" }
>> ]
>>
>> the indexes filter returns 0 and 1.
>>
>> with get[0] I would get { "captain": "Hook", "age": "42" }
>>
>> I can't get[0/name] to get "Hook".
>>
>> IS there a plugin or any other mean to get:
>> - the names of the fileds within any json objects?
>> - getting any values from json with a syntax like that I give, or even a 
>> more ambitious xpath query?
>>
>> I have installed json mangler. but I have no docs about it, not even 
>> knowing what it really does besides providing a bar for json tiddlers?
>>
>> regards.
>>
>> -- 
>> Jean-Pierre
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8b3dfc9-451f-454b-b42e-d8bf74f88481n%40googlegroups.com.


Re: [tw5] Re: Tiddlywiki Mobile App with Highlight Feature

2021-04-28 Thread Soren Bjornstad
Just to be clear since it seems there is some confusion, what TiddlyWiki 
plugins are available does not depend at all on what app you are using to 
access your TiddlyWiki. There might be a handful of exceptions if a plugin 
relies on features that are browser-specific, but those situations are 
quite rare.

On Wednesday, April 28, 2021 at 2:28:54 PM UTC-5 si wrote:

> Plugins are installed into TiddlyWiki - check out the demo page for that 
> plugin to see installation instructions. Tiddloid is just for viewing a 
> TiddlyWiki file.
>
> On Tuesday, 27 April 2021 at 21:03:23 UTC+1 Java Development wrote:
>
>> How to integrate the plugin 
>> https://github.com/bimlas/tw5-highlight-searched-text/  into Tiddloid 
>>  ???
>>
>> Is it possible to raise a request in Tiddloid 
>>  to integrate the above plugin as it 
>> would be useful for all
>>
>> Thanks
>>
>> On Wed, Apr 28, 2021 at 1:10 AM si  wrote:
>>
>>> I use Tiddloid , which should work 
>>> fine with that plugin.
>>>
>>> On Tuesday, 27 April 2021 at 14:52:10 UTC+1 Java Development wrote:
>>>
 Any good one for android with the mentioned plugin??

 Thank you

 On Tue 27 Apr, 2021, 6:21 PM ludwa6,  wrote:

> Yes JavaDev: the Quine2 app makes my several TW instances -including 
> all plugins- available on my iOS devices (phone & pad) via iCloud in 
> fully 
> interactive mode. 
> (NB: i can't speak to Android nor that particular plugin you mention).
>
> /walt
>
> On Tuesday, April 27, 2021 at 10:53:10 AM UTC+1 Java Development wrote:
>
>>   Hi,
>>
>> The AndTidWiki is a good mobile app...but doesn't have the following 
>> plugin
>>
>> Below highlight plugin 
>> https://github.com/bimlas/tw5-highlight-searched-text/ is awesome. 
>>
>> Does Any mobile app available for Tiddly Wiki?
>> Does Any Mobile app available for tiddly wiki with above highlight 
>> beautiful plugin?
>>
>> Thanks.
>>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/54131f7f-0c4c-4a61-ada2-1ab149a4fc13n%40googlegroups.com
>  
> 
> .
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tiddlywiki+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/664c20c1-8656-494d-8e9c-8c4b932b9376n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4ddc7469-a682-4ac9-9fb2-38f6f7378723n%40googlegroups.com.


Re: [tw5] Re: Importing large number of html files - tagging?

2021-04-28 Thread Ray Vermey
That worked like a charm! Thanks.

Jopplin is great but i like the flexibility of TW.
Though i hate the learning curve..
For instance HOW did you know/learn this trick?

So i want to try to work full blown with TW, though the mobile handling is
a bit cumbersome..

Ray

Op wo 28 apr. 2021 om 19:19 schreef 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com>:

> I don't know of a plugin to do this, but there is a trick that might help.
>
> Do your imports, but don't hit the final "import" button. Instead, clone
> the import dialog, change it to a name like "myimports", then change field
> "plugin-type" to "plugin" .
>
> Now you can do your import on the original import box.
>
> You can write a quick script to apply your new tag, using a list widget
> like
>
> <$button>Apply label
> <$list filter="[[myimports]plugintiddlers[]]">
> <$action-listops $tags="NewTag" />
> 
> 
>
> I was just thinking of trying Joplin. Why are you leaving it ?
>
> Good luck!
>
>
> On Wednesday, April 28, 2021 at 7:03:13 AM UTC-7 rayv...@gmail.com wrote:
>
>> Hi
>>
>> i am about to import a large number of html files exported from Jopplin.
>> Now I would like to tag them before importing.
>> Is there a plugin for that somewhere?
>>
>> Thanks
>>
>> Ray
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/Drg4ig1T_yk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/9a6f42e1-c0ea-4991-a3bc-062d06322409n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9Awa5n8w5Mh%3DSCrX7WwtcHJ%2BDbe%3Dc96HYA0q28esDOQrw%40mail.gmail.com.


Re: [tw5] Re: Tiddlywiki Mobile App with Highlight Feature

2021-04-28 Thread si
Plugins are installed into TiddlyWiki - check out the demo page for that 
plugin to see installation instructions. Tiddloid is just for viewing a 
TiddlyWiki file.

On Tuesday, 27 April 2021 at 21:03:23 UTC+1 Java Development wrote:

> How to integrate the plugin 
> https://github.com/bimlas/tw5-highlight-searched-text/  into Tiddloid 
>  ???
>
> Is it possible to raise a request in Tiddloid 
>  to integrate the above plugin as it 
> would be useful for all
>
> Thanks
>
> On Wed, Apr 28, 2021 at 1:10 AM si  wrote:
>
>> I use Tiddloid , which should work 
>> fine with that plugin.
>>
>> On Tuesday, 27 April 2021 at 14:52:10 UTC+1 Java Development wrote:
>>
>>> Any good one for android with the mentioned plugin??
>>>
>>> Thank you
>>>
>>> On Tue 27 Apr, 2021, 6:21 PM ludwa6,  wrote:
>>>
 Yes JavaDev: the Quine2 app makes my several TW instances -including 
 all plugins- available on my iOS devices (phone & pad) via iCloud in fully 
 interactive mode. 
 (NB: i can't speak to Android nor that particular plugin you mention).

 /walt

 On Tuesday, April 27, 2021 at 10:53:10 AM UTC+1 Java Development wrote:

>   Hi,
>
> The AndTidWiki is a good mobile app...but doesn't have the following 
> plugin
>
> Below highlight plugin 
> https://github.com/bimlas/tw5-highlight-searched-text/ is awesome. 
>
> Does Any mobile app available for Tiddly Wiki?
> Does Any Mobile app available for tiddly wiki with above highlight 
> beautiful plugin?
>
> Thanks.
>
 -- 
 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 view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/54131f7f-0c4c-4a61-ada2-1ab149a4fc13n%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/664c20c1-8656-494d-8e9c-8c4b932b9376n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/58bb7afd-c1e6-48c3-83e8-e160822dbafdn%40googlegroups.com.


[tw5] Re: Change the title of a tiddler from the tiddler itself?

2021-04-28 Thread si
Thank you very much Mario! I think a button may make more sense anyway, but 
am I right to assume that it is not (easily) possible to have the title 
automatically update as I type?
On Tuesday, 27 April 2021 at 21:05:11 UTC+1 PMario wrote:

> Hi,
>
> Read this: https://tiddlywiki.com/#WidgetMessage%3A%20tm-rename-tiddler 
> ... especially the "renameInxxx" parameters.
>
> try: 
>
> \define actions()
> <$action-sendmessage $message="tm-rename-tiddler" from=<> 
> to={{{ [{!!book-title}addsuffix[ - ]addsuffix{!!author}] }}} />
>
> \end
>
> <$list filter=[all[current]tag[book]]>
>
> |Book title|<$edit-text field=book-title />|
> |Author|<$edit-text field=author />|
>
> <$button actions=<>>click
> 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/46661d02-2a56-47e3-961f-2ee5679a1c87n%40googlegroups.com.


[tw5] Re: folding sections in tidler

2021-04-28 Thread paulgilbert2000
apologies , what i really meant was  using a details widget , i just want 
to expand /collapse the results for every filter , please let me know if 
you need any clarificaiton

On Wednesday, April 28, 2021 at 4:46:46 AM UTC+2 Mark S. wrote:

> You seem to have your select widget inside the main list filter, and so 
> your selection gets repeated over and over.
>
> You probably want to take the select widget outside the main list widget. 
> Then your code will be something like:
>
> <$select  as in your text ...>
>
> <$list filter="[!has[draft.of]status{!!status}priority{!!priority}]">
>
> (display results here)
>
> 
>
> On Tuesday, April 27, 2021 at 6:38:42 PM UTC-7 mohamed...@hotmail.com 
> wrote:
>
>> Hi,
>>
>> i have 3 filter that lists tiddlers matching a specific field value, one 
>> filter  for "in house" another for "pending" and one for "with Vendor"
>>
>> i want every filter have its results foldable , so in the below screen 
>> shot , i want it to be able  to click an arrow for example using the select 
>> widget which would collapse expand the tidlers with status  pending 
>>
>> i tried several things with no luck , the select widget doesnt seem to 
>> accept my filter, 
>>
>> [image: Capture7.PNG]
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7f5044c2-3644-4426-b394-a8be1cbd354dn%40googlegroups.com.


[tw5] Re: Filter only tiddlers with a tag, where other tiddlers are tagged with their title

2021-04-28 Thread si
Try this:

[tag[task]!field:status[done]tags[]tag[project]]

I'm assuming that you are using a "status" field to indicate that a task is 
complete.

On Wednesday, 28 April 2021 at 15:03:31 UTC+1 Bastian wrote:

> Hi all,
>
> I'm trying to create a project overview with projects that have open tasks.
> The current system has tiddlers that are tagged "project" which defines 
> them as a project.
> A task is another tiddler, that has the projects title as a tag and 
> additionally the tag "task" assigned to them.
>
> I'd like to achieve an overview with a list of only the projects, that 
> have open tasks, but I can't get it to work.
> This lists me all open projects:
>
> [tag[project]!status[done]!status[REJECTED]!status[ONHOLD]sort[]]
>
> and this lists me all open tasks under the list of the projects:
>
> [!has[draft.of]tag[task]tag!status[done]!status[REJECTED]] 
> [enlist{!!aliases}tagging[]tag[task]!status[done]!status[REJECTED]]
>
> What I can't get to work is that I only want to be list the projects that 
> have open tasks, and not every project.
>
> I tried to filter for tiddlers with the tag task and the currentTiddler in 
> the tag but that just gave me an empty result.
>
> Can someone point me in the right direction what the first filter 
> expression would have to look like?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7ad933c2-87e2-44fa-81be-468e0c051b7bn%40googlegroups.com.


Re: [tw5] html id and transclusion

2021-04-28 Thread Jeremy Ruston
Hi Jean-Pierre

I think you’re asking why the IDs can’t be handled automatically, without the 
author having to worry about them. I think that that may be possible in simple 
cases, but not in general. Typically one needs the same ID in multiple places, 
which won’t happen just by using the qualify macro. It’s only the simple cases 
where the two elements are adjacent within the same transclusion that one can 
get away with using the qualify macro without needing to think about what is 
actually going on.

So, to summarise:

* Yes, we can use IDs in TiddlyWiki, and we have extensive infrastructure that 
can be used to simplify the job, but using those features requires an 
understanding of what is going on. One may be able to package simple cases like 
a label/input pair into a reusable macro, but it’s not possible to encapsulate 
the complexity in general
* If you want to explore using IDs, it would be worth looking at the 
infrastructure we have for dealing with qualified state tiddler titles

Meanwhile, the frustrating thing remains that all of this is only necessary 
because the WCAG spec ignores the underlying HTML spec (and the implementations 
of browsers and screen readers).

Best wishes

Jeremy.



> On 28 Apr 2021, at 19:50, Jean-Pierre Rivière  
> wrote:
> 
> >>This is the label
> >/>
> 
> This is hand-made html code. how would I be able to get the input behave in 
> tiddlywiki as if it was done by the button widget?
> 
> could a pragma like \useIdInButtons be used to allow a code like <$button 
> actions=<> id=auto/> which would construct an input with an 
> id=<>? No other value than "auto" would be allowed for "id", 
> making uniformed use of it fail and force coders to look at the doc?
> 
> Le mercredi 28 avril 2021 à 17:34:14 UTC+2, jeremy...@gmail.com a écrit :
> Hi Jean-Pierre
> 
>> On 28 Apr 2021, at 15:48, Jean-Pierre Rivière > > wrote:
>> 
>> Thank you for the clarification. I understand your point of view.
>> 
>> Now if I want to have a go at it, for instance so that my input buttons can 
>> get an id from a parameter, how should I proceed? From where should I start? 
>> I'm sure this is not trivial but I'm eager to try.
> 
> It’s essentially the same problem as we encounter when generating unique 
> state tiddler titles. Thus you could use the <> macro like so:
> 
> >>This is the label
> >/>
> 
> The qualify macro returns its argument with a string of numbers appended that 
> is derived from the ancestor transclusions, making an ID that will be unique 
> within a transclusion.
> 
> Best wishes
> 
> Jeremy
> 
> 
>> 
>> regards.
>> 
>> Le mercredi 28 avril 2021 à 12:32:33 UTC+2, jeremy...@gmail.com 
>>  a écrit :
>>> In a recent thread, Jeremy told me that having id elements is a bit of a 
>>> problem because each tiddler can be transcluded more than once into any 
>>> given tiddler' which would result into a broken html with a repeated id 
>>> value.
>> 
>>> 
>>> This is true.
>>> 
>>> But if id are required, shouldn't it be up to the programmer to make sure 
>>> there is no problem? Of course, the doc would tell that specifying id is a 
>>> tricky things to be done with great precaution. But this is IMHO better 
>>> that forbidding id specification altogether.
>>> 
>>> As was the exposed, this has to do with WCAG requirements ignoring the 
>>> CORRECT HTML (stated as accessible on official docs) 
>>>  are requiring  as 
>>> the only validating way of accessible code. (with some variations for 
>>> WAI-ARIA)
>> 
>> 
>> Just to be clear, the core doesn't forbid using "id" attributes, it's 
>> perfectly possible to use them as long as care is taken. The thing that's 
>> particularly hard is to use IDs within a reusable component without the user 
>> of that component being aware of the mechanism. So, the core avoids the 
>> complexity of these techniques.
>> 
>> Best wishes
>> 
>> Jeremy.
>> 
>> 
>> 
>> 
>>> 
>>> -- 
>>> Jean-Pierre
>>> 
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com
>>>  
>>> .
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com 
>> .
> 
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/0805f885-ed1b-441a-9552-50758afe0b1fn%40googlegroups.com
>>  
>> 

[tw5] Re: Filter only tiddlers with a tag, where other tiddlers are tagged with their title

2021-04-28 Thread si
Try this:

[tag[project]tagging[]tag[task]!field:status[done]]

I'm assuming that you are using a "status" field to indicate that a task is 
complete.

On Wednesday, 28 April 2021 at 15:03:31 UTC+1 Bastian wrote:

> Hi all,
>
> I'm trying to create a project overview with projects that have open tasks.
> The current system has tiddlers that are tagged "project" which defines 
> them as a project.
> A task is another tiddler, that has the projects title as a tag and 
> additionally the tag "task" assigned to them.
>
> I'd like to achieve an overview with a list of only the projects, that 
> have open tasks, but I can't get it to work.
> This lists me all open projects:
>
> [tag[project]!status[done]!status[REJECTED]!status[ONHOLD]sort[]]
>
> and this lists me all open tasks under the list of the projects:
>
> [!has[draft.of]tag[task]tag!status[done]!status[REJECTED]] 
> [enlist{!!aliases}tagging[]tag[task]!status[done]!status[REJECTED]]
>
> What I can't get to work is that I only want to be list the projects that 
> have open tasks, and not every project.
>
> I tried to filter for tiddlers with the tag task and the currentTiddler in 
> the tag but that just gave me an empty result.
>
> Can someone point me in the right direction what the first filter 
> expression would have to look like?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/66746200-67e3-4bc8-b690-7b643a0abb70n%40googlegroups.com.


Re: [tw5] html id and transclusion

2021-04-28 Thread Jean-Pierre Rivière
>>This is the label
>/>

This is hand-made html code. how would I be able to get the input behave in 
tiddlywiki as if it was done by the button widget?

could a pragma like \useIdInButtons be used to allow a code like <$button 
actions=<> id=auto/> which would construct an input with an 
id=<>? No other value than "auto" would be allowed for "id", 
making uniformed use of it fail and force coders to look at the doc?

Le mercredi 28 avril 2021 à 17:34:14 UTC+2, jeremy...@gmail.com a écrit :

> Hi Jean-Pierre
>
> On 28 Apr 2021, at 15:48, Jean-Pierre Rivière  
> wrote:
>
> Thank you for the clarification. I understand your point of view.
>
> Now if I want to have a go at it, for instance so that my input buttons 
> can get an id from a parameter, how should I proceed? From where should I 
> start? I'm sure this is not trivial but I'm eager to try.
>
>
> It’s essentially the same problem as we encounter when generating unique 
> state tiddler titles. Thus you could use the <> macro like so:
>
> >>This is the label
> >/>
>
> The qualify macro returns its argument with a string of numbers appended 
> that is derived from the ancestor transclusions, making an ID that will be 
> unique within a transclusion.
>
> Best wishes
>
> Jeremy
>
>
> regards.
>
> Le mercredi 28 avril 2021 à 12:32:33 UTC+2, jeremy...@gmail.com a écrit :
>
>> In a recent thread, Jeremy told me that having id elements is a bit of a 
>> problem because each tiddler can be transcluded more than once into any 
>> given tiddler' which would result into a broken html with a repeated id 
>> value.
>>
>>
>> This is true.
>>
>> But if id are required, shouldn't it be up to the programmer to make sure 
>> there is no problem? Of course, the doc would tell that specifying id is a 
>> tricky things to be done with great precaution. But this is IMHO better 
>> that forbidding id specification altogether.
>>
>> As was the exposed, this has to do with WCAG requirements ignoring the 
>> CORRECT HTML (stated as accessible on official docs) 
>>  are requiring  as 
>> the only validating way of accessible code. (with some variations for 
>> WAI-ARIA)
>>
>>
>> Just to be clear, the core doesn't forbid using "id" attributes, it's 
>> perfectly possible to use them as long as care is taken. The thing that's 
>> particularly hard is to use IDs within a reusable component without the 
>> user of that component being aware of the mechanism. So, the core avoids 
>> the complexity of these techniques.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>>
>>
>> -- 
>> Jean-Pierre
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com
>>  
>> 
>> .
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/0805f885-ed1b-441a-9552-50758afe0b1fn%40googlegroups.com
>  
> 
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4531f079-cb8d-40e3-a7a3-7817cb5568a3n%40googlegroups.com.


Re: [tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Jean-Pierre Rivière
Thank you for the nsort tip. but it's not what I wanted here: it puts 
beta12 between beta1 and beta3.

Le mercredi 28 avril 2021 à 18:55:12 UTC+2, taale...@gmail.com a écrit :

> Ack!! 
>
> nsort, not north
>
> On Wed., Apr. 28, 2021, 9:05 a.m. Jean-Pierre Rivière, <
> jn.pierr...@gmail.com> wrote:
>
>> very fine!!! eager to see what other functionality will be given too.
>>
>> Le mercredi 28 avril 2021 à 17:02:12 UTC+2, saq.i...@gmail.com a écrit :
>>
>>> I have a PR almost ready that includes this as well as other sorting 
>>> functionality.
>>>
>>>
>>> On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com 
>>> wrote:
>>>
 I've just taken the time to understand how to use sortsub. I should 
 have done it before, et really does what I was trying to get with a lot of 
 efforts and far too much code!

 But there's a kind of  sort that sortsub lack, which is alphanumeric. 
 Just like there is sortan and sort filter.

 If my sortsub subfilter reference technical names like foo123, bar32 
 and foo34, I'd like that foo34 be before foo123 and only alphanumerical 
 sorting can do that.

 regards.

 -- 
 Jean-Pierre

>>> -- 
>>
> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/0b99c5bc-957d-4cd1-be01-ec3e9dee8fd1n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6777a304-b9b8-4552-9c12-e98b6a6332b8n%40googlegroups.com.


Re: [tw5] Re: Tiddlywiki right sidebar: How do you use it?

2021-04-28 Thread Mohammad Rahmani
Hi Florian,
Thank you for sharing your experience! Yes on a mobile phone or as a
website or documentation app, one feels a lot of spaces at the right!
But as you work with Tiddlywiki specially in production mode (I mean not
for reading only) one realizes the usability of different elements!

Recently I am watching some videos by Jeremy (not new ones) where he talks
about Tiddlywiki and different use cases, history and philosophy
and they are really useful for finding how better one can use the tool.



Best wishes
Mohammad


On Wed, Apr 28, 2021 at 3:46 PM 'Florian Felix' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> I have kind of set to the whitespace theme as a default. Combined with the
> mobile plugin it is basically platform agnostic and opens up a lot of space
> for stroll. For me, TW was to cluttered from the get go, I kind of had the
> bias that it would not be very easily usable. Which it maybe shouldn’t be,
> I think now, it’s made to explore. On the other hand, you can actually do a
> lot in tw without that much configuration, and whitespace just works better
> visually I think.
> a default configuration I have on the sidebar is to put all content
> related tabs into one: the default ones „recent“ and „open“, and some
> custom overviews.
>
> Mohammad schrieb am Dienstag, 27. April 2021 um 08:53:45 UTC+2:
>
>> The sidebar is oen the most powerful designs of Tiddlywiki, always
>> underestimated and people look for a left sidebar (like other common web
>> pages where they are mostly used for menus or ads) or hiding it?
>>
>> So lets share your experiences,
>>
>>
>>- how do you use the right sidebar (do you see it at all?)
>>- what do you like to see on the sight sidebar?
>>- can you give some online examples of TW right sidebar?
>>
>>
>>
>> Best wishes
>> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/fb34cf56-c757-4d9b-9bf1-3fa836c75a6cn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB8hYgUVR2%2BDij%3DYVgk5JzKWw1fKrMhVkgK-T-s6GdW7A%40mail.gmail.com.


[tw5] Re: Importing large number of html files - tagging?

2021-04-28 Thread 'Mark S.' via TiddlyWiki
I don't know of a plugin to do this, but there is a trick that might help.

Do your imports, but don't hit the final "import" button. Instead, clone 
the import dialog, change it to a name like "myimports", then change field 
"plugin-type" to "plugin" .

Now you can do your import on the original import box.

You can write a quick script to apply your new tag, using a list widget like

<$button>Apply label
<$list filter="[[myimports]plugintiddlers[]]">
<$action-listops $tags="NewTag" />



I was just thinking of trying Joplin. Why are you leaving it ?

Good luck!


On Wednesday, April 28, 2021 at 7:03:13 AM UTC-7 rayv...@gmail.com wrote:

> Hi
>
> i am about to import a large number of html files exported from Jopplin.
> Now I would like to tag them before importing.
> Is there a plugin for that somewhere?
>
> Thanks
>
> Ray
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9a6f42e1-c0ea-4991-a3bc-062d06322409n%40googlegroups.com.


Re: [tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Aidan Grey
Ack!!

nsort, not north

On Wed., Apr. 28, 2021, 9:05 a.m. Jean-Pierre Rivière, <
jn.pierre.rivi...@gmail.com> wrote:

> very fine!!! eager to see what other functionality will be given too.
>
> Le mercredi 28 avril 2021 à 17:02:12 UTC+2, saq.i...@gmail.com a écrit :
>
>> I have a PR almost ready that includes this as well as other sorting
>> functionality.
>>
>>
>> On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com
>> wrote:
>>
>>> I've just taken the time to understand how to use sortsub. I should have
>>> done it before, et really does what I was trying to get with a lot of
>>> efforts and far too much code!
>>>
>>> But there's a kind of  sort that sortsub lack, which is alphanumeric.
>>> Just like there is sortan and sort filter.
>>>
>>> If my sortsub subfilter reference technical names like foo123, bar32 and
>>> foo34, I'd like that foo34 be before foo123 and only alphanumerical sorting
>>> can do that.
>>>
>>> regards.
>>>
>>> --
>>> Jean-Pierre
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0b99c5bc-957d-4cd1-be01-ec3e9dee8fd1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJu7H0ap%3DfvX8z5qintrMQkN3jrawwJ2LDHjwU2JsyAgy9v7hA%40mail.gmail.com.


Re: [tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Aidan Grey
Look up north... That may be what you want

On Wed., Apr. 28, 2021, 9:05 a.m. Jean-Pierre Rivière, <
jn.pierre.rivi...@gmail.com> wrote:

> very fine!!! eager to see what other functionality will be given too.
>
> Le mercredi 28 avril 2021 à 17:02:12 UTC+2, saq.i...@gmail.com a écrit :
>
>> I have a PR almost ready that includes this as well as other sorting
>> functionality.
>>
>>
>> On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com
>> wrote:
>>
>>> I've just taken the time to understand how to use sortsub. I should have
>>> done it before, et really does what I was trying to get with a lot of
>>> efforts and far too much code!
>>>
>>> But there's a kind of  sort that sortsub lack, which is alphanumeric.
>>> Just like there is sortan and sort filter.
>>>
>>> If my sortsub subfilter reference technical names like foo123, bar32 and
>>> foo34, I'd like that foo34 be before foo123 and only alphanumerical sorting
>>> can do that.
>>>
>>> regards.
>>>
>>> --
>>> Jean-Pierre
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0b99c5bc-957d-4cd1-be01-ec3e9dee8fd1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJu7H0YEOmxPRx1%3D-fcjG1-S2qm9NxkXfu_v8Vdk4Pz_ua1ByQ%40mail.gmail.com.


[tw5] Re: json access when not in action mode?

2021-04-28 Thread 'Mark S.' via TiddlyWiki
<$list filter="[[mydata]getindex[0/age]]"/>

(assuming JSON mangler)

On Wednesday, April 28, 2021 at 8:02:14 AM UTC-7 jn.pierr...@gmail.com 
wrote:

> How can I access json data in a smart way when my code is not in the 
> context of a button-started action (which I call action mode)?
>
> say this simple text of my "data" tiddler:
> -
> [
>   { "captain": "Hook", "age": "42" },
>   { "captain": "Planet", "age": "37" }
> ]
>
> the indexes filter returns 0 and 1.
>
> with get[0] I would get { "captain": "Hook", "age": "42" }
>
> I can't get[0/name] to get "Hook".
>
> IS there a plugin or any other mean to get:
> - the names of the fileds within any json objects?
> - getting any values from json with a syntax like that I give, or even a 
> more ambitious xpath query?
>
> I have installed json mangler. but I have no docs about it, not even 
> knowing what it really does besides providing a bar for json tiddlers?
>
> regards.
>
> -- 
> Jean-Pierre
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edb1bfef-56d7-4c9a-94ad-03490e7fabf6n%40googlegroups.com.


Re: [tw5] html id and transclusion

2021-04-28 Thread Jeremy Ruston
Hi Jean-Pierre

> On 28 Apr 2021, at 15:48, Jean-Pierre Rivière  
> wrote:
> 
> Thank you for the clarification. I understand your point of view.
> 
> Now if I want to have a go at it, for instance so that my input buttons can 
> get an id from a parameter, how should I proceed? From where should I start? 
> I'm sure this is not trivial but I'm eager to try.

It’s essentially the same problem as we encounter when generating unique state 
tiddler titles. Thus you could use the <> macro like so:

>>This is the label
>/>

The qualify macro returns its argument with a string of numbers appended that 
is derived from the ancestor transclusions, making an ID that will be unique 
within a transclusion.

Best wishes

Jeremy

> 
> regards.
> 
> Le mercredi 28 avril 2021 à 12:32:33 UTC+2, jeremy...@gmail.com 
>  a écrit :
>> In a recent thread, Jeremy told me that having id elements is a bit of a 
>> problem because each tiddler can be transcluded more than once into any 
>> given tiddler' which would result into a broken html with a repeated id 
>> value.
> 
>> 
>> This is true.
>> 
>> But if id are required, shouldn't it be up to the programmer to make sure 
>> there is no problem? Of course, the doc would tell that specifying id is a 
>> tricky things to be done with great precaution. But this is IMHO better that 
>> forbidding id specification altogether.
>> 
>> As was the exposed, this has to do with WCAG requirements ignoring the 
>> CORRECT HTML (stated as accessible on official docs)  
>> are requiring  as the only validating way of 
>> accessible code. (with some variations for WAI-ARIA)
> 
> 
> Just to be clear, the core doesn't forbid using "id" attributes, it's 
> perfectly possible to use them as long as care is taken. The thing that's 
> particularly hard is to use IDs within a reusable component without the user 
> of that component being aware of the mechanism. So, the core avoids the 
> complexity of these techniques.
> 
> Best wishes
> 
> Jeremy.
> 
> 
> 
> 
>> 
>> -- 
>> Jean-Pierre
>> 
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com
>>  
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/0805f885-ed1b-441a-9552-50758afe0b1fn%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2FA9D419-51A6-4B2C-B21E-6B77A3999686%40gmail.com.


[tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Jean-Pierre Rivière
very fine!!! eager to see what other functionality will be given too.

Le mercredi 28 avril 2021 à 17:02:12 UTC+2, saq.i...@gmail.com a écrit :

> I have a PR almost ready that includes this as well as other sorting 
> functionality.
>
>
> On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com 
> wrote:
>
>> I've just taken the time to understand how to use sortsub. I should have 
>> done it before, et really does what I was trying to get with a lot of 
>> efforts and far too much code!
>>
>> But there's a kind of  sort that sortsub lack, which is alphanumeric. 
>> Just like there is sortan and sort filter.
>>
>> If my sortsub subfilter reference technical names like foo123, bar32 and 
>> foo34, I'd like that foo34 be before foo123 and only alphanumerical sorting 
>> can do that.
>>
>> regards.
>>
>> -- 
>> Jean-Pierre
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0b99c5bc-957d-4cd1-be01-ec3e9dee8fd1n%40googlegroups.com.


[tw5] json access when not in action mode?

2021-04-28 Thread Jean-Pierre Rivière
How can I access json data in a smart way when my code is not in the 
context of a button-started action (which I call action mode)?

say this simple text of my "data" tiddler:
-
[
  { "captain": "Hook", "age": "42" },
  { "captain": "Planet", "age": "37" }
]

the indexes filter returns 0 and 1.

with get[0] I would get { "captain": "Hook", "age": "42" }

I can't get[0/name] to get "Hook".

IS there a plugin or any other mean to get:
- the names of the fileds within any json objects?
- getting any values from json with a syntax like that I give, or even a 
more ambitious xpath query?

I have installed json mangler. but I have no docs about it, not even 
knowing what it really does besides providing a bar for json tiddlers?

regards.

-- 
Jean-Pierre

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/234cbae9-e66c-4bb8-a7e3-44184f6cdc05n%40googlegroups.com.


[tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Saq Imtiaz
I have a PR almost ready that includes this as well as other sorting 
functionality.


On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com 
wrote:

> I've just taken the time to understand how to use sortsub. I should have 
> done it before, et really does what I was trying to get with a lot of 
> efforts and far too much code!
>
> But there's a kind of  sort that sortsub lack, which is alphanumeric. Just 
> like there is sortan and sort filter.
>
> If my sortsub subfilter reference technical names like foo123, bar32 and 
> foo34, I'd like that foo34 be before foo123 and only alphanumerical sorting 
> can do that.
>
> regards.
>
> -- 
> Jean-Pierre
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5076971-1a13-4422-b4cd-1ddc01010d90n%40googlegroups.com.


[tw5] Re: Filter only tiddlers with a tag, where other tiddlers are tagged with their title

2021-04-28 Thread Charlie Veniot
G'day,

Silly question:  is the status field on project tiddlers, or is the status 
field on task tiddlers?

On Wednesday, April 28, 2021 at 11:03:31 AM UTC-3 Bastian wrote:

> Hi all,
>
> I'm trying to create a project overview with projects that have open tasks.
> The current system has tiddlers that are tagged "project" which defines 
> them as a project.
> A task is another tiddler, that has the projects title as a tag and 
> additionally the tag "task" assigned to them.
>
> I'd like to achieve an overview with a list of only the projects, that 
> have open tasks, but I can't get it to work.
> This lists me all open projects:
>
> [tag[project]!status[done]!status[REJECTED]!status[ONHOLD]sort[]]
>
> and this lists me all open tasks under the list of the projects:
>
> [!has[draft.of]tag[task]tag!status[done]!status[REJECTED]] 
> [enlist{!!aliases}tagging[]tag[task]!status[done]!status[REJECTED]]
>
> What I can't get to work is that I only want to be list the projects that 
> have open tasks, and not every project.
>
> I tried to filter for tiddlers with the tag task and the currentTiddler in 
> the tag but that just gave me an empty result.
>
> Can someone point me in the right direction what the first filter 
> expression would have to look like?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/986802a2-3dc3-4264-ade5-c3e321902412n%40googlegroups.com.


[tw5] alphanumerical sort for sortsub

2021-04-28 Thread Jean-Pierre Rivière
I've just taken the time to understand how to use sortsub. I should have 
done it before, et really does what I was trying to get with a lot of 
efforts and far too much code!

But there's a kind of  sort that sortsub lack, which is alphanumeric. Just 
like there is sortan and sort filter.

If my sortsub subfilter reference technical names like foo123, bar32 and 
foo34, I'd like that foo34 be before foo123 and only alphanumerical sorting 
can do that.

regards.

-- 
Jean-Pierre

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2ede765e-1199-45c3-a5cd-a1ed5fff203fn%40googlegroups.com.


Re: [tw5] Todoist Integration - Guide

2021-04-28 Thread Ray Vermey
Grand!!

If only we could shoot todo items straight into todoist from a tiddler :-)
Or vice versa! :)

THANK YOU!!!

Ray

Op wo 28 apr. 2021 om 14:57 schreef jc-ose :

> Hi TiddlyWiki community!
>
> I'm not sure if there are any Todoist users out there, but if there are,
> you may be interested in learning that there's a way to integrate the
> Todoist web-application directly into a tiddler. I personally have it on my
> dashboard tiddler that shows up when I open the wiki, and find it really
> useful as an additional tool to stay organized.
>
> Before I get started on how to do this, I'll just note that you do not
> need todoist premium for this. It works with the free account (which is
> what I use).
>
> As another quick sidebar, the todoist free account just recently had
> several previously premium features unlocked, including integration with
> google calendar, and comments for your tasks.
>
> Here's how to add Todoist to your wiki:
>
> *Step 1*
> Create a tiddler titled TodoistLogin or something to that effect. You will
> need this to login to todoist once per device. Once you've logged in (per
> device) it should remain that way in your wiki unless you change
> the browser you are using.
>
> In the body of that tiddler add this text:
>
> https://todoist.com/users/showLogin; width="100%"
> height="500px" />
>
> Close the editor, and then login to todoist as you would normally using
> the web app that shows up.
>
> *Step 2*
> In another tiddler, or the main place you'd like to see the Todoist web
> app, simply add the following text where you'd like to see the app in the
> tiddler:
>
> https://todoist.com/; width="100%" height="500px" />
>
> Of course, change the width/ height if you'd like to.
>
> Close the editor.
>
> *Step 3*
> You're done! You should see your tasks show up in the tiddler now. If not
> try a refresh.
>
> As I said you will need to login on each device that you use the wiki on
> (though you may not if you already use Todoist in your browser on that
> machine (I have not tested if that would work).
>
> I use TiddlyDesktop primarily right now, and it works well on that. It
> should work on any modern browser I think.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0b87e61c-c51e-465c-9a0a-85607dbc41ban%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9BevLNL2uxtCgWziUEuP7ryswVTiefpjL5BpzUvZjoE4A%40mail.gmail.com.


Re: [tw5] html id and transclusion

2021-04-28 Thread Jean-Pierre Rivière
Thank you for the clarification. I understand your point of view.

Now if I want to have a go at it, for instance so that my input buttons can 
get an id from a parameter, how should I proceed? From where should I 
start? I'm sure this is not trivial but I'm eager to try.

regards.

Le mercredi 28 avril 2021 à 12:32:33 UTC+2, jeremy...@gmail.com a écrit :

> In a recent thread, Jeremy told me that having id elements is a bit of a 
> problem because each tiddler can be transcluded more than once into any 
> given tiddler' which would result into a broken html with a repeated id 
> value.
>
>
> This is true.
>
> But if id are required, shouldn't it be up to the programmer to make sure 
> there is no problem? Of course, the doc would tell that specifying id is a 
> tricky things to be done with great precaution. But this is IMHO better 
> that forbidding id specification altogether.
>
> As was the exposed, this has to do with WCAG requirements ignoring the 
> CORRECT HTML (stated as accessible on official docs) 
>  are requiring  as 
> the only validating way of accessible code. (with some variations for 
> WAI-ARIA)
>
>
> Just to be clear, the core doesn't forbid using "id" attributes, it's 
> perfectly possible to use them as long as care is taken. The thing that's 
> particularly hard is to use IDs within a reusable component without the 
> user of that component being aware of the mechanism. So, the core avoids 
> the complexity of these techniques.
>
> Best wishes
>
> Jeremy.
>
>
>
>
>
> -- 
> Jean-Pierre
>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0805f885-ed1b-441a-9552-50758afe0b1fn%40googlegroups.com.


[tw5] Filter only tiddlers with a tag, where other tiddlers are tagged with their title

2021-04-28 Thread Bastian
Hi all,

I'm trying to create a project overview with projects that have open tasks.
The current system has tiddlers that are tagged "project" which defines 
them as a project.
A task is another tiddler, that has the projects title as a tag and 
additionally the tag "task" assigned to them.

I'd like to achieve an overview with a list of only the projects, that have 
open tasks, but I can't get it to work.
This lists me all open projects:

[tag[project]!status[done]!status[REJECTED]!status[ONHOLD]sort[]]

and this lists me all open tasks under the list of the projects:

[!has[draft.of]tag[task]tag!status[done]!status[REJECTED]] 
[enlist{!!aliases}tagging[]tag[task]!status[done]!status[REJECTED]]

What I can't get to work is that I only want to be list the projects that 
have open tasks, and not every project.

I tried to filter for tiddlers with the tag task and the currentTiddler in 
the tag but that just gave me an empty result.

Can someone point me in the right direction what the first filter 
expression would have to look like?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7fa594d2-3fcf-4148-889f-792c189c3002n%40googlegroups.com.


[tw5] Importing large number of html files - tagging?

2021-04-28 Thread Ray Vermey
Hi

i am about to import a large number of html files exported from Jopplin.
Now I would like to tag them before importing.
Is there a plugin for that somewhere?

Thanks

Ray

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b539c032-589e-4910-a41b-068062021f26n%40googlegroups.com.


Re: [tw5] Where do I embedd form? I understand TiddlyWiki can't process it, something likeFormspree or Kwes.IO would take care of that.

2021-04-28 Thread Jeremy Ruston
Hi Naim

I adapted your example slightly and tried it in a tiddler on a local wiki. It 
worked for me in that the form was correctly sent to the server.


Your Email

Submit


I’d suggest trying to get the form working correctly within a standalone HTML 
file, and then once that’s working bring it into TiddlyWiki

Best wishes

Jeremy


> On 28 Apr 2021, at 03:27, 'naim.abou.darwish' via TiddlyWiki 
>  wrote:
> 
> Hi,
> Thanks for the awesome work put into TiddlyWiki. A non-linear personal web 
> notebook, fits my messy approach to work.
> I'm trying to collect some info on different dialects. I found a couple of 
> web form services that would work for me, but I can't figure out where to 
> embed the code. 
> from formspree something like
> https://formspree.io/f/{form_id 
> }" method="post">
> Your Email
> 
> Submit
> 
> From kwes.io something like
> 
>  action="https://kwes.io/api/foreign/forms/m6W5ZqUEo9xIbpfpYq36 
> ">
> Your Name
> 
> 
> Submit
> 
> I found this https://kookma.github.io/TW-Scripts/#Html5%20Forms%20Elements 
>  but couldn't 
> figure out where it goes. 
> Any help appreciated, thanks
> 
> Sent with ProtonMail  Secure Email.
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/0IvKbeSbV7XiVU3B0vWP9GXnKPTwD5AoUeu5ceKwucjeWYz7q6LKww-trWNNwPUKSkXUOH445hYwj1xS9SE3pQaTqeMhe2TmsgD0QedeOSc%3D%40protonmail.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/D37DD1CF-57F8-45D2-BFAC-A4CCF277F739%40gmail.com.


[tw5] Re: bug,help me

2021-04-28 Thread 西大
Hi

Thank you, I am using this forum for the first time. I have solved the 
problem, XD.

-touzi

在2021年4月28日星期三 UTC+8 上午4:47:46 写道:

> Hi
> No. It's not a bug. 
>
> As long as 
> https://tiddlywiki.com/#%24%3A%2Fstate%2Ftab%2Fsidebar--595412856 exists 
> it will be used to define the tab that is used in the sidebar. 
> If you delete the tiddler, the Open sidebar will be selected. 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a8f5ccde-9f5c-4425-b148-edd0807a0f99n%40googlegroups.com.


[tw5] Todoist Integration - Guide

2021-04-28 Thread jc-ose
Hi TiddlyWiki community!

I'm not sure if there are any Todoist users out there, but if there are, 
you may be interested in learning that there's a way to integrate the 
Todoist web-application directly into a tiddler. I personally have it on my 
dashboard tiddler that shows up when I open the wiki, and find it really 
useful as an additional tool to stay organized. 

Before I get started on how to do this, I'll just note that you do not need 
todoist premium for this. It works with the free account (which is what I 
use). 

As another quick sidebar, the todoist free account just recently had 
several previously premium features unlocked, including integration with 
google calendar, and comments for your tasks. 

Here's how to add Todoist to your wiki:

*Step 1*
Create a tiddler titled TodoistLogin or something to that effect. You will 
need this to login to todoist once per device. Once you've logged in (per 
device) it should remain that way in your wiki unless you change 
the browser you are using. 

In the body of that tiddler add this text: 

https://todoist.com/users/showLogin; width="100%" 
height="500px" />

Close the editor, and then login to todoist as you would normally using the 
web app that shows up. 

*Step 2*
In another tiddler, or the main place you'd like to see the Todoist web 
app, simply add the following text where you'd like to see the app in the 
tiddler:

https://todoist.com/; width="100%" height="500px" />

Of course, change the width/ height if you'd like to. 

Close the editor. 

*Step 3*
You're done! You should see your tasks show up in the tiddler now. If not 
try a refresh. 

As I said you will need to login on each device that you use the wiki on 
(though you may not if you already use Todoist in your browser on that 
machine (I have not tested if that would work). 

I use TiddlyDesktop primarily right now, and it works well on that. It 
should work on any modern browser I think. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0b87e61c-c51e-465c-9a0a-85607dbc41ban%40googlegroups.com.


[tw5] Re: Tiddlywiki right sidebar: How do you use it?

2021-04-28 Thread 'Florian Felix' via TiddlyWiki
I have kind of set to the whitespace theme as a default. Combined with the 
mobile plugin it is basically platform agnostic and opens up a lot of space 
for stroll. For me, TW was to cluttered from the get go, I kind of had the 
bias that it would not be very easily usable. Which it maybe shouldn’t be, 
I think now, it’s made to explore. On the other hand, you can actually do a 
lot in tw without that much configuration, and whitespace just works better 
visually I think. 
a default configuration I have on the sidebar is to put all content related 
tabs into one: the default ones „recent“ and „open“, and some custom 
overviews. 

Mohammad schrieb am Dienstag, 27. April 2021 um 08:53:45 UTC+2:

> The sidebar is oen the most powerful designs of Tiddlywiki, always 
> underestimated and people look for a left sidebar (like other common web 
> pages where they are mostly used for menus or ads) or hiding it?
>
> So lets share your experiences,
>
>
>- how do you use the right sidebar (do you see it at all?)
>- what do you like to see on the sight sidebar?
>- can you give some online examples of TW right sidebar?
>
>
>
> Best wishes
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb34cf56-c757-4d9b-9bf1-3fa836c75a6cn%40googlegroups.com.


[tw5] Re: transclusion and parameterized template

2021-04-28 Thread Saq Imtiaz
Something you may find useful:

With the Internals plugin 
 
installed, you can turn on the preview in the editor and see the parse tree 
and widget tree for any wikitext.

On Wednesday, April 28, 2021 at 12:04:07 PM UTC+2 jn.pierr...@gmail.com 
wrote:

> Than you Saq!
>
> I had read the «transclusion with templates" doc several times. The hint 
> you've just gave me was not evident from my reading. Although I was 
> skeptical about not finding the widget equivalent of {{tiddler||template}} 
> because I know that each wiki syntax is translated into widgets.
>
> Here is the code if the tiddler used as a form holds two fields 
> "datasource" and "template". The block mode is needed for full wiki syntax 
> support (like a !!title)
>
> <$vars temp={{!!template}}>
> <$tiddler tiddler={{!!datasource}}><$transclude tiddler=<> 
> mode=block/>
> 
>
> Le mardi 27 avril 2021 à 17:45:35 UTC+2, saq.i...@gmail.com a écrit :
>
>> Two things that might be helpful:
>>
>> 1) {{tiddlerName||templateName}}
>>
>> 2) the above is a shortcut syntax for
>> <$tiddler tiddler="tiddlerName">
>> <$translude tiddler="templateName">
>> 
>>
>> See https://tiddlywiki.com/#Transclusion%20with%20Templates
>>
>> On Tuesday, April 27, 2021 at 5:24:01 PM UTC+2 jn.pierr...@gmail.com 
>> wrote:
>>
>>> The transclude widget dos not offer any template use option.
>>>
>>> the wiki syntax for transclusion requires a fixed template although it 
>>> allows for a computed source tiddler.
>>>
>>> That is:
>>>
>>> we can have {{<>!!temp}}
>>>
>>> but not {{<>!!<>}}
>>>
>>> and it would be fine to get <$transclude tiddler=<> 
>>> template=<>/>
>>>
>>> I also tried to have a tiddler where the "datasource" and "template" 
>>> field where valorized at my target values and whose text was
>>>
>>> {{<$transclude field=datasource>>!!<$transclude field=template/>}}
>>> {{<$transclude field=datasource>>!!my-real-template}}
>>>
>>> the second form does work.
>>>
>>> I tried some tricks with text and wikify widgets, but I've never been 
>>> able to parametize the template tiddler name on way or another.
>>>
>>> -- 
>>> Jean-Pierre
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8de61b1c-1189-4d11-908b-f6959a6b4866n%40googlegroups.com.


Re: [tw5] html id and transclusion

2021-04-28 Thread Jeremy Ruston
> In a recent thread, Jeremy told me that having id elements is a bit of a 
> problem because each tiddler can be transcluded more than once into any given 
> tiddler' which would result into a broken html with a repeated id value.
> 
> This is true.
> 
> But if id are required, shouldn't it be up to the programmer to make sure 
> there is no problem? Of course, the doc would tell that specifying id is a 
> tricky things to be done with great precaution. But this is IMHO better that 
> forbidding id specification altogether.
> 
> As was the exposed, this has to do with WCAG requirements ignoring the 
> CORRECT HTML (stated as accessible on official docs)  
> are requiring  as the only validating way of 
> accessible code. (with some variations for WAI-ARIA)

Just to be clear, the core doesn't forbid using "id" attributes, it's perfectly 
possible to use them as long as care is taken. The thing that's particularly 
hard is to use IDs within a reusable component without the user of that 
component being aware of the mechanism. So, the core avoids the complexity of 
these techniques.

Best wishes

Jeremy.




> 
> -- 
> Jean-Pierre
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/DDEE59DF-F889-4678-9591-BBC693F816DA%40gmail.com.


[tw5] html id and transclusion

2021-04-28 Thread Jean-Pierre Rivière
In a recent thread, Jeremy told me that having id elements is a bit of a 
problem because each tiddler can be transcluded more than once into any 
given tiddler' which would result into a broken html with a repeated id 
value.

This is true.

But if id are required, shouldn't it be up to the programmer to make sure 
there is no problem? Of course, the doc would tell that specifying id is a 
tricky things to be done with great precaution. But this is IMHO better 
that forbidding id specification altogether.

As was the exposed, this has to do with WCAG requirements ignoring the 
CORRECT HTML (stated as accessible on official docs) 
 are requiring  as 
the only validating way of accessible code. (with some variations for 
WAI-ARIA)

-- 
Jean-Pierre

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d739e00f-ba01-4425-b0d0-9730d6524986n%40googlegroups.com.


[tw5] Re: transclusion and parameterized template

2021-04-28 Thread Jean-Pierre Rivière
Than you Saq!

I had read the «transclusion with templates" doc several times. The hint 
you've just gave me was not evident from my reading. Although I was 
skeptical about not finding the widget equivalent of {{tiddler||template}} 
because I know that each wiki syntax is translated into widgets.

Here is the code if the tiddler used as a form holds two fields 
"datasource" and "template". The block mode is needed for full wiki syntax 
support (like a !!title)

<$vars temp={{!!template}}>
<$tiddler tiddler={{!!datasource}}><$transclude tiddler=<> 
mode=block/>


Le mardi 27 avril 2021 à 17:45:35 UTC+2, saq.i...@gmail.com a écrit :

> Two things that might be helpful:
>
> 1) {{tiddlerName||templateName}}
>
> 2) the above is a shortcut syntax for
> <$tiddler tiddler="tiddlerName">
> <$translude tiddler="templateName">
> 
>
> See https://tiddlywiki.com/#Transclusion%20with%20Templates
>
> On Tuesday, April 27, 2021 at 5:24:01 PM UTC+2 jn.pierr...@gmail.com 
> wrote:
>
>> The transclude widget dos not offer any template use option.
>>
>> the wiki syntax for transclusion requires a fixed template although it 
>> allows for a computed source tiddler.
>>
>> That is:
>>
>> we can have {{<>!!temp}}
>>
>> but not {{<>!!<>}}
>>
>> and it would be fine to get <$transclude tiddler=<> 
>> template=<>/>
>>
>> I also tried to have a tiddler where the "datasource" and "template" 
>> field where valorized at my target values and whose text was
>>
>> {{<$transclude field=datasource>>!!<$transclude field=template/>}}
>> {{<$transclude field=datasource>>!!my-real-template}}
>>
>> the second form does work.
>>
>> I tried some tricks with text and wikify widgets, but I've never been 
>> able to parametize the template tiddler name on way or another.
>>
>> -- 
>> Jean-Pierre
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/24cf6f35-efc8-4b39-a072-945b32d015f0n%40googlegroups.com.


[tw5] Re: Monospaced block inside a quoted text?

2021-04-28 Thread Xabriña
Of course Soren. Here it is...

Thank you.

El miércoles, 28 de abril de 2021 a las 3:09:09 UTC+2, Soren Bjornstad 
escribió:

> Your snippet works for me, too. Can you export the tiddler you create as a 
> json file and attach that? It's possible you're getting some kind of weird 
> special character in there, and the JSON file will be an exact copy of your 
> tiddler without any issues introduced by copying and pasting.
>
> [image: ksnip_20210427-201022.png]
>
> On Tuesday, April 27, 2021 at 6:37:48 PM UTC-5 Xabriña wrote:
>
>> Well, I don't know what happens. I also get it correctly in the online 
>> version of Tiddlywiki, but in the installation that I have on the laptop it 
>> doesn't work. I have to say that I use Bob.exe, I don't know if that will 
>> be the problem.
>>
>> What I am trying to put is the following:
>>
>> <<<
>>
>> You can use two nested `$list` widgets, like this:
>>
>> ```
>> <$vars tagName="howdy" fieldName="special" fieldValue="Yes">
>> <$list filter="[taghas]">
>><$list filter="[getmatch]" 
>> variable="is_match">
>><>
>>
>> 
>> 
>> ```
>> <<<
>>
>> And this is what appears to me:
>>
>>
>>`
>>  <<<   
>>
>> El miércoles, 28 de abril de 2021 a las 0:20:42 UTC+2, mwik...@gmail.com 
>> escribió:
>>
>>> This seems to work fine unless you have some text in the line 
>>> *immediately* above the <<<. Then everything gets mis-parsed (I think that 
>>> it has something to do with rendering inline vs block). If you leave and at 
>>> least one empty line (with absolutely no spaces) just before <<<, it should 
>>> render as a block quote.
>>>
>>> /Mike
>>>
>>> On Tuesday, April 27, 2021 at 4:22:35 PM UTC-3 Xabriña wrote:
>>>
 this is the text i'm trying to put

 <<<

 You can use two nested `$list` widgets, like this:

 ```
 <$vars tagName="howdy" fieldName="special" fieldValue="Yes">
 <$list filter="[taghas]">
<$list filter="[getmatch]" 
 variable="is_match">
<>

 
 
 ```
 <<<

 El martes, 27 de abril de 2021 a las 21:11:19 UTC+2, Xabriña escribió:

> Hello everybody.
>
> I am trying to do one thing but I am not successful and I am not sure 
> what can be done.
> I try to put a text in monospaced block formating inside a quoted text 
> formating but I can't get it to work. I have just disappeared part of the 
> text of the tiddler. Is there any way that this works or is it that it 
> can't be done?
>
> Thank you so much.
>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a536682-7e6b-4ea9-82f0-3505f6fc311an%40googlegroups.com.


New Tiddler 3.json
Description: application/json


Re: [tw5] Experimental Chromium native saver

2021-04-28 Thread Jeremy Ruston
Hi Dyllon

We actually have the same issue with the GitHub saver module: it saves the 
access token to local storage, which is subject to the same peculiarity of all 
file: URIs counting as a single origin. Thus, if an attacker can induce a user 
to download an HTML file and open it in the browser then they can exfiltrate 
all the access tokens.

I think Google’s answer would be “don’t use file URIs to manage sensitive 
data”, but it makes me sad that there’s so much erosion of the users power to 
manage their own data locally. I think the alternative is to run TiddlyWiki as 
a PWA, but that would subject us to browser compatibility issues, and give end 
users a much more obscure mental model.

Best wishes

Jeremy

> On 27 Apr 2021, at 23:54, Dyllon Gagnier  wrote:
> 
> @mohammad.rahmani the security issue is actually relevant to TiddlyWiki even 
> if the file itself is secured.
> 
> Google decided this was a duplicate issue so I can disclose the issue in 
> full. 1202597 - Security: File Access API Permission Bypass - chromium 
> 
> 
> You can save file/directory handles to IndexedDB (like localStorage, but more 
> confusing) so that you don't need to select the TiddlyWiki
> file from the file picker each time you refresh the tab/open it. However, 
> Chromium has a bug/design which considers everything from file://
> to be from the same origin/domain. This means if you download and double 
> click on some "malicious.html" it could just scan IndexedDB
> and use the same descriptors TiddlyWiki saved for convenience.
> 
> Here is a potential outline of this attack:
> You save teaminfo.html to a shared drive which includes passwords/valuable 
> docs/etc.
> You are writing some Rust code and have the docs open (which the rustdoc tool 
> conveniently generates for you locally).
> Someone, NSA/Russia/whoever, compromised some libraries docs and inserted 
> malicious JS.
> This malicious code gets the file descriptor by scanning IndexedDB and 
> uploads it to some remote location.
> If you happen to have said wiki open in another tab (as I personally often 
> do), it can also overwrite this file and then be ransomware.
> How to avoid this:
> Do not save file descriptors to IndexedDB
> The code I posted doesn't save to IndexedDB, so this is for people modifying 
> the code.
> I am working on a proper plugin for this and my plan is to only save 
> descriptors if not served from file://.
> Use a static server like "pythom -m http.server"
> Firefox doesn't support this API yet, but they seem to be more strict with 
> same origin than Chromium.
> Wait for Chromium to actually fix this issue and enforce a better origin 
> policy for IndexedDB.
> 
> On Mon, Apr 26, 2021 at 8:26 PM Mohammad Rahmani  > wrote:
> 
> 
> On Mon, Apr 26, 2021 at 11:58 PM Dyllon Gagnier  > wrote:
> I would caution on being too hasty with this. There are some serious security 
> implications with opening wikis hosted on the file system (i.e. file://, not 
> talking about local servers or TiddlyDesktop).
> 
> Apparently permissions are shared pretty broadly for anything open on 
> file://. The code I shared is probably ok, but I have reported one issue to 
> the Chromium team that I would like to hear
> their feedback on since it has some potential security implications for 
> TiddlyWiki. I know there are people who store very valuable data on their 
> wikis which is why I want to put a big caveat
> on all this.
> 
> Even with my current concerns, I believe that the API is very safe so long as 
> you serve the wiki from a local server (any local server, doesn't need to be 
> TiddlyWiki specific). For example,
> launching a web server in a directory with the wiki via "python3 -m 
> http.server". There is less of a benefit over the tiddlywiki node server, but 
> I do think there is still a benefit. Since there
> is almost no coupling between the server and TiddlyWiki, you can debug things 
> entirely in the browser and synchronization of state is easier to think 
> about. There is only the state on disk
> and the state of the browser tab, no hidden state/watch issues with the web 
> server.
> 
> I think expanding the code to support wiki folders would be great and would 
> help solve some of the issues around having images embedded in portable wikis.
> 
> I am planning on releasing this as an actual plugin, but in addition to 
> security and versioning, I want the plugin to:
> Support versioning/backup like TiddlyDesktop.
> Have settings for the plugin to control stuff like logging from the component 
> itself without modifying code.
> 
> This looks very promising! Having a simple method for saving is very 
> essential in many use cases! While I understand your concern for security 
> issues, I think still this approach of saving TW is very useful and demanding!
> 
>  
> 
> Thanks,
> Dyllon
> 
> On Sat, Apr 24, 2021 

Re: [tw5] Experimental Chromium native saver

2021-04-28 Thread Mohammad Rahmani
Hi Dyllon!

Many thanks for the detailed answer and clarification!

I hope someday we could have this native saving feature! It would be very
convenient to be able work with Tiddlywiki without any extra requirements!

Best wishes
Mohammad


On Wed, Apr 28, 2021 at 3:29 AM Dyllon Gagnier 
wrote:

> @mohammad.rahmani the security issue is actually relevant to TiddlyWiki
> even if the file itself is secured.
>


> Google decided this was a duplicate issue so I can disclose the issue in
> full. 1202597 - Security: File Access API Permission Bypass - chromium
> 
>
> You can save file/directory handles to IndexedDB (like localStorage, but
> more confusing) so that you don't need to select the TiddlyWiki
> file from the file picker each time you refresh the tab/open it. However,
> Chromium has a bug/design which considers everything from file://
> to be from the same origin/domain. This means if you download and double
> click on some "malicious.html" it could just scan IndexedDB
> and use the same descriptors TiddlyWiki saved for convenience.
>
> Here is a potential outline of this attack:
>
>1. You save teaminfo.html to a shared drive which includes
>passwords/valuable docs/etc.
>2. You are writing some Rust code and have the docs open (which the
>rustdoc tool conveniently generates for you locally).
>3. Someone, NSA/Russia/whoever, compromised some libraries docs and
>inserted malicious JS.
>4. This malicious code gets the file descriptor by scanning IndexedDB
>and uploads it to some remote location.
>5. If you happen to have said wiki open in another tab (as I
>personally often do), it can also overwrite this file and then be
>ransomware.
>
> *How to avoid this:*
>
>- Do not save file descriptors to IndexedDB
>   - The code I posted doesn't save to IndexedDB, so this is for
>   people modifying the code.
>   - I am working on a proper plugin for this and my plan is to only
>   save descriptors if not served from file://.
>- Use a static server like "pythom -m http.server"
>- Firefox doesn't support this API yet, but they seem to be more
>strict with same origin than Chromium.
>- Wait for Chromium to actually fix this issue and enforce a better
>origin policy for IndexedDB.
>
>
> On Mon, Apr 26, 2021 at 8:26 PM Mohammad Rahmani <
> mohammad.rahm...@gmail.com> wrote:
>
>>
>>
>> On Mon, Apr 26, 2021 at 11:58 PM Dyllon Gagnier 
>> wrote:
>>
>>> I would caution on being too hasty with this. There are some serious
>>> security implications with opening wikis hosted on the file system (i.e.
>>> file://, not talking about local servers or TiddlyDesktop).
>>>
>>> Apparently permissions are shared pretty broadly for anything open on
>>> file://. The code I shared is probably ok, but I have reported one issue to
>>> the Chromium team that I would like to hear
>>> their feedback on since it has some potential security implications for
>>> TiddlyWiki. I know there are people who store very valuable data on their
>>> wikis which is why I want to put a big caveat
>>> on all this.
>>>
>>> Even with my current concerns, I believe that the API is very safe so
>>> long as you serve the wiki from a local server (any local server, doesn't
>>> need to be TiddlyWiki specific). For example,
>>> launching a web server in a directory with the wiki via "python3 -m
>>> http.server". There is less of a benefit over the tiddlywiki node server,
>>> but I do think there is still a benefit. Since there
>>> is almost no coupling between the server and TiddlyWiki, you can debug
>>> things entirely in the browser and synchronization of state is easier to
>>> think about. There is only the state on disk
>>> and the state of the browser tab, no hidden state/watch issues with the
>>> web server.
>>>
>>> I think expanding the code to support wiki folders would be great and
>>> would help solve some of the issues around having images embedded in
>>> portable wikis.
>>>
>>> I am planning on releasing this as an actual plugin, but in addition to
>>> security and versioning, I want the plugin to:
>>>
>>>- Support versioning/backup like TiddlyDesktop.
>>>- Have settings for the plugin to control stuff like logging from
>>>the component itself without modifying code.
>>>
>>>
>> This looks very promising! Having a simple method for saving is very
>> essential in many use cases! While I understand your concern for security
>> issues, I think still this approach of saving TW is very useful and
>> demanding!
>>
>>
>>
>>>
>>> Thanks,
>>> Dyllon
>>>
>>> On Sat, Apr 24, 2021 at 9:15 PM TW Tones 
>>> wrote:
>>>
 Folks,

 This may be the opportunity to simplify saving and give the local
 storage plugin or its equivalent safe access to the local system. Thus
 users can access a read only online resource and use it as if it were a
 local app, with their own data stored locally.