Created
July 16, 2009 09:23
-
-
Save cdent/148326 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Case insensitive text filtering. | |
Workaround for a bug in tiddlyweb < 0.9.54 | |
system_plugins: ['ltext'] | |
""" | |
import tiddlyweb.filters.select | |
def ltext_in_text(tiddler, attribute, value): | |
return value.lower() in tiddler.text.lower() | |
tiddlyweb.filters.select.ATTRIBUTE_SELECTOR['text'] = ltext_in_text | |
def init(config): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment