[tw5] Re: "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread Charlie Veniot
It would be good for the discourse forum to indicate that moderators can 
also edit members' posts to benefit the community.

That should be mentioned prominently in terms of use or something.

That aside, I wish you and other members all the best over in the discourse 
forum.  You've put together a nice list of benefits, so totally makes sense 
why members have flocked over to that forum.

Me, I'll pop in once in a blue moon, but I will  stay over here in the GG 
forum because this one is much more accommodating re cognitive disability 
challenges.



On Friday, September 17, 2021 at 10:16:20 PM UTC-3 TW Tones wrote:

> Oh,  and you can edit to correct your post :)
>
> I have *just run across the road and discovered that side is much greener*
>  :) 
>
> On Saturday, 18 September 2021 at 11:12:42 UTC+10 TW Tones wrote:
>
>> Folks,
>>
>> As you may know I am a regular contributor to the community. I just want 
>> to let you know although I will always support the use of Google Groups, *I 
>> am now only an occasional visitor here.* Without entering into the 
>> detailed evaluations and comparisons these are *my reasons why*;
>>
>>- Discourse fixed a number of problems introduced to Google Groups of 
>>late eg code highlighting.
>>- Discourse has all the standard features of most of the advance 
>>community tools.
>>- It can almost resemble a chat if more than one person is on line.
>>- I do not use any email features only online.
>>- Its easier to keep track of what I have done or when others post 
>>and reply
>>- Its nice to use emoticon reactions rather than a whole (email) 
>>reply to indicate support, or thank someone.
>>- *I can deal with a larger volume of activity in the same time*
>>- Private messaging without using email is possible (off line 
>>discussions)
>>- I can support new users to Discourse, as I certainly want us to 
>>move, so of course I support it.
>>- Given the way users have being treated by google eg; destroyed 
>>mobile view I no longer trust Google Groups in the long term.
>>
>> There are too many features to name here that I appreciate in Discourse, 
>> but most are reusable skills, because they are available in many other 
>> community solutions, but not in Google Groups, which after all is a 
>> glorified mail list.
>>
>> I did not choose Discourse, but because it has gained some momentum and 
>> is more than adequate if not very good *"I just want to leave".* I tried 
>> to encourage a move many times, but most communities are like herding cats, 
>> but now in the case of Discourse its more like "herding sheep" and a pile 
>> of us sheeple, have *just run across the road and discovered than side 
>> is much greener* :) 
>>
>> I understand there are community members who feel one or more of the 
>> following;
>>
>>- finding the transition difficult, 
>>- need solutions to help on the new platform
>>- are not familiar with these sophisticated solutions
>>- don't like changing something that works for them.
>>
>> I urge you to come over and connect with me @TW_Tones 
>>  I will do all I can to help you 
>> learn how to use discourse and transition (others will help as well).
>>
>> Tones
>>
>

-- 
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/d5b7c1c5-a46b-47ac-8c1a-7a8a75a28ea7n%40googlegroups.com.


[tw5] Re: "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread TW Tones
Oh,  and you can edit to correct your post :)

I have *just run across the road and discovered that side is much greener*
 :) 

On Saturday, 18 September 2021 at 11:12:42 UTC+10 TW Tones wrote:

