[tw5] Re: Three plugins available

2022-01-04 Thread joost van den Dool
Hi David,

I uploaded the demo to: https://tiddlywiki.doolplex.org/plugin%20demo.html

Kind regards,

Joost


Op dinsdag 4 januari 2022 om 15:33:07 UTC+1 schreef David Gifford:

> Hi Joost, this looks interesting. If you put out a demo site, please 
> mention it here, and I will add it to the TiddlyWiki toolmap (
> https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM)
>
> Blessings
>
> On Tuesday, January 4, 2022 at 7:48:32 AM UTC-6 dode...@gmail.com wrote:
>
>> Hi,
>>
>> All the best for 2022. A little over a year ago I started using 
>> TiddlyWiki and I love it. During last year I used it for managing my tasks 
>> and notes. During the Christmas break I created some plugins to enhance my 
>> bullet journal implementation. I made the following plugins:
>>
>>- Kanban Board
>>an simple, easy to use kanban board which can be integrated in your 
>>TiddlyWiki which is based on a wikitext macro
>>- GroupedTable
>>A wikitext macro which renders an table which support row grouping 
>>based on filer and grouping field parameter
>>- Rich Text Editor
>>Simple rich text editor which support tab and shift0tab for easy 
>>handling of bullets. I used it for editing notes in view mode
>>
>> The plugins and a  demo file with Stroll and the three plugins with some 
>> sample data is available at: 
>> https://github.com/JoostvandenDool/TW-Plugins
>>
>> Looking forward to your feedback and suggestions and I hope they are 
>> useful for you too.
>>
>> Kind regards, 
>>
>> Joost
>>
>

-- 
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/3b6bbaf9-61f0-4c44-b64b-f9dc526d2576n%40googlegroups.com.


[tw5] Three plugins available

2022-01-04 Thread joost van den Dool
Hi,

All the best for 2022. A little over a year ago I started using TiddlyWiki 
and I love it. During last year I used it for managing my tasks and notes. 
During the Christmas break I created some plugins to enhance my bullet 
journal implementation. I made the following plugins:

   - Kanban Board
   an simple, easy to use kanban board which can be integrated in your 
   TiddlyWiki which is based on a wikitext macro
   - GroupedTable
   A wikitext macro which renders an table which support row grouping based 
   on filer and grouping field parameter
   - Rich Text Editor
   Simple rich text editor which support tab and shift0tab for easy 
   handling of bullets. I used it for editing notes in view mode

The plugins and a  demo file with Stroll and the three plugins with some 
sample data is available at: https://github.com/JoostvandenDool/TW-Plugins

Looking forward to your feedback and suggestions and I hope they are useful 
for you too.

Kind regards, 

Joost

-- 
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/4ac12846-8dc1-4282-8d66-11507b09a7cen%40googlegroups.com.


[tw5] Re: Custom sort order

2021-05-01 Thread joost van den Dool
Dear Max,

I had a similar problem with task statuses which I wanted to sort in a 
non-alphabetic way. I used the following:
<$list filter="[tag[Tasks]each[status]get[status]*sortby{!!sortkey}]*">

the sort key field was filled with the sortkeys separated by a space: next 
future done archived

I am not sure if this fully helps for the prefixes but hopefully it can set 
you in the right direction.

Kind regards,

Joost

Op zaterdag 1 mei 2021 om 03:52:28 UTC+2 schreef Max Rozeman:

> I use a 2-character prefix for tiddler headings, and 9 different 
> 2-character prefixes for tiddler headings. Tiddler headings are often 
> listed using <>. The problem is that the tiddler headings 
> need to be sorted in a particular non-alphabetical order: (SC, SP, ER, MV, 
> IR, SN, CT, AC, CO). An easy solution would be to add prefixes to the 
> prefixes, e.g.: (1 SC, 2 SP, 3 ER, ...) and sort headings using 
> [sort[title]], but that would be messy. Is there a better way that doesn't 
> require additional prefixes?

-- 
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/1d131069-3b34-499e-8dbf-e93e6863a4a6n%40googlegroups.com.


[tw5] Re: Datatable Integration in TW5

2021-04-27 Thread joost van den Dool
Thank you for you support and ideas. I took them together, spent a day 
JavaScript hacking and published the result 
here: http://tiddlywiki.doolplex.org/#GroupedTable%20Macro

I will ananimize the planning tool and publish it later as well as well as 
other macro's and tweaks I made.

Thank you for you help

Op zondag 25 april 2021 om 00:07:42 UTC+2 schreef PMario:

