Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-29 Thread Saq Imtiaz
Here is an example of a macro that can be used to export a stream using a 
custom HTML structure:

\define print-row()
\whitespace trim
<$(innerTag)$>{{!!text}}
<$list filter="[has[stream-list]]" variable="_NULL">
<$(outerTag)$>
<$list filter="[enlist{!!stream-list}is[tiddler]]">
<>




\end

\define print-stream()
\whitespace trim
<$(outerTag)$>
<$list filter="[enlist{!!stream-list}is[tiddler]]">
<>


\end

\define export-stream(tiddler:"" outerTag:"article" innerTag:"section")
\whitespace trim
<$vars outerTag="$outerTag$" innerTag="$innerTag$" 
currentTiddler="$tiddler$">
<>

\end

You can test it on the demo at 
https://saqimtiaz.github.io/sq-tw/streams.html

Try the following:

   - 
   - <>
  - to export using article and section tags
   - 
   - <>
  - to export as a list in HTML
   
If you need a copy to clipboard button it would look something like this:
<$button>
<$wikify name="stream-html" text=<> 
output="html" >
<$action-sendmessage $message="tm-copy-to-clipboard" 
$param=<>/>

Copy stream to clipboard as HTML


Similarly you can write recursive macros to output as just flat text (with 
no structure or hierarchy) or wiki text list syntax (assuming you have no 
multi-line content). I will add all of these examples to the documentation 
as soon as I find the time.


-- 
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/5ef1d68f-be26-4617-b073-af02d319f1c9o%40googlegroups.com.


Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-29 Thread Saq Imtiaz
Hi Jan, there are many options for UI but it still doesn't answer the 
question of which format to flatten to. 
Having a default feature to flatten to wiki list syntax is a non-starter, 
as it does not support multi-line content.

I have some examples written already for exporting a stream, I just haven't 
had the chance to clean them up and add them to the documentation yet.

On Sunday, June 28, 2020 at 8:18:15 PM UTC+2, Jan wrote:
>
> Hi Saq,
> thanks for your answer, I had to medidate a little on it.
> The possibilities to flatten structures in the list are in deed great. 
> What about giving the practical rename modal an option to flatten the 
> chosen branch at the same time (or just to flatten without renaming)?
>
> Best wishes Jan
>
>
>
>
>
> Am 26.06.2020 um 08:41 schrieb Saq Imtiaz:
>
> Hi Jan,
>
> On Friday, June 26, 2020 at 1:25:05 AM UTC+2, Jan wrote: 
>>
>> I would be very great to have the option to flatten either the entire 
>> list or a branch of the list for restructuring or export tat you mention 
>> in the roadmap. 
>>
>
> What makes this rather complex is that each node is a tiddler, that could 
> have any kind of content. So what format would you flatten to, which 
> supports both multi-line content and hierarchy?
>  
> Also it is worth remembering that the relationship between the node 
> tiddlers is based on fields, so users can write a list filter to flatten 
> and export as fits their use case.
>
> I think eventually I will just add a few examples of such list filters 
> rather than any built in export/flatten features.
>
>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/152b6944-a8d2-46bb-9ac5-288bfe5c382ao%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/cec80bde-a237-4a24-8d4b-8920ad20c046o%40googlegroups.com.


Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-28 Thread TW Tones
All,

Saq's Streams is very powerful, yet it also makes use of openly published 
methods to generate its list in sub-tiddlers and fields etc...

Thus with a little work you too can build different ways to list your 
stream, convert or rename stream tiddlers and a lot more, like make them 
appear in separate lists and tables, tag and list only stream items by tag 
etc...

In time others can publish stream aware views and tools that build on 
streams without making streams any more complex. The sooner streams is 
accepted as complete the sooner others can write reliable additions for 
streams, confident it will not change under them.

If you look at the default behaviour all the bullets are represented as 
subtiddlers under the top tiddlername/20200622044859299 and listed in 
tiddlername!!stream-list

list with [prefix[tiddlername]] or [enlist{stream-tiddler!!stream-list}] 
which can be put into a recursive macro to walk the tree, example may 
follow in new thread.

Regards
Tony