> Folks,
>
> As you may know I am a regular contributor to the community. I just want 
> to let you know although I will always support the use of Google Groups, *I 
> am now only an occasional visitor here.* Without entering into the 
> detailed evaluations and comparisons these are *my reasons why*;
>
>- Discourse fixed a number of problems introduced to Google Groups of 
>late eg code highlighting.
>- Discourse has all the standard features of most of the advance 
>community tools.
>- It can almost resemble a chat if more than one person is on line.
>- I do not use any email features only online.
>- Its easier to keep track of what I have done or when others post and 
>reply
>- Its nice to use emoticon reactions rather than a whole (email) reply 
>to indicate support, or thank someone.
>- *I can deal with a larger volume of activity in the same time*
>- Private messaging without using email is possible (off line 
>discussions)
>- I can support new users to Discourse, as I certainly want us to 
>move, so of course I support it.
>- Given the way users have being treated by google eg; destroyed 
>mobile view I no longer trust Google Groups in the long term.
>
> There are too many features to name here that I appreciate in Discourse, 
> but most are reusable skills, because they are available in many other 
> community solutions, but not in Google Groups, which after all is a 
> glorified mail list.
>
> I did not choose Discourse, but because it has gained some momentum and is 
> more than adequate if not very good *"I just want to leave".* I tried to 
> encourage a move many times, but most communities are like herding cats, 
> but now in the case of Discourse its more like "herding sheep" and a pile 
> of us sheeple, have *just run across the road and discovered than side is 
> much greener* :) 
>
> I understand there are community members who feel one or more of the 
> following;
>
>- finding the transition difficult, 
>- need solutions to help on the new platform
>- are not familiar with these sophisticated solutions
>- don't like changing something that works for them.
>
> I urge you to come over and connect with me @TW_Tones 
>  I will do all I can to help you 
> learn how to use discourse and transition (others will help as well).
>
> Tones
>

-- 
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/feabd9d2-f9f5-45fb-993b-a1887e1af76bn%40googlegroups.com.


[tw5] "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread TW Tones
Folks,

As you may know I am a regular contributor to the community. I just want to 
let you know although I will always support the use of Google Groups, *I am 
now only an occasional visitor here.* Without entering into the detailed 
evaluations and comparisons these are *my reasons why*;

   - Discourse fixed a number of problems introduced to Google Groups of 
   late eg code highlighting.
   - Discourse has all the standard features of most of the advance 
   community tools.
   - It can almost resemble a chat if more than one person is on line.
   - I do not use any email features only online.
   - Its easier to keep track of what I have done or when others post and 
   reply
   - Its nice to use emoticon reactions rather than a whole (email) reply 
   to indicate support, or thank someone.
   - *I can deal with a larger volume of activity in the same time*
   - Private messaging without using email is possible (off line 
   discussions)
   - I can support new users to Discourse, as I certainly want us to move, 
   so of course I support it.
   - Given the way users have being treated by google eg; destroyed mobile 
   view I no longer trust Google Groups in the long term.

There are too many features to name here that I appreciate in Discourse, 
but most are reusable skills, because they are available in many other 
community solutions, but not in Google Groups, which after all is a 
glorified mail list.

I did not choose Discourse, but because it has gained some momentum and is 
more than adequate if not very good *"I just want to leave".* I tried to 
encourage a move many times, but most communities are like herding cats, 
but now in the case of Discourse its more like "herding sheep" and a pile 
of us sheeple, have *just run across the road and discovered than side is 
much greener* :) 

I understand there are community members who feel one or more of the 
following;

   - finding the transition difficult, 
   - need solutions to help on the new platform
   - are not familiar with these sophisticated solutions
   - don't like changing something that works for them.

I urge you to come over and connect with me @TW_Tones 
 I will do all I can to help you 
learn how to use discourse and transition (others will help as well).

Tones

-- 
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/2da49e63-cdf5-4fdd-852f-74f0cb78cfc9n%40googlegroups.com.


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Thank you. Much appreciated.

Pekka

On Friday, September 17, 2021 at 12:20:21 PM UTC+3 PMario wrote:

> On Friday, September 17, 2021 at 11:11:40 AM UTC+2 Pekka wrote:
>
> Now I was able to create a function that operates "inside" 
>> tm-edit-text-operation. I suppose it would similarly be possible to react 
>> to custom created messages as well, e.g. tm-user-specified-message? 
>>
>
> Yes. The mechanism is the same and since the parameters in the 
> button-config tiddlers are dynamic you can send as much info to the event 
> as you like. 
> It's a super powerful mechanism and very flexible to extend  once you 
> "got" the concept. 
>
> -m
>

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


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
On Friday, September 17, 2021 at 11:11:40 AM UTC+2 Pekka wrote:

