So out of lazyness I performed the change using the following two regular 
expressions:

This regex turned all `<aka something>>` into `[[something|?]]`

```
(?:<<aka )(.*?)(?:>>)
```

This left the old `"` though, so this one fixed that:

```
(?:\[\[\")(.*)(?:\"\|\?\]\])
```

See: 

* https://regex101.com/r/2wJ4cN/1
* https://regex101.com/r/ehRSB7/1

for interactive explanations.

Best,
Diego



On Saturday, December 16, 2017 at 7:26:45 PM UTC-6, Diego Mesa wrote:
>
> Just noting here - I am using a text editor to replace all of my old <<aka 
> "alias with spaces">> links across all of my tiddlers with the new [[alias 
> with spaces|?]] format that supports backlinks. In doing so, I realized 
> that I was not correctly dealing with the " character, and was left with 
> something like this:
>
> [["alias with spaces"|?]] which resulted in the following:
>
> <$list filter=" 
> <https://wikilabs.github.io/editions/uni-link/#%22alias%20with%20spaces%22%5Dis%5Balias>"alias
>  
> with spaces"]is[alias 
> <https://wikilabs.github.io/editions/uni-link/#%22alias%20with%20spaces%22%5Dis%5Balias>"
>  
> variable=ali emptyMessage="alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#%3F>><$list 
> filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" 
> variable="dummy">"alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#Alexander%20III%20of%20Macedon><$list
>  
> filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" 
> variable="dummy">"alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#Darwinism><$list 
> filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" 
> variable="dummy">"alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#test-double-definition><$list 
> filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" 
> variable="dummy">"alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#test-double-definition-2><$list
>  
> filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" 
> variable="dummy">"alias with spaces" 
> <https://wikilabs.github.io/editions/uni-link/#testx></$list> </$list>
>
> I would not say this a bug in the plugin, as I have incorrectly formatted 
> a link. Just making note of this behavior here. 
>
>
>
> On Saturday, December 16, 2017 at 7:03:04 PM UTC-6, Diego Mesa wrote:
>>
>> Hey Mario,
>>
>> Sorry I misunderstood - this plugin will have to necessarily modify 
>> the way links are handled, I was just confused because:
>>
>> [[mylink|mytiddler]] is left normal - no styling applied but 
>> [[tiddler-without-a-caption-or-subtitle-or-alias]] - is indeed styled
>>
>> I was not expecting that. Thank you for your work on this and the helpful 
>> video. 
>>
>>
>> On Saturday, December 16, 2017 at 2:45:55 PM UTC-6, PMario wrote:
>>>
>>> Hi,
>>>
>>> On my own personal TW Im seeing the following in my TableOfContents 
>>>> (attached), with the following content:
>>>
>>>
>>> That's not a question. So I don't know, what to do with that info?
>>>
>>> Have a look at the video, IMO it may answer some of your question. 
>>>
>>> -m
>>>
>>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/27c38d96-a5b3-4560-acc2-53f04b7ac228%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to