@TT
Using the attached simple view template makes life easier!

I did extra tests with 850kB bookmarks no icons! And the Saq solution works
like a charm!
I think it is good to create a created field, to have added bookmarks in
the Recent tab!
But this is not good if one adds many bookmarks at once!

Best wishes
Mohammad


On Sat, May 22, 2021 at 3:38 PM Mohammad Rahmani <[email protected]>
wrote:

> @TT
>
> Attached bookmark has nasty characters in the titles!
> Look inside using a text editor! Then see how deserializer works here!
>
> *Sidenote:*
> I think this way we can also import phone books from android and ios ;-)
> or we can import the history of today's web surfing in FF!
> Saq provided a very powerful tool! His recently merged PRs allow users
> to drag and drop texts instead of files!
> So, I think, many types of data can be imported, if a
> good deserialization is used! What do you think?
>
> Best wishes
> Mohammad
>
>
> On Sat, May 22, 2021 at 3:33 PM Mohammad Rahmani <
> [email protected]> wrote:
>
>> @ TT
>> Check the attached revised one!
>> 1. drag and drop the attached JSON in empath.html (download one from
>> https://tiddlywiki.com/prerelease/)
>> 2. save and reload
>> 3. drag and bookmarks.html exported from FF/Edge/Chrome (I have one with
>> nasty chars in the title)
>> 4. See how the import works in Tiddlywiki
>>
>> @Saq
>>
>> Hoora! It works! Please see the code and advise!
>>
>> 1. I attached the revised deserializer and it works for titles with nasty
>> characters.
>> 2. Next step I will see how to use a unique title, help please
>> 2.1. how can do this? should I use unusedtitle macro from TW core?
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sat, May 22, 2021 at 3:21 PM TiddlyTweeter <[email protected]>
>> wrote:
>>
>>> Right.
>>>
>>> Try the second match pattern I gave and let me know if it works for
>>> those cases ...  */[|{}\[\]]/*
>>>
>>> On Saturday, 22 May 2021 at 12:46:05 UTC+2 Mohammad wrote:
>>>
>>>> Do we need to capture what is in this between?
>>>>
>>>> consider a title like:   AIChE | American Institute of Chemical
>>>> Engineers [2021]
>>>> we need to remove [] and replace with -
>>>>
>>>>
>>>> Best wishes
>>>> Mohammad
>>>>
>>>>
>>>> On Sat, May 22, 2021 at 3:12 PM TiddlyTweeter <[email protected]>
>>>> wrote:
>>>>
>>>>> @TT
>>>>> What is the regex to replace the below chars with `-` at thesame time
>>>>> |,  {,  }
>>>>>
>>>>> In raw JavaScript the regex match could be: */[|{}]/*
>>>>> The replace simply: */-/*
>>>>> IF you want to change "[" and "]" too try: */[|{}\[\]]/*
>>>>> I have NOT tested this so if there are issues let me know!
>>>>> TT
>>>>>
>>>>> --
>>>>>
>>>> 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 [email protected].
>>>>>
>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/tiddlywiki/4ccfc5e7-a333-4ad8-99c4-466e30f5f185n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/tiddlywiki/4ccfc5e7-a333-4ad8-99c4-466e30f5f185n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/59ef0fc2-66b4-43d7-8469-ee0b97089bf7n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/59ef0fc2-66b4-43d7-8469-ee0b97089bf7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDwbsUM-a7BJ0pac7zayWTbFP--_tFd2SbbX_qvmPfL6A%40mail.gmail.com.

Attachment: viewTemplate_bookmark.json
Description: application/json

Reply via email to