TiddlyWiki.org

Ticket #699 (assigned enhancement)

Opened 2 months ago

Last modified 2 months ago

Enhancement to store.filterTiddlers() to support more complex filter strings

Reported by: jayfresh Assigned to: jayfresh (accepted)
Priority: undefined Milestone:
Component: core Version:
Severity: undefined Keywords: filterTiddlers core
Cc:

Description

Overrides ticket #454: http://trac.tiddlywiki.org/ticket/454

This patch extends TiddlyWiki.prototype.filterTiddlers to support complex filter strings, where filter string are of the form:

filterStep | filterStep | ... // only one filterStep is required

where filterStep is of the form:

[filterElements]

where filterElements is one or more of the following:

[TiddlerName?] tag[TagName?] sort[SortField?] limit[NoOfResults?]

Attachments

ticket699.patch (6.5 kB) - added by jayfresh on 11/07/08 16:22:54.
Patch for ticket #699

Change History

11/07/08 16:22:54 changed by jayfresh

  • attachment ticket699.patch added.

Patch for ticket #699

11/07/08 16:23:09 changed by jayfresh

  • owner changed from JeremyRuston to jayfresh.

11/07/08 16:41:36 changed by jayfresh

This is a suite of JSSpec tests for the patch: http://jnthnlstr.googlepages.com/testFilterTiddlersCore.html

This is a TiddlyWiki that contains the same test tiddlers as the testing suite, but allows you to try the patch out in situ: http://jnthnlstr.googlepages.com/FilterTiddlersCore.html

NB: We made a choice of "|" as the character to separate filter steps. Anyone with a better idea for the character is welcome to suggest it.

11/07/08 16:42:28 changed by jayfresh

  • status changed from new to assigned.