On Friday, July 31, 2020 at 9:24:03 PM UTC-7, Rafael Oliveira wrote:
>
> Wow, this PowerSearch tiddler really simplifies the searches that I can 
> do. It also will help me understand better how to create macros on TW. 
> Thanks for sharing it :)
>

You're welcome!
 

> 1- I was looking inside the PowerSearch code. The part that prints the 
> results is this one:
> \define doSearch_showresults()
> <blockquote style="overflow-y:auto;max-width:100%;max-height:$(height)$;">
>    <div class="columns$(cols)$ small nowrap">
>       <$list filter=<<filter>>><$link/><br></$list>
>    </div>
> </blockquote>
> \end
>
> I'd like to display the created date or modification date on this list as 
> well... I think it's just a matter of finding the right variable, like in:
>  <$list filter=<<filter>>><$link/>        <$date><br></$list>
>
> You're close.

Inside the <$list>...</$list>, the <<currentTiddler>> is set to the value 
of each tiddler that matches the filter. 

In this context, <$link /> displays a link to the current tiddler.

To show the modified (or created) field, you can use the <$view> widget, 
like this:
<$list filter=<<filter>>>
   <$link/> <$view field="modified" format="date" template="0MM/0DD/YYYY" 
/> <br>
</$list>


2- Is there any way of showing the highlight syntax of the "TiddlyWiki 
> language" to facilitate its development? 
>

I'm so used to the TiddlyWiki syntax, that I just use the standard 
EditTemplate textarea input without any
enhancements.

However, there are a few plugins that replace/enhance the standard textarea 
input control.  I think that
CodeMirror is perhaps the most fully developed alternative editor plugin 
for TiddlyWiki... but I don't
know if it does TiddlyWiki syntax highlighting.  There's also the 
"highlight.js" plugin, which supports
code highlighting "brushes" for many different languages (but not yet for 
TiddlyWiki syntax).
I think someone has also been working on incorporating a VIM-based editor 
with support for TiddlyWiki
syntax... but haven't been following that effort very closely, so I'm not 
sure how far along it is.
Try searching this Google group to find out who is working on it.

-e

-- 
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/c2d35002-0825-4524-95f6-48e809829652o%40googlegroups.com.

Reply via email to