Ticket #454 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 15 months ago

extend syntax for filter expressions

Reported by: jayfresh Owned by:
Priority: major Milestone: 2011.cleanup
Component: core Version: 2.2.05
Severity: low Keywords: filter
Cc:

Description

To extend the filter syntax for expressions used in methods such as TiddlyWiki.prototype.filterTiddlers(filter). The need is to be able to filter for tiddlers that are not tagged with a particular tag.

Suggested syntax: [tag[!bad tag]]

Overview of existing filter syntax here:  http://tiddlywiki.org/index.php?title=Dev:FilterTiddlers

Attachments

ticket454.patch Download (1.1 KB) - added by jayfresh 4 years ago.
Patch
ticket454_2.patch Download (3.2 KB) - added by jayfresh 4 years ago.
Second patch for 454
ticket454_3.patch Download (4.3 KB) - added by jayfresh 4 years ago.
Unit testing ahoy!
ticket454_4.patch Download (4.3 KB) - added by jayfresh 4 years ago.
4th patch to ticket 454

Change History

Changed 4 years ago by jayfresh

Patch

  Changed 4 years ago by MartinBudden

  • milestone set to 2.3.1

  Changed 4 years ago by jayfresh

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

  Changed 4 years ago by JeremyRuston

Preferred syntax for this is:

[tag[blah]] is equivalent to [+tag[blah]] [-tag[blah]] removes any tiddlers with the given tag from the accumulated list

Changed 4 years ago by jayfresh

Second patch for 454

  Changed 4 years ago by jayfresh

Altered contribution to enhance FilterTiddlers? with to support nested filter syntax. Architecture changed to use two stacks.

Changed 4 years ago by jayfresh

Unit testing ahoy!

Changed 4 years ago by jayfresh

4th patch to ticket 454

  Changed 4 years ago by jayfresh

4th patch tested here:  http://jonny.jonathan.googlepages.com/filterTiddlersTesting.html

(Go to the "Run the tests" tiddler)

  Changed 4 years ago by MartinBudden

  • milestone changed from 2.3.1 to 2.4

  Changed 4 years ago by MartinBudden

  • milestone changed from 2.4 to 2.5

  Changed 4 years ago by jayfresh

  Changed 4 years ago by FND

  • summary changed from Negation syntax for filter expression to extend syntax for filter expressions

  Changed 3 years ago by FND

  • priority changed from minor to major
  • milestone changed from 2.5.1 to 2.5.2

  Changed 3 years ago by FND

  • owner jayfresh deleted
  • status changed from assigned to new

  Changed 3 years ago by FND

  • milestone changed from 2.5.3 to 2.6

  Changed 22 months ago by MartinBudden

  • milestone changed from 2.6.2 to 2.7.1

Milestone 2.6.2 deleted

follow-up: ↓ 15   Changed 16 months ago by cdent

  • status changed from new to closed
  • resolution set to wontfix
  • milestone changed from 2.7.1 to 2011.cleanup

As I recall, Jon's syntax was not well liked. In fact it was considered overly vebose and hard to parse.

Also, since it has been around for 3 years and we are getting by without it...

in reply to: ↑ 14   Changed 15 months ago by EricShulman

Replying to cdent:

As I recall, Jon's syntax was not well liked. In fact it was considered overly vebose and hard to parse. Also, since it has been around for 3 years and we are getting by without it...

See also

 http://www.TiddlyTools.com/#MatchTagsPlugin

which adds *full Boolean expression handling* to the tag filter syntax, including AND/OR/NOT with nested parentheses as needed. Thus:

[tag[NOT badtag]]
[tag[sometag AND NOT badtag]]
[tag[sometag OR (someothertag AND NOT badtag)]]
etc.
Note: See TracTickets for help on using tickets.