Now I was able to create a function that operates "inside" 
> tm-edit-text-operation. I suppose it would similarly be possible to react 
> to custom created messages as well, e.g. tm-user-specified-message? 
>

Yes. The mechanism is the same and since the parameters in the 
button-config tiddlers are dynamic you can send as much info to the event 
as you like. 
It's a super powerful mechanism and very flexible to extend  once you 
"got" the concept. 

-m

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


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Thanks a lot! 

It was enough and I got the idea. I'm now able to achieve what I want. 

I did not know one could so easily create own functions that react to 
sendmessage. I was afraid I would have to modify the core and create own 
event listeners etc. which is currently out of my abilities.

Now I was able to create a function that operates "inside" 
tm-edit-text-operation. I suppose it would similarly be possible to react 
to custom created messages as well, e.g. tm-user-specified-message? 


Pekka

On Friday, September 17, 2021 at 10:20:33 AM UTC+3 PMario wrote:

> The prerelease contains a new HowTo: 
> https://tiddlywiki.com/prerelease/#How%20to%20create%20dynamic%20editor%20toolbar%20buttons
>  
> which shows how to create new toolbar buttons. ... The messages used by 
> those buttons are created with module-type: texteditoroperation JS function.
>
> -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/6744aa3c-fdd4-4fcd-8533-8d7cc34dc68an%40googlegroups.com.


[tw5] [NOOB] need some help with filters OR instead of AND

2021-09-17 Thread Peter Dart
Hey Guys
Apologies if this is a duplicate. This could be a simple answer but i have 
been looking at it for days and still not getting there.
I am using a macro i found on the web called tagfilter 
($:/.tb/macros/tagfilter), just had another look and i can't see where i 
got it from. Its pretty simple just pick a set of tags and then lookup the 
pages that match and display the list. I want to modify it so that it just 
returns the ones that have ALL of the tags picked rather than ANY.
I think the line in the macro that is doing the filter is this

<$list 
filter="[!is[system]sort[]]+[all[current]tags[]tagging:all[]]+[sort[]]-[all[current]]"
 
template="$template$"/>

I think its the "tagging" part that is picking up pages with ANY of the 
tags... question is what do i replace it with?

This is the full macro incase i am misleading people on the line that is 
doing the filter

\define lingo-base() $:/language/EditTemplate/

\define tagfilter(filter:"[!is[system]sort[]]",state:"$:/temp/TagFilter", 
template:"$:/core/ui/ListItemTemplate")
<$set name=state value="$state$">
<$tiddler tiddler=<>>
<$set name=tags filter="[all[current]tags[]]">
<$set name="addtags" filter="
$filter$
+[all[current]tags[]tagging:all[]]
-[all[current]]
+[tags[]]
-[all[current]tags[]]">

<$fieldmangler>
<$list filter="[all[current]tags[]sort[title]]" storyview="pop">
<>


<$reveal type=nomatch text="" default=<>>
<$reveal type=match text="" default=<>>
Filter by:

<$button popup=<> 
class="tc-btn-invisible tc-btn-dropdown" 
tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} 
aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/new-button}}

<$reveal type=match text="" default=<>>
Filter by:
<$button popup=<> 
class="tc-btn-invisible tc-btn-dropdown" 
tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} 
aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/new-button}}



<$reveal state=<> 
type="nomatch" text="" default="">

<$edit-text tag="input" default="" placeholder="Filter tags" 
class="tc-edit-texteditor tc-popup-handle" focus="true"/>
<$linkcatcher set=<> setTo="" message="tm-add-tag">
<$reveal type=match text="" default=<>>
<$list filter="$filter$ +[tags[]!is[system]search{$state$}sort[]]">
<>


<$reveal type=nomatch text="" default=<>>
<$list filter="
$filter$
+[all[current]tags[]tagging:all[]]
+[tags[]!is[system]search{$state$}sort[]]
-[all[current]tags[]]">
<>







