Here I am trying to create a note-generator using droppable widget. I plan to drag and drop text and images into this dropzone to create new note tiddlers. A function similar to web clippers.
These two post were the building steps in this process -1 and 2. What I want now is to split a dragged paragraph of text into individual sentences with unordered list formatting.
May be split the dragged text at period
or full-stop
and join them with period+line-break+bullet
This is the relevant part of the code
\procedure droppable-text-actions()
<$action-createtiddler $basetitle={{{ [<actionTiddler>split[/]last[]] }}} $template=<<actionTiddler>> >
<$wikify name=import-text text=<<actionTiddler>>>
<$let
lf="""
"""
ul=*
2ul=**
>
<$action-setfield $tiddler=<<createTiddler-title>>
text={{{ [<actionTiddler>] }}}
class="card-3"/>
<$list filter="[<modifier>match[normal]]" variable=nul>
<$action-setfield $tiddler="$:/arsheth/new_note/form" text={{{[[$:/arsheth/new_note/form]get[text]addsuffix<lf>addsuffix<lf>addsuffix<import-text>else<import-text>] }}} />
</$list>
<$list filter="[<modifier>match[ctrl]]" variable=nul>
<$action-setfield $tiddler="$:/arsheth/new_note/form" text={{{[[$:/arsheth/new_note/form]get[text]addsuffix<lf>addsuffix<ul>addsuffix<import-text>else<import-text>] }}} />
</$list>
<$list filter="[<modifier>match[ctrl-shift]]" variable=nul>
<$action-setfield $tiddler="$:/arsheth/new_note/form" text={{{[[$:/arsheth/new_note/form]get[text]addsuffix<lf>addsuffix<2ul>addsuffix<import-text>else<import-text>] }}} />
</$list>
</$let>
</$wikify>
<$action-deletetiddler $tiddler=<<createTiddler-title>>/>
</$action-createtiddler>
\end
How to modify the above code to get the result ?