Improve search function

96 views
Skip to first unread message

Stefan Schlechter

unread,
Dec 30, 2020, 4:01:27 AM12/30/20
to TiddlyWiki

Hello,

I would appreciate to implement these functions as an option into ‘normal’ search-button:

1.     Add user defined timestamp (eg published) and/or tag-name after tiddler name:
searched for ‘great’ - result can be like

(timestamp and tag can be in smaller font and colored)

2.     Content search

Using $:/plugins/danielo515/ContextPlugin‘ you will get a nice preview of the content of each tiddler:

3.     Open the Tiddler and search

Using ‘$:/plugins/bimlas/highlight-searched-text’ will find the text only in preview view

Ctrl+F (like in browser) is not working – would be a nice feature


All screenshots in attached pdf-file

Thanks
Stefan

Improve_Search_function.pdf

PMario

unread,
Dec 30, 2020, 7:08:24 AM12/30/20
to TiddlyWiki
Hi Stefan,

Not everyone has the same preferences. That's why we do have plugins. ...

Dates have a language specific format. Eg: I use / prefer 2020.12.30, which is different for other uses. .. So to implement a  published date would need to be implemented as a TW date field. ...

I did create a plugin, that lets users search all  additional and some "special" fields. see: https://wikilabs.github.io/#field-search

It will be relatively easy to add your "published" field, as a text-field that way.

-mario

Stefan Schlechter

unread,
Dec 30, 2020, 10:40:56 AM12/30/20
to TiddlyWiki
Hello Mario,

the goal is to have the tiddler name + a timestamp and / or tag (see screenshot ad 1) as a search result.
Just reading the Tiddler title doesn't say anything about if this is an older oder newer one...

The "published" field was just an idea to have a field for that  (yes, it should be a date field).

BTW: using Advanced Search / Content (ad 2 ) you will find this info also in text - for that I don't need the "published" field

Greetings
Stefan

Ton Gerner

unread,
Dec 30, 2020, 2:34:28 PM12/30/20
to TiddlyWiki
Hi Stefan,

As Mario states: "Not everyone has the same preferences. That's why we do have plugins. ... "

See the way I implemented my Tags search (as part of my Top toolbar plugin): http://www.tongerner.nl/TW5/TW5_index.html > TW5 playground

* Click at Advanced search in the top toolbar and choose Tags search
* Choose e.g tag 'documentation'
* Select a sorting criterion
* The resulted list show titles with creation and modification dates
* Options are:
** Expand a tiddler
** Open a tiddler
** Delete a tiddler

Cheers,

Ton

Stefan Schlechter

unread,
Dec 31, 2020, 2:03:27 AM12/31/20
to TiddlyWiki
Hi Ton,

thanks for your feedback.

Keep in mind: created date <> modified date <> "published" date.
You can write a story today and publish it next month; you also can write another story and publish it next week.

Thanks to Context plugin of 'danielo515 ' you can search for the text within a tiddler and you will find all information written there.
BUT: as a search result you'll see just the tiddler name and you don’t know, which is the most recent one!

Thats why I asked for "Tiddler name + "published" timestamp"

Regards
Stefan

Reply all
Reply to author
Forward
0 new messages