-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow the default filter run prefix to be specified to avoid unexpected deduplication #9595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Jermolene
wants to merge
16
commits into
master
Choose a base branch
from
default-prefix-for-subfilter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2f8d53d
Allow default filter run prefix to be specified for filter evaluation
Jermolene 9b56734
Extend subfilter operator with suffix for specifying the default filt…
Jermolene 2a1c607
Update filter operator to support specifying a default filter run prefix
Jermolene f3e9beb
Comment update
Jermolene beb6839
Update filter caching to take into account the default filter run prefix
Jermolene b6859c5
Add some tests
Jermolene 8276f66
Add filter run pragma for setting default filter run prefix
Jermolene f2fbcf6
Kill linter error
Jermolene 0ffb4d9
Fix comment
Jermolene 5f03d1e
Default to the filter run prefix "all" for certain widgets
Jermolene adf9853
More joy of linting
Jermolene c4d0b61
Fix parsing bug
Jermolene 3f81e36
Add test for invalid pragma
Jermolene 3b84a70
Improve English
Jermolene 73cd48c
Release note
Jermolene f41ed1c
Add todos for the remaining docs
Jermolene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
19 changes: 19 additions & 0 deletions
19
editions/test/tiddlers/tests/data/filters/DefaultFilterRunPrefixPragma.tid
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| title: Filters/DefaultFilterRunPrefixPragma | ||
| description: Test Default Filter Run Prefix Pragma | ||
| type: text/vnd.tiddlywiki-multiple | ||
| tags: [[$:/tags/wiki-test-spec]] | ||
|
|
||
| title: Output | ||
|
|
||
| \whitespace trim | ||
|
|
||
| \procedure mysubfilter() 1 1 +[join[Y]] | ||
|
|
||
| (<$text text={{{ ::defaultprefix:all 1 1 [subfilter<mysubfilter>] +[join[X]] }}}/>) | ||
|
|
||
| (<$text text={{{ 1 1 ::defaultprefix:all 1 1 +[join[X]] }}}/>) | ||
|
|
||
| + | ||
| title: ExpectedResult | ||
|
|
||
| <p>(1X1X1Y1)</p><p>(1X1X1)</p> |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| title: Filters/Filter | ||
| description: Test filter operator | ||
| type: text/vnd.tiddlywiki-multiple | ||
| tags: [[$:/tags/wiki-test-spec]] | ||
|
|
||
| title: Output | ||
|
|
||
| \whitespace trim | ||
|
|
||
| \procedure test-filter() 1 1 +[join[X]] +[!match<currentTiddler>] | ||
|
|
||
| (<$text text={{{ [filter<test-filter>] +[join[ ]] }}}/>) | ||
|
|
||
| (<$text text={{{ [filter:all<test-filter>] +[join[ ]] }}}/>) | ||
|
|
||
| + | ||
| title: 1X1 | ||
|
|
||
| + | ||
| title: ExpectedResult | ||
|
|
||
| <p>($:/core 1X1 ExpectedResult Output)</p><p>($:/core ExpectedResult Output)</p> |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| title: Filters/Subfilter | ||
| description: Test subfilter operator | ||
| type: text/vnd.tiddlywiki-multiple | ||
| tags: [[$:/tags/wiki-test-spec]] | ||
|
|
||
| title: Output | ||
|
|
||
| \whitespace trim | ||
|
|
||
| \procedure test-data() 1 2 1 3 3 4 | ||
|
|
||
| (<$text text={{{ [subfilter<test-data>] +[join[ ]] }}}/>) | ||
|
|
||
| (<$text text={{{ [subfilter:all<test-data>] +[join[ ]] }}}/>) | ||
|
|
||
|
|
||
| + | ||
| title: ExpectedResult | ||
|
|
||
| <p>(2 1 3 4)</p><p>(1 2 1 3 3 4)</p> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.