> On Saturday, April 24, 2021 at 9:34:35 PM UTC+2 dode...@gmail.com wrote:
>
>> Thank you for your feedback. The alternatives look nice but i miss 
>> grouping. So tioday I wrote my own javascript version without jQuery. I 
>> hope to integrate it in TiddlyWiki on Monday. For a demo see: 
>> https://jsfiddle.net/Joost75/0tad8hgu/#&togetherjs=OzCsdP3kCO
>
>
> Nice code and nice looking table! 
>
> But that's not, how TW works. TW has it's own rendering mechanism, similar 
> to react, which constantly updates the DOM according to tiddler state. TW 
> stores everything in tiddlers. 
>
> The whole UI state, is stored in tiddlers. The TW DOM is rewritten with 
> every key press or UI interaction if needed.
>
> So as soon as you click a button, or edit a tiddler, your DOM structure 
> will be destroyed and your sorting will start from zero. 
>
> You'll need to create a TW widget, if you want to use JS code. But I think 
> that's not necessary. 
>
> From your OP and JsFiddler 1 journal entry is 1 tiddler. ad looks similar 
> to this. eg:
>
> title:  CC Vision 
> category: CC SA
> period: Q2
> assignee: abc
>
> A sorted "by period" table should look like this: 
>
> [image: table-example-01.gif]
> That's nice.  I'm not sure, what the "selector" is for. 
>
> I'm pretty sure, that all of this can be done with pure wikitext, without 
> any javascript code. ... 
>
> I personally would add a tag to every tiddler eg: journal, which will 
> allow me to easily select "all" jouernals. It's also possible, to select 
> all tiddlers that have a field "period" or "category" ... It only needs to 
> be sure, that those fields exist. ...
>
> Your table looks very similar to the core "timeline" macro. So I'd start 
> from there: 
> https://tiddlywiki.com/#timeline%20Macro:%5B%5Btimeline%20Macro%5D%5D%20%24%3A%2Fcore%2Fmacros%2Ftimeline%20%5B%5Btimeline%20Macro%20(Examples)%5D%5D
>
> 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/2398a880-c263-4dfc-884d-003066dcceefn%40googlegroups.com.


[tw5] Re: Datatable Integration in TW5

2021-04-24 Thread joost van den Dool
Thank you for your feedback. The alternatives look nice but i miss 
grouping. So tioday I wrote my own javascript version without jQuery. I 
hope to integrate it in TiddlyWiki on Monday. For a demo 
see: https://jsfiddle.net/Joost75/0tad8hgu/#&togetherjs=OzCsdP3kCO

Kind regards, 

Joost

Op zaterdag 24 april 2021 om 19:18:41 UTC+2 schreef Mark S.:

> Like pMario says, its always better if you can get a native solution. Your 
> JS script isn't going to know about tiddlers, fields, filters, etc.
>
> "Datatables" looks a lot like Dynamic Tables (
> https://kookma.github.io/TW-Shiraz/#Tutorial%20Dynamic%20Tables). 
>
>
>
> On Saturday, April 24, 2021 at 4:52:29 AM UTC-7 PMario wrote:
>
>> Hi Joost, 
>> And welcome!
>>
>> If you have a look here https://links.tiddlywiki.com/topics/tables/ you 
>> may find something useful, that already works for TW?
>>
>> Including jQuery plugins isn't the best way to go with TW, because the 
>> step on each others toes. 
>>
>> -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/de3f8877-ba23-44c4-aa4a-e1fef611a59fn%40googlegroups.com.


[tw5] Datatable Integration in TW5

2021-04-24 Thread joost van den Dool
Goodafternoon,

I started since a while to play with TW5 and I love it. I created a 
personal planning tool with weekly logs, journal items and stakeholder 
pages. My next step is to create an activity overview. Each activity is a 
tiddler and in the overview I show title, category, assignee and quarter 
(in which the activity should be done e.g. 2021Q2).
Now i would like to use the JavaScript framework datatables 
(https://datatables.net/) to enhance this table with sorting and grouping. 
For instance I want to group on category or quarter to get better insight.
I made a tiddler which I tagged as $:/tags/RawMarkup and set the type 
to: text/vnd.tiddlywiki the content of the tidder is:
https://cdn.datatables.net/1.10.24/css/jquery.dataTables.css";>
https://cdn.datatables.net/rowgroup/1.1.2/css/rowGroup.dataTables.min.css";>
https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";>
https://cdn.datatables.net/1.10.24/js/jquery.dataTables.js";>
https://cdn.datatables.net/rowgroup/1.1.2/js/dataTables.rowGroup.min.js";>

$(document).ready( function () {

debugger;

$(table).DataTable( {
paging: false,
order: [[2, 'asc']],
rowGroup: {
dataSrc: 2
}
} );
} );


this is the logic I tested first in a standalone html page to test the 
datatable.  Running this I get an uncaught exception. When I look in the 
develop console of my Chrome browser I see that table is not defined. Also 
when I try other jQuery commands on table it fails. Although jQuery on the 
document works. 

Anyone an idea how to include this great library to enhance my tables?

Kind regards, Joost

-- 
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/3513f218-eeb3-483d-8340-b7ab2b0678c9n%40googlegroups.com.