[tw5] Re: Notes from the Coalface: Pasting URL's with pretty title

2021-08-07 Thread TW Tones
Charlie;

Use the permalink button you 
get https://tiddlywiki.com/prerelease/#Sort%20Filter%20Run%20Prefix thats 
Yuk in my view
Now control Panel, settings > tiddlywiki >  Display tiddler titles as links

Now open the tiddler and highlight the title and copy, then past here Sort 
Filter Run Prefix 

Thats not yuck

I think you may see it aint the beholder, its universal. Especially if you 
want to see the yuck one just mouse over.

Regards
Tones


On Sunday, 8 August 2021 at 03:57:06 UTC+10 cj.v...@gmail.com wrote:

> Yuck how?  What's a non-yuck URL?
>
> Understanding, of course, that yuck is in the eye of the beholder, and 
> that URL's are first about being successful at getting to something on the 
> web.
>
> I ask because of the potential for me to gain a new insight into how 
> different people see things.
>
> On Friday, August 6, 2021 at 12:42:44 AM UTC-3 The Islander wrote:
>
>> Although the link text looks nice, hover over it and look at the URL. 
>> Yuck!
>>
>> On Wednesday, August 4, 2021 at 6:12:40 PM UTC-7 TW Tones wrote:
>>
>>> Folks,
>>>
>>> I just stumbled upon something helpful. You may know how to copy a 
>>> permalink to a tiddler, this results in URL, and using the to clipboard 
>>> option is help full. the only problem is the result is an ugly URL with 
>>> encoding.
>>>
>>> I discovered today however if you have Control Panel > Settings > Tiddler 
>>> Titles 
>>> 
>>>  set 
>>> to Display tiddler titles as links, there is a a better choice. Or where 
>>> every you see a link in a tiddler eg  Learning 
>>>  [[Learning  |
>>> https://tiddlywiki.com/#Learning]] copt that with you mouse.
>>>
>>> If the titles are displayed as links highlight and copy the title with 
>>> your mouse. The result if pasted is well formatted link eg; Navigation 
>>> History 
>>> .
>>>  
>>> It is not helpful pasting into tiddlywiki,  I will raise an issue on this. 
>>> But it is helpful pasting links into email and forum posts. As I have done 
>>> here.
>>>
>>> Regards
>>> 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/a969a9d9-a75e-492c-9823-4887148b76adn%40googlegroups.com.


[tw5] Re: Retrieving the number of link paths to a tiddler

2021-08-07 Thread TW Tones
Soren

Without working through this requirement of yours, I suspect some of the 
code patterns in my recent reply to another thread 
could 
help you.

   1. Your could make a list of all tiddler links (as a variable) without 
   removing duplicates, then listing a given tiddler you could count how many 
   mentions it has.
   2. With the prerelease Sort Filter Run Prefix 
    should 
   allow you to sortby the count of mentions as per the filter in 1.

Regards
Tones


On Sunday, 8 August 2021 at 12:12:51 UTC+10 Soren Bjornstad wrote:

> I have a wiki where I want to cross-correlate *concepts *across *uses *of 
> these concepts. (A concept, in this example, can be defined as any tiddler 
> *not* tagged Use, while a use is obviously any tiddler tagged Use.) By 
> "cross-correlate", I mean that given the current tiddler is a concept 
> tiddler, find all the other concept tiddlers that are used on any use 
> tiddler that links to the current tiddler (that is, they are often used 
> together).
>
> I can do this with the following filter:
>
> [all[current]backlinks[]tag[Use]links[]!tag[Use]]
>
> However, I would now like to retrieve (and sort by) the number of discrete 
> link paths by which you can reach each concept (i.e., the number of times 
> the current tiddler and this other concept are used together on a use 
> tiddler). So if 5 use tiddlers which link to the current tiddler also link 
> to a particular other concept tiddler, the number 5 should be accessible in 
> a variable when $list'ing through that concept tiddler, to be used in 
> sortsub[] or the like and the template displaying each match.
>
> I haven't been able to think of any way to do this – I tried using the = 
> filter prefix, but this evidently does not work when you're not adding the 
> results *to* anything (and probably tag[] and links[] already deduplicate 
> before they start).
>
> Since I'm sure what I want is absolutely clear as mud at this point, 
> here's a diagram of a toy example, with arrows representing links and the 
> green numbers showing how many “matches” there would be for my search 
> criteria:
>
> [image: ksnip_20210807-210609.png]
>
> As always, thanks for any suggestions!
>

-- 
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/6c4c6e8c-3296-4e0f-92d9-3a0a3c26fafan%40googlegroups.com.


[tw5] Re: Highlighting duplicates in lists

2021-08-07 Thread TW Tones
Mohamad,

I am happy to look at solving the problem presented but my suspicion 
remains that there may be a different way to put the question in the first 
place. 

Sometimes a question can be rephrased such that the answer is simpler to 
find.

   - In this we have multiple tiddlers, with multiple fields, with *values* 
   that may be duplicated across these tiddlers/fields.
   - in effect you want to list all tiddlers using the select fields, list 
   these for each tiddler then for each found value
  -  detect when that value occurs in any other tiddler (not self?) or 
  select fields, if it does highlight it.
   - I am not sure why you want to do this and can think of many ways to 
   list/interpret the data! 
   - What about triplicates?
   - What about duplicates in the same tiddler?

I think using your test data this is what you wanted?


<$list filter="[all[]has[field_example]]">
   <$set name=other-values 
filter="[all[]!get[field_example]] 
[all[]!titleget[field_example2]] 
[all[]!titleget[field_example3]] +[sort[]]">
   <>: |  
   <$list filter="[all[current]get[field_example]] 
[all[current]get[field_example2]] [all[current]get[field_example3]]" 
variable=field-value>
matchthen[color: 
red;]] }}}><>

   



It will also highlight triplicates...

A slightly more efficient method is available that could actually could the 
number of repeats and color red if > 1

<$set name=all-values filter="=[all[]get[field_example]] 
=[all[]get[field_example2]] =[all[]get[field_example3]]">
"<>" {{{ [split[ ]count[]] }}}

<$list filter="[all[]has[field_example]]">
   <>: |  
   <$list filter="[all[current]get[field_example]] 
[all[current]get[field_example2]] [all[current]get[field_example3]]" 
variable=field-value>
<$set name=value-count filter="[split[ 
]matchcount[]]">
compare:number:gt[1]then[color: 
Red;]] }}} ><> (<>)
 





Of course in the above you can choose not to show the count of the same 
value delete  "(<>)"

Regards
Tones

On Sunday, 8 August 2021 at 02:05:57 UTC+10 mohamed...@hotmail.com wrote:

> Hi Tones,
>
> sorry for the late reply , i wasn't clear at all in my last question 
> actually
>
> So for example ,if  every tiddler has three fields  , field_example , 
> field_example2 and  field_example3 
>
> [image: Capture.PNG]
>
> and they are populated with values as such
>
> *   tiddler 1*has in field_example "3" And in field_example2 "2"
> And in field_example3 "6"
> and
>*tiddler 2 *   has in field_example "4" And in field_example2 "9"
> And in field_example3 "8"
> and
>*tiddler 3*has in field_example "2" And in field_example2 "7" 
>And in field_example3 "5"
> and
>*tiddler 4*has in field_example "1" And in field_example2 "2"  
>   And in field_example3 "4"   
>
>
>  as you can see, the number 2  is reoccurring in different fields in 
> different tiddlers , so when doing a list, can all these tiddlers  which 
> has a 2 be highlighted
>
> [image: Capture2.PNG]
>
> even better can the transcluded values only be highlighted and not the 
> whole line
> [image: Capture3.PNG] 
>
> i have attached a sample file with with the test data i am working with
>  
>
> Thanks again for your help
>
>
> On Monday, August 2, 2021 at 2:33:26 AM UTC+2 TW Tones wrote:
>
>> Mohamad,
>>
>> My solution above can be used to do this for multiple fields/criteria 
>> because it re-examines the whole list every time. This makes it logically 
>> very flexible but revisiting the whole list for every special field for 
>> each tiddler is not very high performance. There are other "algorithms you 
>> can deploy" if you describe the full problem, especially if you can share 
>> test data.
>>
>> The thing is, what you want to achieve could be addressed more 
>> efficiently with better knowledge of the input data(set), and ensuring that 
>> data is arranged appropriately. Over in the aforementioned  github item 
>> https://github.com/Jermolene/TiddlyWiki5/discussions/5925 I think a 
>> solution may be a *report widget* designed for most reporting 
>> requirements ie beyond the list widget features. However even in this case 
>> you will need to give further thought on your input data and its structure.
>>
>> Mohamad - you could generate a list of tiddlers with duplicate *A* 
>> fields and another with a list of duplicate *B* fields then in the list 
>> test if each title exists in these lists.
>>
>> Regards
>> Tones
>> On Monday, 2 August 2021 at 09:23:23 UTC+10 mohamed...@hotmail.com wrote:
>>
>>> Hi,
>>>
>>> is it possible to use the same code for multiple criteria, so highlight 
>>> in red all occurrences of duplicates in field A and also field B within the 
>>> same list of tiddlers?
>>>
>>> i guess my question is can a Get / then  be used within the same filter 
>>> multiple times for multiple fields/criteria
>>>
>>> thanks
>>>
>>> On Sunday, August 1, 2021 at 6:17:44 PM UTC+2 PMario wrote:
>>>
 Hi, 


