Ticket #1261 (closed enhancement: fixed)

Opened 17 months ago

Last modified 17 months ago

Enhancement: upgrade filters to support limit keyword and field filtering.

Reported by: jdlrobson Owned by: MartinBudden
Priority: minor Milestone: 2.6.2
Component: core Version:
Severity: medium Keywords:
Cc:

Description

We have getTaggedTiddlers and the ability to filter tiddlers by a tag e.g. [tag[foo]]

There seems no reason why this shouldn't be extended to custom fields.

Also a limit keyword would be highly useful in akin to the sort keyword. eg. [tag[foo]][limit[2]] would show only 2 tiddlers tagged foo.

Both these would reduce the amount of code in many plugins which do this filtering. TiddlySpace? for instance is frequently looping through tiddlers to find all those with a certain bag field set.

Diff attached.

Attachments

ticket Download (3.4 KB) - added by jdlrobson 17 months ago.

Change History

Changed 17 months ago by jdlrobson

Changed 17 months ago by MartinBudden

  • owner changed from JeremyRuston to MartinBudden
  • status changed from new to assigned

Changed 17 months ago by MartinBudden

  • priority changed from undefined to minor
  • severity changed from undefined to medium
  • milestone set to 2.7

Changed 17 months ago by MartinBudden

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in changeset:12472

Note: See TracTickets for help on using tickets.