On Monday, June 29, 2020 at 4:18:15 AM UTC+10, Jan wrote:
>
> Hi Saq,
> thanks for your answer, I had to medidate a little on it.
> The possibilities to flatten structures in the list are in deed great. 
> What about giving the practical rename modal an option to flatten the 
> chosen branch at the same time (or just to flatten without renaming)?
>
> Best wishes Jan
>
>
>
>
>
> Am 26.06.2020 um 08:41 schrieb Saq Imtiaz:
>
> Hi Jan,
>
> On Friday, June 26, 2020 at 1:25:05 AM UTC+2, Jan wrote: 
>>
>> I would be very great to have the option to flatten either the entire 
>> list or a branch of the list for restructuring or export tat you mention 
>> in the roadmap. 
>>
>
> What makes this rather complex is that each node is a tiddler, that could 
> have any kind of content. So what format would you flatten to, which 
> supports both multi-line content and hierarchy?
>  
> Also it is worth remembering that the relationship between the node 
> tiddlers is based on fields, so users can write a list filter to flatten 
> and export as fits their use case.
>
> I think eventually I will just add a few examples of such list filters 
> rather than any built in export/flatten features.
>
>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/152b6944-a8d2-46bb-9ac5-288bfe5c382ao%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/bc7a7353-756a-4e13-bb78-5c0753d743eao%40googlegroups.com.


Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-28 Thread Jan

Hi Saq,
thanks for your answer, I had to medidate a little on it.
The possibilities to flatten structures in the list are in deed great.
What about giving the practical rename modal an option to flatten the 
chosen branch at the same time (or just to flatten without renaming)?


Best wishes Jan





Am 26.06.2020 um 08:41 schrieb Saq Imtiaz:

Hi Jan,

On Friday, June 26, 2020 at 1:25:05 AM UTC+2, Jan wrote:

I would be very great to have the option to flatten either the entire
list or a branch of the list for restructuring or export tat you
mention
in the roadmap.


What makes this rather complex is that each node is a tiddler, that 
could have any kind of content. So what format would you flatten to, 
which supports both multi-line content and hierarchy?
Also it is worth remembering that the relationship between the node 
tiddlers is based on fields, so users can write a list filter to 
flatten and export as fits their use case.


I think eventually I will just add a few examples of such list filters 
rather than any built in export/flatten features.



--
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/152b6944-a8d2-46bb-9ac5-288bfe5c382ao%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/5EF8DE0A.6030301%40googlemail.com.


Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-26 Thread Saq Imtiaz
Hi Jan,

On Friday, June 26, 2020 at 1:25:05 AM UTC+2, Jan wrote:
>
> I would be very great to have the option to flatten either the entire 
> list or a branch of the list for restructuring or export tat you mention 
> in the roadmap. 
>

What makes this rather complex is that each node is a tiddler, that could 
have any kind of content. So what format would you flatten to, which 
supports both multi-line content and hierarchy?
 
Also it is worth remembering that the relationship between the node 
tiddlers is based on fields, so users can write a list filter to flatten 
and export as fits their use case.

I think eventually I will just add a few examples of such list filters 
rather than any built in export/flatten features.


-- 
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/152b6944-a8d2-46bb-9ac5-288bfe5c382ao%40googlegroups.com.


Re: [tw5] Preview: keyboard driven draggable bullets

2020-06-25 Thread Jan

Hi Saq,
this is a really great approach to enhance the capabilities of 
TiddlyWiki as a tool for getting nonlinear thoughts into order.
I would be very great to have the option to flatten either the entire 
list or a branch of the list for restructuring or export tat you mention 
in the roadmap.


Do you think it cold be a good idea to prefill  the  field to choose a 
new name for a tiddler with a selected text in that box?


Cheerio and thanks for the great work
Jan





Am 20.05.2020 um 23:44 schrieb Saq Imtiaz:

When I'm under the weather I tend to prototype. Spent some time reworking code 
from my eternally in progress task manager in an attempt to make it more 
general purpose, as a bullet list note taking tool that may be of utility to 
others.

https://drive.google.com/file/d/1SB06s13tj8P3cC2UewnfzXf08UQ7jwYK/view?usp=drivesdk

https://drive.google.com/file/d/1SLESm6OIfHsScwYePGOs5ce3o3wpQ0CO/view?usp=drivesdk

- everything except the dragging is keyboard driven
- each bullet is a separate tiddler. Lots of different pros and cons to this 
approach, but was ideal for a task manager.
- this is all in wikitext, no extra JS.

  Will post the file in the near future, a bit more clean up needed. Don't 
expect a final product, but rather a pattern to follow that would hopefully 
help anyone wanting to implement similar workflow.

Cheers,
Saq



--
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/5EF5317C.50304%40googlemail.com.