[tw5] Re: Notes from the Coalface: Pasting URL's with pretty title

2021-08-07 Thread The Islander
Well here's an example.

Here's the tiddler "title" section:
https://i.imgur.com/vYKrG9Z.png

It has spaces and other non URL standard characters in it.

The url to this tiddler is: #Next-game instead of whatever escaped 
characters it should contain because the title contains them. This is all 
accomplished through pmario's uni-link plugin 
(https://wikilabs.github.io/editions/uni-link/).

Professional publications typically replace non URL standard characters 
with standard equivalents so that their URLs aren't full of escaped 
gibberish.

Examples:
https://developer.apple.com/documentation/xcode/documenting-a-swift-framework-or-package
https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html

The titles of the topics are used as a basis for the URLs but nonstandard 
characters are stripped out for URL "beautification".. hence non-yuck!

Hope that makes sense.




On Saturday, August 7, 2021 at 10:57:06 AM UTC-7 cj.v...@gmail.com wrote:

> Yuck how?  What's a non-yuck URL?
>
> Understanding, of course, that yuck is in the eye of the beholder, and 
> that URL's are first about being successful at getting to something on the 
> web.
>
> I ask because of the potential for me to gain a new insight into how 
> different people see things.
>
> On Friday, August 6, 2021 at 12:42:44 AM UTC-3 The Islander wrote:
>
>> Although the link text looks nice, hover over it and look at the URL. 
>> Yuck!
>>
>> On Wednesday, August 4, 2021 at 6:12:40 PM UTC-7 TW Tones wrote:
>>
>>> Folks,
>>>
>>> I just stumbled upon something helpful. You may know how to copy a 
>>> permalink to a tiddler, this results in URL, and using the to clipboard 
>>> option is help full. the only problem is the result is an ugly URL with 
>>> encoding.
>>>
>>> I discovered today however if you have Control Panel > Settings > Tiddler 
>>> Titles 
>>> 
>>>  set 
>>> to Display tiddler titles as links, there is a a better choice. Or where 
>>> every you see a link in a tiddler eg  Learning 
>>>  [[Learning  |
>>> https://tiddlywiki.com/#Learning]] copt that with you mouse.
>>>
>>> If the titles are displayed as links highlight and copy the title with 
>>> your mouse. The result if pasted is well formatted link eg; Navigation 
>>> History 
>>> .
>>>  
>>> It is not helpful pasting into tiddlywiki,  I will raise an issue on this. 
>>> But it is helpful pasting links into email and forum posts. As I have done 
>>> here.
>>>
>>> Regards
>>> 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/ad81901a-f3c2-4425-8dc4-f8d81cd6dbcen%40googlegroups.com.


Re: [tw5] Re: A Crazy Idea I had for a Plugin!

2021-08-07 Thread Joshua Fontany
This is a really neat idea. I am terribly busy at work, and also with my 
TW5 "multiplayer" experiments, but this seems worth following. I may be 
able to help in a few weeks.

Best,
Joshua Fontany

On Tuesday, August 3, 2021 at 3:40:23 PM UTC-7 TW Tones wrote:

> Flanc...
>
> I will join up but the area you need help in is not my own. 
>
> I have intentionally focused on understanding tiddlywiki as a designer or 
> superuser without recourse to Javascript to solve problems. I am keen on 
> promoting democratisation of software through tiddlywiki and relying on 
> Javascript solutions, is not part of a totally open platform, although its 
> presence is important.
>
> Not withstanding this, I can help in many ways, I am sure.
>
> The key is for you to learn how to create macros or widgets that "export" 
> the functionality within javascript code into tiddlywiki in a way that it 
> honour's TiddlyWiki mechanism's, which is where all the magic happens.
>
> Checkout https://tiddlywiki.com/dev/ if you have not yet, and Javascript 
> development questions may be best put here 
> https://github.com/Jermolene/TiddlyWiki5/discussions
>
> Regards
> Tones
>
>
> On Wednesday, 4 August 2021 at 00:54:06 UTC+10 flanc...@gmail.com wrote:
>
>> @TW Tones, It would be great to have your help! 
>>
>> As stated, you need not have much programming experience, I am just 
>> looking for someone more familiar with TW and specific TW syntax for making 
>> the plugin. From what I have seen, plugins use a specific form of JS (
>> https://tiddlywiki.com/dev/static/How%2520to%2520create%2520plugins%2520in%2520the%2520browser.html).
>>  
>> I can cover the logic portion of the JS code myself, as long as someone can 
>> make that vanilla JS actually run in TW5.
>>
>> In the meantime, I will add you to the repo as a contributor with full 
>> privileges. 
>>
>> Thanks so much!
>>
>> On Tue, Aug 3, 2021 at 8:29 AM TW Tones  wrote:
>>
>>> I would love to help but may not have the skills, 
>>>
>>>- however I recently found the google speech to text is excellent 
>>>and the Microsoft desktop one unusable. 
>>>- So it is trivial to used other apps or tiddlywiki on my android 
>>>phone to dictate into tiddlywiki. Great for English, but perhaps useless 
>>>for wiki code.
>>>- Of course it would be great if it can be deeply integrated with 
>>>tiddlywiki, however I question if the effort would be better applied to 
>>>improving a workflow between android and ones desktop tiddlywiki's.
>>>- I am sure there must be browser plugins, or applications that can 
>>>operate on top of the browser so you do not have to maintain a separate 
>>>solution. Just document it well for users. Then the solution would have 
>>>even broader applicability.
>>>
>>> Regards
>>> Tones (AnthonyMuscio on GitHub) *AnthonyMuscio.github.io 
>>> *
>>> On Tuesday, 3 August 2021 at 22:13:44 UTC+10 flanc...@gmail.com wrote:
>>>
 Good Day to You All:

 Yesterday, I had my first day of school after the Summer Break, and 
 quickly grew bored of taking notes while my professors talked. I had the 
 bright idea of creating a quick script to DO the notes FOR ME, which is 
 now 
 open-sourced at https://github.com/flancast90/NoMoreNotes, leveraging 
 the free Google Speech-To-Text API (no key needed, somehow).

 All of that got me thinking: What other uses could I find for this 
 technology, particularly in Web-Dev (my main area of interest)? This 
 morning, I then thought: What would Speech-To-Text look like in TW5?

 I have now taken the liberty of making a repo on github to make this 
 idea a reality, at https://github.com/flancast90/Speech-To-Text-in-TW5/, 
 but I do not have the TW-plugin syntax to do this. 

 I would really appreciate it if anyone in this group would lend their 
 expertise whom I could as a collaborator on the repo, where they could 
 cover the plugin UI (buttons on sidebar, etc.), while I could add the 
 logic 
 for the speech to text behind them. 

 Anyone interested in this, please feel free to leave your Github 
 username (so I can add you), and I will elaborate more on the idea in the 
 Discussions tab of the repo after. 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/05c8bc37-9392-4cd1-a9a8-d2666eff574dn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To 

Re: [tw5] Re: Shiraz 2.3.1 new update supports Node Explorer (bidirectional links)

2021-08-07 Thread Mohammad Rahmani
Walt,
 No there is nothing else! I recommend checking this on the new empty
Tiddlywiki to see if the issue is related to Shiraz or your Tiddlywiki!
 My test shows Shiraz works as expected!

Best wishes
Mohammad


On Sun, Aug 8, 2021 at 12:48 AM ludwa6  wrote:

> The "Switch Colours" button was already activated, @Mohammad... So i
> cycled it off and on again, but still it has made no difference.
> Is there anything else i might try to activate the feature?
>
> /walt
>
> On Saturday, August 7, 2021 at 7:47:59 PM UTC+1 Mohammad wrote:
>
>> Hi Walt,
>>  Make sure that: The Switch Colours button in the sidebar/Tools is
>> selected!
>>
>>
>> (side note: I should use the same caption for the same button in
>> different location! ;-) )
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sat, Aug 7, 2021 at 5:43 PM ludwa6  wrote:
>>
>>> Having just upgraded from v2.2.2 of Shiraz to latest 2.3.4 (/note to
>>> self: keep more abreast of news from @Mohammad!), i am keen to enjoy all
>>> the benefits... But, following the excellent tutorial
>>> , it seems that
>>> the last option in Shiraz configuration control panel- "*Show switch
>>> palette on page controls*" -is missing from my installation.  Have
>>> saved and restarted my TW  instance (a single-file version) several times,
>>> but it makes no difference.   Can anyone can suggest a fix or plausible
>>> theory of cause?
>>>
>>> /walt
>>>
>>> On Wednesday, August 4, 2021 at 6:17:14 PM UTC+1 Mohammad wrote:
>>>
 Yes, it is possible!

 hack the $:/plugins/kookma/viewtemplates/node-explorer
 and search the fields containing the links (use regexp)! Note that
 right now the dynamic table cannot display a correct type for links in the
 fields, but you may hide the type!

 I myself like simplicity, so for me the text field is enough to be
 scanned!


 Best wishes
 Mohammad


 On Wed, Aug 4, 2021 at 9:24 PM Paul Hampshire 
 wrote:

> Is there a way to have Node Explorer include links that are in custom
> fields in tiddlers?
>
> On Thursday, May 20, 2021 at 12:02:11 PM UTC-4 si wrote:
>
>> >>> Yes! Thereis a solution by  pubmania   here: https://git
>> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084
>>
>> Thanks!
>>
>> On Thursday, 20 May 2021 at 04:36:11 UTC+1 Mohammad wrote:
>>
>>> On Thu, May 20, 2021 at 1:25 AM si  wrote:
>>>
 Great stuff, thanks Mohammad. I will have to spend some time
 playing with column templates to see how they work.

 Unrelated question: Is there a way to change the orientation of
 dynamic table? I.e. list the fields as rows instead of columns.

>>> Yes! Thereis a solution by  pubmania   here: https://git
>>> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084
>>>
>>> [image: image.png]
>>>
>>>
>>>
>>>
 On Wednesday, 19 May 2021 at 19:43:32 UTC+1 Mohammad wrote:

> A Node Explorer is a dynamic table that appears at the bottom of
> the current tiddler, displaying links, backlinks and tagging of
> that tiddler. This is based on the Zettelkasten method
> recently implemented in
> Tiddlywiki by Soren Bjornstad (see
> https://zettelkasten.sorenbjornstad.com/)
>
> The new update of Shiraz 2.3.1 adds a new template to its
> collection of dynamic table templates, let's use it for creating a 
> Node
> Explorer to show links/backlinks/tagging of current tiddler.
> For details see
> https://kookma.github.io/TW-Shiraz/#Tutorial%20Advanced%20Node%20Explorer
> You can also use details/slider macro in Shiraz to hide the Node
> Explorer on demand!
>
>
> *Code and demo*
>
>
>- Demo: https://kookma.github.io/TW-Shiraz
>- Code: https://github.com/kookma/TW-Shiraz
>
>
> It is highly recommended to backup your data before trying any new
> plugin! Do it before installing shiraz.
>
>
> If you like Shiraz star it at  https://github.com/kookma/TW-Shiraz
>
>
> [image: img_174_chrome.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+...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/tiddlywiki/54e5cbcc-b0d3-439a-af54-02e11055a704n%40googlegroups.com
 
 .

>>> --
> You 

[tw5] Re: display TOC + field

2021-08-07 Thread
 Thanks Birthe - works perfect! 

strikke...@gmail.com schrieb am Samstag, 7. August 2021 um 20:13:31 UTC+2:

> Try this. Import the attached file to your tiddlywiki. Hope it works for 
> you.
>
> Birthe
>
> On Saturday, August 7, 2021 at 6:51:12 PM UTC+2 S² wrote:
>
>> Any ideas?
>> Stefan
>>
>> S² schrieb am Dienstag, 3. August 2021 um 15:38:05 UTC+2:
>>
>>> Hello Tones,
>>>
>>> thanks for feedback.
>>> I adress a different issue:
>>>
>>> Creating a new Tiddler with a custom field 'published':
>>> [image: published.png]
>>>
>>> --> should display in TOC like
>>>
>>> [image: TOC.png]
>>>
>>> Thanks
>>> Stefan
>>> TW Tones schrieb am Dienstag, 3. August 2021 um 14:21:05 UTC+2:
>>>
 You will need to look inside the toc macros or the documentation 
  to see if there 
 are parameters you can use. If you use the internal and external nave the 
 selected tiddler is displayed in a panel to the right, you could customise 
 the template in use to display your fields.

 Otherwise you could build your own TOC macro(s) whose output includes 
 the fields formatted as desired.

 Regards
 Tones

 On Tuesday, 3 August 2021 at 20:57:44 UTC+10 S² wrote:

> Hello Forum,
>
> I use for each tiddler a field 'published' which will be filled with a 
> custom date.
>
> How can this field be additional shown in TOC in green color?
>
>
>
>
>
>
>
> *<$scrollable class='tc-scrollable-demo'> class="tc-table-of-contents">< 'sortan[]' 
> >>*
>
> Thanks
> Stefan
>


-- 
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/4efc5828-ec16-498a-8054-e58db588a99fn%40googlegroups.com.


[tw5] Re: display TOC + field

2021-08-07 Thread
Thanks Bithe - works perfect!
strikke...@gmail.com schrieb am Samstag, 7. August 2021 um 20:13:31 UTC+2:

> Try this. Import the attached file to your tiddlywiki. Hope it works for 
> you.
>
> Birthe
>
> On Saturday, August 7, 2021 at 6:51:12 PM UTC+2 S² wrote:
>
>> Any ideas?
>> Stefan
>>
>> S² schrieb am Dienstag, 3. August 2021 um 15:38:05 UTC+2:
>>
>>> Hello Tones,
>>>
>>> thanks for feedback.
>>> I adress a different issue:
>>>
>>> Creating a new Tiddler with a custom field 'published':
>>> [image: published.png]
>>>
>>> --> should display in TOC like
>>>
>>> [image: TOC.png]
>>>
>>> Thanks
>>> Stefan
>>> TW Tones schrieb am Dienstag, 3. August 2021 um 14:21:05 UTC+2:
>>>
 You will need to look inside the toc macros or the documentation 
  to see if there 
 are parameters you can use. If you use the internal and external nave the 
 selected tiddler is displayed in a panel to the right, you could customise 
 the template in use to display your fields.

 Otherwise you could build your own TOC macro(s) whose output includes 
 the fields formatted as desired.

 Regards
 Tones

 On Tuesday, 3 August 2021 at 20:57:44 UTC+10 S² wrote:

> Hello Forum,
>
> I use for each tiddler a field 'published' which will be filled with a 
> custom date.
>
> How can this field be additional shown in TOC in green color?
>
>
>
>
>
>
>
> *<$scrollable class='tc-scrollable-demo'> class="tc-table-of-contents">< 'sortan[]' 
> >>*
>
> Thanks
> Stefan
>


-- 
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/556cb47e-e21d-4144-a792-bded15e5eb18n%40googlegroups.com.


Re: [tw5] Re: Shiraz 2.3.1 new update supports Node Explorer (bidirectional links)

2021-08-07 Thread ludwa6
The "Switch Colours" button was already activated, @Mohammad... So i cycled 
it off and on again, but still it has made no difference. 
Is there anything else i might try to activate the feature?

/walt

On Saturday, August 7, 2021 at 7:47:59 PM UTC+1 Mohammad wrote:

> Hi Walt,
>  Make sure that: The Switch Colours button in the sidebar/Tools is 
> selected!
>
>
> (side note: I should use the same caption for the same button in different 
> location! ;-) )
>
>
> Best wishes
> Mohammad
>
>
> On Sat, Aug 7, 2021 at 5:43 PM ludwa6  wrote:
>
>> Having just upgraded from v2.2.2 of Shiraz to latest 2.3.4 (/note to 
>> self: keep more abreast of news from @Mohammad!), i am keen to enjoy all 
>> the benefits... But, following the excellent tutorial 
>> , it seems that 
>> the last option in Shiraz configuration control panel- "*Show switch 
>> palette on page controls*" -is missing from my installation.  Have saved 
>> and restarted my TW  instance (a single-file version) several times, but it 
>> makes no difference.   Can anyone can suggest a fix or plausible theory of 
>> cause?
>>
>> /walt
>>
>> On Wednesday, August 4, 2021 at 6:17:14 PM UTC+1 Mohammad wrote:
>>
>>> Yes, it is possible!
>>>
>>> hack the $:/plugins/kookma/viewtemplates/node-explorer
>>> and search the fields containing the links (use regexp)! Note that right 
>>> now the dynamic table cannot display a correct type for links in the 
>>> fields, but you may hide the type!
>>>
>>> I myself like simplicity, so for me the text field is enough to be 
>>> scanned!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Wed, Aug 4, 2021 at 9:24 PM Paul Hampshire  
>>> wrote:
>>>
 Is there a way to have Node Explorer include links that are in custom 
 fields in tiddlers? 

 On Thursday, May 20, 2021 at 12:02:11 PM UTC-4 si wrote:

> >>> Yes! Thereis a solution by  pubmania   here: https://git
> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084  
>
> Thanks!
>
> On Thursday, 20 May 2021 at 04:36:11 UTC+1 Mohammad wrote:
>
>> On Thu, May 20, 2021 at 1:25 AM si  wrote:
>>
>>> Great stuff, thanks Mohammad. I will have to spend some time playing 
>>> with column templates to see how they work.
>>>
>>> Unrelated question: Is there a way to change the orientation of 
>>> dynamic table? I.e. list the fields as rows instead of columns.
>>>
>> Yes! Thereis a solution by  pubmania   here: https://git
>> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084 
>>
>> [image: image.png]
>>
>>
>>
>>
>>> On Wednesday, 19 May 2021 at 19:43:32 UTC+1 Mohammad wrote:
>>>
 A Node Explorer is a dynamic table that appears at the bottom of 
 the current tiddler, displaying links, backlinks and tagging of 
 that tiddler. This is based on the Zettelkasten method  
 recently implemented in 
 Tiddlywiki by Soren Bjornstad (see 
 https://zettelkasten.sorenbjornstad.com/)

 The new update of Shiraz 2.3.1 adds a new template to its 
 collection of dynamic table templates, let's use it for creating a 
 Node 
 Explorer to show links/backlinks/tagging of current tiddler.
 For details see 
 https://kookma.github.io/TW-Shiraz/#Tutorial%20Advanced%20Node%20Explorer
 You can also use details/slider macro in Shiraz to hide the Node 
 Explorer on demand!


 *Code and demo*


- Demo: https://kookma.github.io/TW-Shiraz
- Code: https://github.com/kookma/TW-Shiraz


 It is highly recommended to backup your data before trying any new 
 plugin! Do it before installing shiraz.


 If you like Shiraz star it at  https://github.com/kookma/TW-Shiraz


 [image: img_174_chrome.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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/54e5cbcc-b0d3-439a-af54-02e11055a704n%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 
 

Re: [tw5] Re: Shiraz 2.3.1 new update supports Node Explorer (bidirectional links)

2021-08-07 Thread Mohammad Rahmani
Hi Walt,
 Make sure that: The Switch Colours button in the sidebar/Tools is selected!


(side note: I should use the same caption for the same button in different
location! ;-) )


Best wishes
Mohammad


On Sat, Aug 7, 2021 at 5:43 PM ludwa6  wrote:

> Having just upgraded from v2.2.2 of Shiraz to latest 2.3.4 (/note to self:
> keep more abreast of news from @Mohammad!), i am keen to enjoy all the
> benefits... But, following the excellent tutorial
> , it seems that
> the last option in Shiraz configuration control panel- "*Show switch
> palette on page controls*" -is missing from my installation.  Have saved
> and restarted my TW  instance (a single-file version) several times, but it
> makes no difference.   Can anyone can suggest a fix or plausible theory of
> cause?
>
> /walt
>
> On Wednesday, August 4, 2021 at 6:17:14 PM UTC+1 Mohammad wrote:
>
>> Yes, it is possible!
>>
>> hack the $:/plugins/kookma/viewtemplates/node-explorer
>> and search the fields containing the links (use regexp)! Note that right
>> now the dynamic table cannot display a correct type for links in the
>> fields, but you may hide the type!
>>
>> I myself like simplicity, so for me the text field is enough to be
>> scanned!
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Wed, Aug 4, 2021 at 9:24 PM Paul Hampshire  wrote:
>>
>>> Is there a way to have Node Explorer include links that are in custom
>>> fields in tiddlers?
>>>
>>> On Thursday, May 20, 2021 at 12:02:11 PM UTC-4 si wrote:
>>>
 >>> Yes! Thereis a solution by  pubmania   here: https://git
 hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084

 Thanks!

 On Thursday, 20 May 2021 at 04:36:11 UTC+1 Mohammad wrote:

> On Thu, May 20, 2021 at 1:25 AM si  wrote:
>
>> Great stuff, thanks Mohammad. I will have to spend some time playing
>> with column templates to see how they work.
>>
>> Unrelated question: Is there a way to change the orientation of
>> dynamic table? I.e. list the fields as rows instead of columns.
>>
> Yes! Thereis a solution by  pubmania   here: https://git
> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084
>
> [image: image.png]
>
>
>
>
>> On Wednesday, 19 May 2021 at 19:43:32 UTC+1 Mohammad wrote:
>>
>>> A Node Explorer is a dynamic table that appears at the bottom of
>>> the current tiddler, displaying links, backlinks and tagging of
>>> that tiddler. This is based on the Zettelkasten method
>>> recently implemented in
>>> Tiddlywiki by Soren Bjornstad (see
>>> https://zettelkasten.sorenbjornstad.com/)
>>>
>>> The new update of Shiraz 2.3.1 adds a new template to its collection
>>> of dynamic table templates, let's use it for creating a Node Explorer to
>>> show links/backlinks/tagging of current tiddler.
>>> For details see
>>> https://kookma.github.io/TW-Shiraz/#Tutorial%20Advanced%20Node%20Explorer
>>> You can also use details/slider macro in Shiraz to hide the Node
>>> Explorer on demand!
>>>
>>>
>>> *Code and demo*
>>>
>>>
>>>- Demo: https://kookma.github.io/TW-Shiraz
>>>- Code: https://github.com/kookma/TW-Shiraz
>>>
>>>
>>> It is highly recommended to backup your data before trying any new
>>> plugin! Do it before installing shiraz.
>>>
>>>
>>> If you like Shiraz star it at  https://github.com/kookma/TW-Shiraz
>>>
>>>
>>> [image: img_174_chrome.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+...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/54e5cbcc-b0d3-439a-af54-02e11055a704n%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/3019ef41-bbc0-4982-b21f-567f5ec27b2bn%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
> 

[tw5] Re: display TOC + field

2021-08-07 Thread strikke...@gmail.com
Try this. Import the attached file to your tiddlywiki. Hope it works for 
you.

Birthe

On Saturday, August 7, 2021 at 6:51:12 PM UTC+2 S² wrote:

> Any ideas?
> Stefan
>
> S² schrieb am Dienstag, 3. August 2021 um 15:38:05 UTC+2:
>
>> Hello Tones,
>>
>> thanks for feedback.
>> I adress a different issue:
>>
>> Creating a new Tiddler with a custom field 'published':
>> [image: published.png]
>>
>> --> should display in TOC like
>>
>> [image: TOC.png]
>>
>> Thanks
>> Stefan
>> TW Tones schrieb am Dienstag, 3. August 2021 um 14:21:05 UTC+2:
>>
>>> You will need to look inside the toc macros or the documentation 
>>>  to see if there 
>>> are parameters you can use. If you use the internal and external nave the 
>>> selected tiddler is displayed in a panel to the right, you could customise 
>>> the template in use to display your fields.
>>>
>>> Otherwise you could build your own TOC macro(s) whose output includes 
>>> the fields formatted as desired.
>>>
>>> Regards
>>> Tones
>>>
>>> On Tuesday, 3 August 2021 at 20:57:44 UTC+10 S² wrote:
>>>
 Hello Forum,

 I use for each tiddler a field 'published' which will be filled with a 
 custom date.

 How can this field be additional shown in TOC in green color?







 *<$scrollable class='tc-scrollable-demo' class="tc-table-of-contents"><>>> 'sortan[]' 
 >>*

 Thanks
 Stefan

>>>

-- 
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/d5c0ec6d-14e3-4cf8-9c2a-6f1d54a7f2c0n%40googlegroups.com.


Alttoc.json
Description: application/json


[tw5] Re: Notes from the Coalface: Pasting URL's with pretty title

2021-08-07 Thread Charlie Veniot
Yuck how?  What's a non-yuck URL?

Understanding, of course, that yuck is in the eye of the beholder, and that 
URL's are first about being successful at getting to something on the web.

I ask because of the potential for me to gain a new insight into how 
different people see things.

On Friday, August 6, 2021 at 12:42:44 AM UTC-3 The Islander wrote:

> Although the link text looks nice, hover over it and look at the URL. Yuck!
>
> On Wednesday, August 4, 2021 at 6:12:40 PM UTC-7 TW Tones wrote:
>
>> Folks,
>>
>> I just stumbled upon something helpful. You may know how to copy a 
>> permalink to a tiddler, this results in URL, and using the to clipboard 
>> option is help full. the only problem is the result is an ugly URL with 
>> encoding.
>>
>> I discovered today however if you have Control Panel > Settings > Tiddler 
>> Titles 
>> 
>>  set 
>> to Display tiddler titles as links, there is a a better choice. Or where 
>> every you see a link in a tiddler eg  Learning 
>>  [[Learning  |
>> https://tiddlywiki.com/#Learning]] copt that with you mouse.
>>
>> If the titles are displayed as links highlight and copy the title with 
>> your mouse. The result if pasted is well formatted link eg; Navigation 
>> History 
>> .
>>  
>> It is not helpful pasting into tiddlywiki,  I will raise an issue on this. 
>> But it is helpful pasting links into email and forum posts. As I have done 
>> here.
>>
>> Regards
>> 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/593bb3ab-98a0-4352-b509-dcf9de8b947bn%40googlegroups.com.


Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread Charlie Veniot
I just found a better reference (i.e. in-browser simple text 
editor):  https://browserpad.org/

That one knows filename when opening a file, and remembers that filename on 
"save" ("save/export", in my mind.)

If that thing had TW formatting buttons and a preview pane, it would be 
exactly what I'm looking for. (Well, I wouldn't want the spell-checking 
check box, nor that github button in the bottom-right.) 



On Saturday, August 7, 2021 at 1:41:35 PM UTC-3 Charlie Veniot wrote:

> In regards to open and save *(just for 
> reference:  https://www.outpan.com/app/e7d5b37405/mytextarea 
> )* ...
>
> I'm thinking an open button like the one in that editor, and an 
> export/save button that works exactly like the tiddler export button in 
> TiddlyWiki, with just the TID option or with more/all options.
>
> So no save mechanisms.  Just enter WikiText-à-la-TiddlyWiki, preview, and 
> click export as TID.
>
>
> Whenever I just want to take down a quick note, TiddlyWiki is rarely my 
> first choice.  Using my Chromebook, I typically go to Gmail or Google Keep, 
> or even Google Calendar, first.
>
> Having a small HTML page, i.e. TidEdit app, available to me, I could see 
> myself going there first when I want to take down a note that is slightly 
> more substantial organization-wise, but not so substantial that I want to 
> open a TiddlyWiki (which I keep on Google Drive, using the TiddlyDrive 
> add-on app.)  So a bit like a simple text editor, but a little bit 
> StackEdit-like, with a way to get the content into a TID.
>
> With something like that, I might actually use my small+old smartphone for 
> more than just phone and text-messaging...
>
> On Saturday, August 7, 2021 at 1:01:22 PM UTC-3 Charlie Veniot wrote:
>
>> Define backward.
>>
>> To me, it is like the difference between a small text editor and a word 
>> processor.  Using a text editor for certain things, instead of a full Word 
>> Processor isn't going backwards.  It is just using the simplest tool that 
>> makes sense for an immediate need.
>>
>> Same thing for "TidEdit".  It is just about reaching for the simplest and 
>> quickest tool for an immediate need (just jot down a note) , yet having 
>> that WikiText available (and preview) for quick visual organization of that 
>> one note, however short/long, for later serious processing.
>>
>> In a way, it boils down to that difference (in my mind, anyway) between 
>> note-taking and note-making.
>>
>> I imagine TidEdit as something complimentary to TiddlyWiki, a really nice 
>> addition to a TiddlyWiki ecosystem of tools/components/workflow-enablers.
>>
>> A simple HTML page with a text area on the left, preview pane on the 
>> right, and buttons for WikiText markup, and buttons for "new", "open", and 
>> "save", always working with TID files for each drag and drop into a 
>> TiddlyWiki.
>>
>> Why would any "save" plugins be required?  "Save" would be like 
>> "download", and open would be like "upload".  Aren't those just basic 
>> javascript functions?
>>
>> I suppose it isn't really about stripping down TiddlyWiki.  It is about 
>> creating a single HTML file that provides something that is StackEdit-ish 
>> (no "notebook" and no multiple notes handling), with buttons that work like 
>> the tiddler edit buttons for WikiText formatting, and those "new" (clear 
>> text area and preview), "open" (pick a file and put the content of that 
>> file in the text area), "save" (i.e. just download a file that has the 
>> content from the textarea) buttons.
>>
>>
>> On Sat, Aug 7, 2021 at 12:41 PM PMario  wrote:
>>
>>> On Saturday, August 7, 2021 at 4:19:52 PM UTC+2 cj.v...@gmail.com wrote:
>>>
>>> i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) 
 to a TID file.  Nothing else.

>>>
>>> TLDR;
>>>
>>> You are right, we may be able to strip about half of the *UI* size, but 
>>> this would mean we will go backwards. ... 
>>>
>>> --
>>>
>>> As you probably know, browsers will only let you save to the Downloads 
>>> directory and subdirectories with default browser plugins. 
>>> With Timimi you can choose the directory, but you will need 2 
>>> components. A browser AddOn and an executable.
>>>
>>> There is a new file-API for chromium based browsers, but they will also 
>>> need a server somewhere in the background to use the functionality in a 
>>> "secure" way. ... 
>>>  
>>>
 No refresh mechanism going on, no loading up a whole TiddlyWiki (with 
 all the tiddlers and plugins), blazingly fast open of a small HTML file to 
 quickly enter some info/knowledge/content on the fly with whatever 
 device, with ability to save that tiddler, parking its the TID file 
 somewhere for later processing in the full TiddlyWiki.

>>>
>>> In your first post you mentioned, that you don't need all toolbar 
>>> buttons but some of them. ... So if you only want 1 of them, the software 
>>> needed is the same as 

[tw5] Re: display TOC + field

2021-08-07 Thread
Any ideas?
Stefan

S² schrieb am Dienstag, 3. August 2021 um 15:38:05 UTC+2:

> Hello Tones,
>
> thanks for feedback.
> I adress a different issue:
>
> Creating a new Tiddler with a custom field 'published':
> [image: published.png]
>
> --> should display in TOC like
>
> [image: TOC.png]
>
> Thanks
> Stefan
> TW Tones schrieb am Dienstag, 3. August 2021 um 14:21:05 UTC+2:
>
>> You will need to look inside the toc macros or the documentation 
>>  to see if there are 
>> parameters you can use. If you use the internal and external nave the 
>> selected tiddler is displayed in a panel to the right, you could customise 
>> the template in use to display your fields.
>>
>> Otherwise you could build your own TOC macro(s) whose output includes the 
>> fields formatted as desired.
>>
>> Regards
>> Tones
>>
>> On Tuesday, 3 August 2021 at 20:57:44 UTC+10 S² wrote:
>>
>>> Hello Forum,
>>>
>>> I use for each tiddler a field 'published' which will be filled with a 
>>> custom date.
>>>
>>> How can this field be additional shown in TOC in green color?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *<$scrollable class='tc-scrollable-demo'>>> class="tc-table-of-contents"><>> >>*
>>>
>>> Thanks
>>> Stefan
>>>
>>

-- 
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/69049933-1434-4f4b-b6ed-e35be9c762b8n%40googlegroups.com.


Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread Charlie Veniot
In regards to open and save *(just for 
reference:  https://www.outpan.com/app/e7d5b37405/mytextarea)* ...

I'm thinking an open button like the one in that editor, and an export/save 
button that works exactly like the tiddler export button in TiddlyWiki, 
with just the TID option or with more/all options.

So no save mechanisms.  Just enter WikiText-à-la-TiddlyWiki, preview, and 
click export as TID.


Whenever I just want to take down a quick note, TiddlyWiki is rarely my 
first choice.  Using my Chromebook, I typically go to Gmail or Google Keep, 
or even Google Calendar, first.

Having a small HTML page, i.e. TidEdit app, available to me, I could see 
myself going there first when I want to take down a note that is slightly 
more substantial organization-wise, but not so substantial that I want to 
open a TiddlyWiki (which I keep on Google Drive, using the TiddlyDrive 
add-on app.)  So a bit like a simple text editor, but a little bit 
StackEdit-like, with a way to get the content into a TID.

With something like that, I might actually use my small+old smartphone for 
more than just phone and text-messaging...

On Saturday, August 7, 2021 at 1:01:22 PM UTC-3 Charlie Veniot wrote:

> Define backward.
>
> To me, it is like the difference between a small text editor and a word 
> processor.  Using a text editor for certain things, instead of a full Word 
> Processor isn't going backwards.  It is just using the simplest tool that 
> makes sense for an immediate need.
>
> Same thing for "TidEdit".  It is just about reaching for the simplest and 
> quickest tool for an immediate need (just jot down a note) , yet having 
> that WikiText available (and preview) for quick visual organization of that 
> one note, however short/long, for later serious processing.
>
> In a way, it boils down to that difference (in my mind, anyway) between 
> note-taking and note-making.
>
> I imagine TidEdit as something complimentary to TiddlyWiki, a really nice 
> addition to a TiddlyWiki ecosystem of tools/components/workflow-enablers.
>
> A simple HTML page with a text area on the left, preview pane on the 
> right, and buttons for WikiText markup, and buttons for "new", "open", and 
> "save", always working with TID files for each drag and drop into a 
> TiddlyWiki.
>
> Why would any "save" plugins be required?  "Save" would be like 
> "download", and open would be like "upload".  Aren't those just basic 
> javascript functions?
>
> I suppose it isn't really about stripping down TiddlyWiki.  It is about 
> creating a single HTML file that provides something that is StackEdit-ish 
> (no "notebook" and no multiple notes handling), with buttons that work like 
> the tiddler edit buttons for WikiText formatting, and those "new" (clear 
> text area and preview), "open" (pick a file and put the content of that 
> file in the text area), "save" (i.e. just download a file that has the 
> content from the textarea) buttons.
>
>
> On Sat, Aug 7, 2021 at 12:41 PM PMario  wrote:
>
>> On Saturday, August 7, 2021 at 4:19:52 PM UTC+2 cj.v...@gmail.com wrote:
>>
>> i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) 
>>> to a TID file.  Nothing else.
>>>
>>
>> TLDR;
>>
>> You are right, we may be able to strip about half of the *UI* size, but 
>> this would mean we will go backwards. ... 
>>
>> --
>>
>> As you probably know, browsers will only let you save to the Downloads 
>> directory and subdirectories with default browser plugins. 
>> With Timimi you can choose the directory, but you will need 2 components. 
>> A browser AddOn and an executable.
>>
>> There is a new file-API for chromium based browsers, but they will also 
>> need a server somewhere in the background to use the functionality in a 
>> "secure" way. ... 
>>  
>>
>>> No refresh mechanism going on, no loading up a whole TiddlyWiki (with 
>>> all the tiddlers and plugins), blazingly fast open of a small HTML file to 
>>> quickly enter some info/knowledge/content on the fly with whatever 
>>> device, with ability to save that tiddler, parking its the TID file 
>>> somewhere for later processing in the full TiddlyWiki.
>>>
>>
>> In your first post you mentioned, that you don't need all toolbar buttons 
>> but some of them. ... So if you only want 1 of them, the software needed is 
>> the same as showing all of them. ... The mechanism to show 1 button is the 
>> same as to show many of them. It's only a different filter and a list. 
>>
>> The same is true for the TW UI. It will be possible to create new 
>> ...Templates, that are different to the existing ones, but the 
>> functionality to handle Page-, Edit- and View templates is the same as with 
>> a default TW. So I'm sure you don't safe anything in the core. 
>>  
>>
>>> Sure I can tweak a TiddlyWiki by adding custom Tiddlers, but I'm talking 
>>> about a major strip down to have a simple editor for simple note-taking.
>>>
>>
>> As I wrote. There will be no major strip down in wiki size. 

[tw5] Re: Table-of-Contents Macros

2021-08-07 Thread
Any ideas?
Stefan

S² schrieb am Donnerstag, 5. August 2021 um 17:50:09 UTC+2:

> Hi Mario,
>
> I use 'Twilight ' color palette.
>
> Stefan
>
> PMario schrieb am Donnerstag, 5. August 2021 um 17:11:32 UTC+2:
>
>> Hi, 
>> Which theme and which palette do you use in the screenshot?
>> -mario
>>
>> On Thursday, August 5, 2021 at 4:27:46 PM UTC+2 S² wrote:
>>
>>> Hello forum,
>>>
>>> for the TOC I use the macro "toc-tabbed-internal-nav".
>>> 1. Is it possible to sort the list?
>>> 2. where are the colors defined for the selected tiddler (hover)?
>>> [image: toc-tabbed.png]
>>>
>>> Thanks
>>> Stefan
>>>
>>

-- 
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/6db0f948-1762-4a80-8acf-ad305ebe9cefn%40googlegroups.com.


Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread CJ Veniot
Define backward.

To me, it is like the difference between a small text editor and a word
processor.  Using a text editor for certain things, instead of a full Word
Processor isn't going backwards.  It is just using the simplest tool that
makes sense for an immediate need.

Same thing for "TidEdit".  It is just about reaching for the simplest and
quickest tool for an immediate need (just jot down a note) , yet having
that WikiText available (and preview) for quick visual organization of that
one note, however short/long, for later serious processing.

In a way, it boils down to that difference (in my mind, anyway) between
note-taking and note-making.

I imagine TidEdit as something complimentary to TiddlyWiki, a really nice
addition to a TiddlyWiki ecosystem of tools/components/workflow-enablers.

A simple HTML page with a text area on the left, preview pane on the right,
and buttons for WikiText markup, and buttons for "new", "open", and "save",
always working with TID files for each drag and drop into a TiddlyWiki.

Why would any "save" plugins be required?  "Save" would be like "download",
and open would be like "upload".  Aren't those just basic javascript
functions?

I suppose it isn't really about stripping down TiddlyWiki.  It is about
creating a single HTML file that provides something that is StackEdit-ish
(no "notebook" and no multiple notes handling), with buttons that work like
the tiddler edit buttons for WikiText formatting, and those "new" (clear
text area and preview), "open" (pick a file and put the content of that
file in the text area), "save" (i.e. just download a file that has the
content from the textarea) buttons.


On Sat, Aug 7, 2021 at 12:41 PM PMario  wrote:

> On Saturday, August 7, 2021 at 4:19:52 PM UTC+2 cj.v...@gmail.com wrote:
>
> i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) to
>> a TID file.  Nothing else.
>>
>
> TLDR;
>
> You are right, we may be able to strip about half of the *UI* size, but
> this would mean we will go backwards. ...
>
> --
>
> As you probably know, browsers will only let you save to the Downloads
> directory and subdirectories with default browser plugins.
> With Timimi you can choose the directory, but you will need 2 components.
> A browser AddOn and an executable.
>
> There is a new file-API for chromium based browsers, but they will also
> need a server somewhere in the background to use the functionality in a
> "secure" way. ...
>
>
>> No refresh mechanism going on, no loading up a whole TiddlyWiki (with all
>> the tiddlers and plugins), blazingly fast open of a small HTML file to
>> quickly enter some info/knowledge/content on the fly with whatever
>> device, with ability to save that tiddler, parking its the TID file
>> somewhere for later processing in the full TiddlyWiki.
>>
>
> In your first post you mentioned, that you don't need all toolbar buttons
> but some of them. ... So if you only want 1 of them, the software needed is
> the same as showing all of them. ... The mechanism to show 1 button is the
> same as to show many of them. It's only a different filter and a list.
>
> The same is true for the TW UI. It will be possible to create new
> ...Templates, that are different to the existing ones, but the
> functionality to handle Page-, Edit- and View templates is the same as with
> a default TW. So I'm sure you don't safe anything in the core.
>
>
>> Sure I can tweak a TiddlyWiki by adding custom Tiddlers, but I'm talking
>> about a major strip down to have a simple editor for simple note-taking.
>>
>
> As I wrote. There will be no major strip down in wiki size. The startup
> may be faster, because less DOM elements are created. ... Especially no
> sidebar.
>
> At the moment there are 8 tiddlers tagged: $:/tags/PageTemplate ... 11
> tiddlers tagged: $:/tags/ViewTemplate ... 9 tiddlers tagged:
> $:/tags/EditTemplate ... 7 tiddlers tagged: $:/tags/SideBar ... and about
> 33 toolbar buttons.
>
> So you may safe some of them but that's basically it. TW consists of about
> 2100 shadow tiddlers in empty.html.  Nobody knows, how they are exactly
> interconnected. It would be possible to find it out, but that would be a
> lot of work I wouldn't want to do.
>
> TiddlyWiki 5.1.0 had 991 shadow tiddlers and about 1.1MByte in size. About
> 460 shadows are $:/language tiddlers ...
>
> In 6 years users requested new UI functionality, which resulted in about
> 1000 shadow tiddlers more and about 1MByte more size of the file. The
> system did grow organically, with a lot of interconnections here and there.
>
> You are right, we may be able to strip about half of the *UI* size, but
> IMO this would mean we will go backwards. ...
>
> just some thoughts
> mario
>
> --
> 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/JuhpaVK_zts/unsubscribe.
> To unsubscribe from this group 

Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread PMario
On Saturday, August 7, 2021 at 4:19:52 PM UTC+2 cj.v...@gmail.com wrote:

i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) to 
> a TID file.  Nothing else.
>

TLDR;

You are right, we may be able to strip about half of the *UI* size, but 
this would mean we will go backwards. ... 

--

As you probably know, browsers will only let you save to the Downloads 
directory and subdirectories with default browser plugins. 
With Timimi you can choose the directory, but you will need 2 components. A 
browser AddOn and an executable.

There is a new file-API for chromium based browsers, but they will also 
need a server somewhere in the background to use the functionality in a 
"secure" way. ... 
 

> No refresh mechanism going on, no loading up a whole TiddlyWiki (with all 
> the tiddlers and plugins), blazingly fast open of a small HTML file to 
> quickly enter some info/knowledge/content on the fly with whatever 
> device, with ability to save that tiddler, parking its the TID file 
> somewhere for later processing in the full TiddlyWiki.
>

In your first post you mentioned, that you don't need all toolbar buttons 
but some of them. ... So if you only want 1 of them, the software needed is 
the same as showing all of them. ... The mechanism to show 1 button is the 
same as to show many of them. It's only a different filter and a list. 

The same is true for the TW UI. It will be possible to create new 
...Templates, that are different to the existing ones, but the 
functionality to handle Page-, Edit- and View templates is the same as with 
a default TW. So I'm sure you don't safe anything in the core. 
 

> Sure I can tweak a TiddlyWiki by adding custom Tiddlers, but I'm talking 
> about a major strip down to have a simple editor for simple note-taking.
>

As I wrote. There will be no major strip down in wiki size. The startup may 
be faster, because less DOM elements are created. ... Especially no 
sidebar. 

At the moment there are 8 tiddlers tagged: $:/tags/PageTemplate ... 11 
tiddlers tagged: $:/tags/ViewTemplate ... 9 tiddlers tagged: 
$:/tags/EditTemplate ... 7 tiddlers tagged: $:/tags/SideBar ... and about 
33 toolbar buttons. 

So you may safe some of them but that's basically it. TW consists of about 
2100 shadow tiddlers in empty.html.  Nobody knows, how they are exactly 
interconnected. It would be possible to find it out, but that would be a 
lot of work I wouldn't want to do. 

TiddlyWiki 5.1.0 had 991 shadow tiddlers and about 1.1MByte in size. About 
460 shadows are $:/language tiddlers ... 

In 6 years users requested new UI functionality, which resulted in about 
1000 shadow tiddlers more and about 1MByte more size of the file. The 
system did grow organically, with a lot of interconnections here and there. 

You are right, we may be able to strip about half of the *UI* size, but IMO 
this would mean we will go backwards. ...

just some thoughts
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/35a5a231-04d0-4fd7-b6b4-9bbb97ac92cdn%40googlegroups.com.


[tw5] Re: Dragable items in List Tab?

2021-08-07 Thread amreus
Thanks for the replies.  I ended up with something very close to Eric first 
example except I added a separate ListEdit tab in the Info area.  If you 
read the Github discussion, Jeremy seems to like the idea so perhaps it'll 
be a feature soon.

Thanks.

On Thursday, August 5, 2021 at 9:53:51 PM UTC-4 Eric Shulman wrote:

> On Thursday, August 5, 2021 at 6:35:09 PM UTC-7 Eric Shulman wrote:
>
>> This is actually quite easy to do, using the *list-links-draggable* macro
>>
>
> errata: my previous solution omitted the display of the "List/Empty" 
> message when the list field is empty.
>
> Here's a corrected version that includes the "List/Empty" message:
> <$list filter="[list{!!title}limit[1]]" emptyMessage=<> 
> variable="has_list_items">
><$macrocall $name="list-links-draggable" type="span" subtype="div" 
> itemTemplate="$:/core/ui/ListItemTemplate"/>
> 
>
> Note:
> * The outer $list widget checks to see if the list field has at least 1 
> item. If it doesn't, the fallback emptyMessage content is displayed.
> * Using variable="has_list_items" preserves the currentTiddler context 
> for use by the $macrocall contained within the $list widget.
>
> -e
>

-- 
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/76d58bf5-cbd8-459e-89e8-555e9e29a681n%40googlegroups.com.


Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread CJ Veniot
Well, something like that, but not the TiddlyWiki full monty.

i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) to
a TID file.  Nothing else.

No refresh mechanism going on, no loading up a whole TiddlyWiki (with all
the tiddlers and plugins), blazingly fast open of a small HTML file to
quickly enter some info/knowledge/content on the fly with whatever
device, with ability to save that tiddler, parking its the TID file
somewhere for later processing in the full TiddlyWiki.

Sure I can tweak a TiddlyWiki by adding custom Tiddlers, but I'm talking
about a major strip down to have a simple editor for simple note-taking.

I could use a simple text file editor, but it is some nice to have a
TidEditor with that preview pane of the WikiText being put in there.

On Sat, Aug 7, 2021 at 3:59 AM Saq Imtiaz  wrote:

> I suspect you would find this prototype by JD of interest:
> http://j.d.fullscreen.tiddlyspot.com/
>
> Click the "fullscreen" button in the tiddler toolbar, and then turn on the
> preview in the editor.
>
> TiddlyWiki has a mechanism to allow you to switch between page layouts
> . So one could
> imagine an alternative page layout which only shows a single tiddler using
> such a fullscreen presentation in edit mode. In other words, I don't think
> you need to grab existing bits out of TiddlyWiki, an alternative layout
> would do the trick. Defining an alternative page layout is all about
> wikitext, HTML and some CSS.
>
> Based on what I have seen of your tiddly tweaking, I am pretty sure this
> would be well within your means if you decided to give it a go.
> Regards,
>
> Saq
>
> On Saturday, August 7, 2021 at 4:28:57 AM UTC+2 cj.v...@gmail.com wrote:
>
>> Something like StackEdit , but to create and
>> edit TID files using TiddlyWiki WikiText.
>>
>> Essentially just a web page (a seriously stripped-down TiddlyWiki?) that
>> looks like a single tiddler in edit mode.  With nothing else except:
>>
>>- a save button to download the content as a TID file
>>- an open button, to find and open an existing TID file
>>- a new button to start editing a new TID
>>- *minus* some of the edit buttons that normally exist in a TiddlyWiki
>>   - excise button
>>   - wikitext link button
>>   - wrap in square brackets button
>>   - wrap in curly brackets button
>>   - insert picture button
>>   - insert pre-configured snippet of text button
>>   - choose the height of the text editor button
>>- minus the "tiddler type" and "add a new field" bits
>>
>> Why?  I like the concept of simple markdown editors for quick
>> note-taking.
>>
>> I could use a simple text editor to create and save TID files, but having
>> something like StackEdit as a single HTML file meant for editing TID's,
>> with the preview pane right there like these markdown editors ... that
>> would be pretty frigging cool.
>>
>> Of course, I do not have the coding chops to build something like this.
>> I imagine for somebody who knows what he/she is doing, it would be a matter
>> of grabbing the useful pre-existing bits right out of TiddlyWiki.
>>
>> I'm hoping somebody might find this dream of mine interesting enough, the
>> kind of editor useful enough, to slap it together?
>>
>> A simple "TidEdit" editor for quick note-taking.  Running in the browser
>> on any device.  That would be pretty cool.
>>
> --
> 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/JuhpaVK_zts/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/1daa9e91-a3d4-4db5-9c95-e8cc9214210en%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/CAMu8EfML9dBFkUwS%3DyR%3D0qhx2hsa1JfcmJ1wwquzDqxTyqmvuA%40mail.gmail.com.


Re: [tw5] Re: Shiraz 2.3.1 new update supports Node Explorer (bidirectional links)

2021-08-07 Thread ludwa6
Having just upgraded from v2.2.2 of Shiraz to latest 2.3.4 (/note to self: 
keep more abreast of news from @Mohammad!), i am keen to enjoy all the 
benefits... But, following the excellent tutorial 
, it seems that the 
last option in Shiraz configuration control panel- "*Show switch palette on 
page controls*" -is missing from my installation.  Have saved and restarted 
my TW  instance (a single-file version) several times, but it makes no 
difference.   Can anyone can suggest a fix or plausible theory of cause?

/walt

On Wednesday, August 4, 2021 at 6:17:14 PM UTC+1 Mohammad wrote:

> Yes, it is possible!
>
> hack the $:/plugins/kookma/viewtemplates/node-explorer
> and search the fields containing the links (use regexp)! Note that right 
> now the dynamic table cannot display a correct type for links in the 
> fields, but you may hide the type!
>
> I myself like simplicity, so for me the text field is enough to be scanned!
>
>
> Best wishes
> Mohammad
>
>
> On Wed, Aug 4, 2021 at 9:24 PM Paul Hampshire  wrote:
>
>> Is there a way to have Node Explorer include links that are in custom 
>> fields in tiddlers? 
>>
>> On Thursday, May 20, 2021 at 12:02:11 PM UTC-4 si wrote:
>>
>>> >>> Yes! Thereis a solution by  pubmania   here: https://git
>>> hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084  
>>>
>>> Thanks!
>>>
>>> On Thursday, 20 May 2021 at 04:36:11 UTC+1 Mohammad wrote:
>>>
 On Thu, May 20, 2021 at 1:25 AM si  wrote:

> Great stuff, thanks Mohammad. I will have to spend some time playing 
> with column templates to see how they work.
>
> Unrelated question: Is there a way to change the orientation of 
> dynamic table? I.e. list the fields as rows instead of columns.
>
 Yes! Thereis a solution by  pubmania   here: https://git
 hub.com/kookma/TW-Shiraz/issues/8#issuecomment-652531084 

 [image: image.png]




> On Wednesday, 19 May 2021 at 19:43:32 UTC+1 Mohammad wrote:
>
>> A Node Explorer is a dynamic table that appears at the bottom of the 
>> current tiddler, displaying links, backlinks and tagging of that 
>> tiddler. This is based on the Zettelkasten method  
>> recently implemented in 
>> Tiddlywiki by Soren Bjornstad (see 
>> https://zettelkasten.sorenbjornstad.com/)
>>
>> The new update of Shiraz 2.3.1 adds a new template to its collection 
>> of dynamic table templates, let's use it for creating a Node Explorer to 
>> show links/backlinks/tagging of current tiddler.
>> For details see 
>> https://kookma.github.io/TW-Shiraz/#Tutorial%20Advanced%20Node%20Explorer
>> You can also use details/slider macro in Shiraz to hide the Node 
>> Explorer on demand!
>>
>>
>> *Code and demo*
>>
>>
>>- Demo: https://kookma.github.io/TW-Shiraz
>>- Code: https://github.com/kookma/TW-Shiraz
>>
>>
>> It is highly recommended to backup your data before trying any new 
>> plugin! Do it before installing shiraz.
>>
>>
>> If you like Shiraz star it at  https://github.com/kookma/TW-Shiraz
>>
>>
>> [image: img_174_chrome.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+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/54e5cbcc-b0d3-439a-af54-02e11055a704n%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/3019ef41-bbc0-4982-b21f-567f5ec27b2bn%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/2ea43946-3798-4610-8681-292768e5597cn%40googlegroups.com.


[tw5] Re: Regex Character Classes not working in search-replace

2021-08-07 Thread John Davis
Awesome, thanks.  I had tried that but messed up the search-replace syntax, 
I didn't realize the angle brackets would replace the square brackets and 
was using both:

[search-replace:i:regexp[],[$2, $1]]

Much appreciated.
On Saturday, August 7, 2021 at 3:42:06 AM UTC-4 saq.i...@gmail.com wrote:

>  It works fine with the shortcut class \w, but if I replace that with 
>> [a-zA-Z0-9_] it breaks, when logically those should be the same. 
>
>
> You cannot have the characters [ and ] inside a literal operand to a 
> filter operator.
> The workaround is to define the regular expression as a variable and then 
> use the variable as the operand.
>
> Pseudo code below.
>
> \define myregexp() ((?:.*\s)|^)([a-zA-Z0-9_]+$)
>
> \define compare-by-last-name-with-character-class()
> [search-replace:i:regexp,[$2, $1]]
> \end
>
>

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


[tw5] Re: Regex Character Classes not working in search-replace

2021-08-07 Thread Eric Shulman
On Saturday, August 7, 2021 at 12:24:28 AM UTC-7 john@gmail.com wrote:

> I'm using a macro and search-replace to convert a list of FirstName 
> LastName to LastName, FirstName.  It works fine with the shortcut class \w, 
> but if I replace that with [a-zA-Z0-9_] it breaks, when logically those 
> should be the same.


The problem is that *regex syntax uses square brackets* (to specify 
character classes), and *TiddlyWiki filter syntax also uses square brackets* 
(to specify literal text operands), and* the filter parser does not allow 
nesting of brackets*.  Thus, when you use the character class regex syntax, 
it breaks the filter syntax due to nesting of square brackets.

This is noted here: https://tiddlywiki.com/#regexp%20Operator, where it 
says:
*The filter syntax makes it impossible to directly specify a regular 
expression that contains square brackets. The solution is to store the 
expression in a variable. *

The workaround is to put your regex patterns into variables, and then use 
those variables in the filter, like this:
\define compare-by-last-name-with-character-class()
<$vars search="((?:.*\s)|^)([a-zA-Z0-9_]+$)" replace="$2, $1">
[search-replace:i:regexp,]

\end

Note that is this particular use-case, it's not strictly necessary to put 
the "replace" pattern into a variable, since it doesn't actually use square 
brackets in the syntax.  However, I find that putting both the search 
pattern and the replacement pattern into variables makes the filter syntax 
more consistent and easier to read.

enjoy,
-e

-- 
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/067903e8-971c-480c-bcc9-7fc6d1a1ac1en%40googlegroups.com.


[tw5] Re: Regex Character Classes not working in search-replace

2021-08-07 Thread Saq Imtiaz

>
>  It works fine with the shortcut class \w, but if I replace that with 
> [a-zA-Z0-9_] it breaks, when logically those should be the same. 


You cannot have the characters [ and ] inside a literal operand to a filter 
operator.
The workaround is to define the regular expression as a variable and then 
use the variable as the operand.

Pseudo code below.

\define myregexp() ((?:.*\s)|^)([a-zA-Z0-9_]+$)

\define compare-by-last-name-with-character-class()
[search-replace:i:regexp,[$2, $1]]
\end

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


[tw5] Regex Character Classes not working in search-replace

2021-08-07 Thread John Davis
I'm using a macro and search-replace to convert a list of FirstName 
LastName to LastName, FirstName.  It works fine with the shortcut class \w, 
but if I replace that with [a-zA-Z0-9_] it breaks, when logically those 
should be the same. My actual goal is to replace \w with something like [^ 
], because where it's breaking is last names that include apostrophes.

This is an example that can be inserted in a new Tiddler to demonstrate the 
issue; the first list is the way it's currently working (you can see 
Vincent D'Onofrio is out of order and not in LastName, FirstName format) 
and the second list is broken due to the character class issue:



\define compare-by-last-name()
[search-replace:i:regexp[((?:.*\s)|^)(\w+$)],[$2, $1]]
\end
\define compare-by-last-name-with-character-class()
[search-replace:i:regexp[((?:.*\s)|^)([a-zA-Z0-9_]+$)],[$2, 
$1]]
\end


<$set name="listOfNames" value="[[Charlie Cox]] [[Vincent D'Onofrio]] 
[[Deborah Ann Woll]] [[Elden Henson]] [[Royce Johnson]] [[Geoffrey Cantor]] 
[[Jay Ali]] [[Jon Bernthal]] [[Stephen Rider]] [[Wilson Bethel]] [[Ayelet 
Zurer]] [[Peter McRobbie]] [[Amy Rutberg]] [[Elodie Yung]] Awkwafina" >



<$list filter="[enlistsortsub]">
<$link><$text 
text={{{[search-replace:i:regexp[(.*)(\s\w+$)],[$2, 
$1]]}}}/>





<$list 
filter="[enlistsortsub]">
<$link><$text 
text={{{[search-replace:i:regexp[(.*)(\s\w+$)],[$2, 
$1]]}}}/>






-- 
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/f0c90269-244b-4f1b-ad2f-68c2a3e33633n%40googlegroups.com.


[tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread Saq Imtiaz
I suspect you would find this prototype by JD of interest:
http://j.d.fullscreen.tiddlyspot.com/

Click the "fullscreen" button in the tiddler toolbar, and then turn on the 
preview in the editor.

TiddlyWiki has a mechanism to allow you to switch between page layouts 
. So one could 
imagine an alternative page layout which only shows a single tiddler using 
such a fullscreen presentation in edit mode. In other words, I don't think 
you need to grab existing bits out of TiddlyWiki, an alternative layout 
would do the trick. Defining an alternative page layout is all about 
wikitext, HTML and some CSS.

Based on what I have seen of your tiddly tweaking, I am pretty sure this 
would be well within your means if you decided to give it a go.
Regards,

Saq

On Saturday, August 7, 2021 at 4:28:57 AM UTC+2 cj.v...@gmail.com wrote:

> Something like StackEdit , but to create and 
> edit TID files using TiddlyWiki WikiText.
>
> Essentially just a web page (a seriously stripped-down TiddlyWiki?) that 
> looks like a single tiddler in edit mode.  With nothing else except:
>
>- a save button to download the content as a TID file
>- an open button, to find and open an existing TID file
>- a new button to start editing a new TID
>- *minus* some of the edit buttons that normally exist in a TiddlyWiki
>   - excise button
>   - wikitext link button
>   - wrap in square brackets button
>   - wrap in curly brackets button
>   - insert picture button
>   - insert pre-configured snippet of text button
>   - choose the height of the text editor button
>- minus the "tiddler type" and "add a new field" bits
>
> Why?  I like the concept of simple markdown editors for quick 
> note-taking.  
>
> I could use a simple text editor to create and save TID files, but having 
> something like StackEdit as a single HTML file meant for editing TID's, 
> with the preview pane right there like these markdown editors ... that 
> would be pretty frigging cool.
>
> Of course, I do not have the coding chops to build something like this.  I 
> imagine for somebody who knows what he/she is doing, it would be a matter 
> of grabbing the useful pre-existing bits right out of TiddlyWiki.
>
> I'm hoping somebody might find this dream of mine interesting enough, the 
> kind of editor useful enough, to slap it together?
>
> A simple "TidEdit" editor for quick note-taking.  Running in the browser 
> on any device.  That would be pretty cool.
>

-- 
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/1daa9e91-a3d4-4db5-9c95-e8cc9214210en%40googlegroups.com.