<$reveal type=match text="" default=<>>
<$list filter="$filter$" template="$template$"/>

<$reveal type=nomatch text="" default=<>>
<$list filter="
$filter$
+[all[current]tags[]tagging:all[]]
+[sort[]]
-[all[current]]" template="$template$"/>





\end

Thanks in advance - Pete



-- 
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/d857413b-48a6-4cf5-845c-754e631a5ea2n%40googlegroups.com.


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
The prerelease contains a new HowTo: 
https://tiddlywiki.com/prerelease/#How%20to%20create%20dynamic%20editor%20toolbar%20buttons
 
which shows how to create new toolbar buttons. ... The messages used by 
those buttons are created with module-type: texteditoroperation JS function.

-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/4e9b6a20-a8bc-421d-9912-ef2a7039e6a2n%40googlegroups.com.


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
On Friday, September 17, 2021 at 9:15:34 AM UTC+2 PMario wrote:
...

> IMO that will get you started. ... If it doesn't let us know. .. It's 
> relatively easy to extend those functions, .. once you see the concept. 
>

The core concept is modular and can be extended with your own "toolbar 
button parameters" ... 
Let me know, if this was enough info.

-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/f2c2f036-b742-4e78-bea9-7f9599db2dcbn%40googlegroups.com.


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
Hi Pekka, 

If you search the TW source for "module-type: texteditoroperation" .. you 
will find 9 text operator functions. They are all part of the 
$:/core/modules/editor/operations/text/  namespace. 

If you start with an easy one: 
$:/core/modules/editor/operations/text/insert-text.js   you'll see it 
exports "insert-text" 
If you search for "insert-text" in the .tid files. you'll find: 
https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation ... 

Then have a look at the more powerful ones. eg: wrap lines, wrap selections
Then: excise and prefix-lines 

IMO that will get you started. ... If it doesn't let us know. .. It's 
relatively easy to extend those functions, .. once you see the concept. 

-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/3cca92a6-6e01-4b7c-b58d-39399f112a68n%40googlegroups.com.


[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Hi Mark,

Thanks for the reply.

I did not explain my goals properly. I would basically like to create a new 
EditorToolbar button similar to bold, italic etc. but with custom 
functionality.

I have successfully created buttons that can edit the text in normal 
Tiddlers but I cannot do the same when the Tiddler is in draft mode. Would 
there be an easy way to do this?

I have added a picture to help illustrate my goal. Just as an example, what 
I could do is that when the circled button is pressed, the text before " xx 
" would be a new field, the text after it would become the field content. 
The text would then be removed from the text area. All this should happen 
while the Tiddler is in draft mode. 

Hope this clarifies my goals. Thanks!

Pekka

On Thursday, September 16, 2021 at 7:23:59 PM UTC+3 Mark S. wrote:

> It sounds like you would like to edit javascript in a mode similar to a 
> code editor.
>
> You can use the code mirror plugin and the javascript for codemirror 
> plugin to edit javascript text.
>
> You can get the plugins from the stand-alone TW by going to 
>
> control panel (cog wheel) --> plugins (tab) --> official plugins (button)
>
> Search for codemirror and javascript .
>
> On Wednesday, September 15, 2021 at 11:46:54 PM UTC-7 Pekka wrote:
>
>> How can Drafts be edited with JavaScript? 
>>
>> I would like to parse the text in a draft according to more complicated 
>> rules than what is currently possible with existing widgets, e.g. 
>> tm-edit-text-operation. 
>>
>> I have tried *this.wiki.setText(...)*, but it doesn't work. 
>>
>> What would be the easiest way to change the text field in a Draft Tiddler 
>> according to arbitrary rules?
>>
>>
>> Pekka
>>
>

-- 
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/520780e9-606f-4900-ba60-831c4c4ebd6fn%40googlegroups.com.